-
Notifications
You must be signed in to change notification settings - Fork 0
/
msvc9.bat
32 lines (22 loc) · 850 Bytes
/
msvc9.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
SET PFBASEDIR=D:\mozbuilds
SET MOZ_MSVCVERSION=9
SET MOZBUILDDIR=%PFBASEDIR%\mozilla-build
SET MOZBUILDHOMEDIR=%PFBASEDIR%\home
SET MOZBUILDPFPATCHDIR=%PFBASEDIR%\pf-patches
SET MOZILLABUILD=%MOZBUILDDIR%\
echo "Mozilla tools directory: %MOZBUILDDIR%\"
REM Get MSVC paths
call "%MOZBUILDDIR%\guess-msvc.bat"
REM Use the moztools-static
set MOZ_TOOLS=%MOZBUILDDIR%\moztools
rem append moztools to PATH
SET PATH=%PATH%;%MOZ_TOOLS%\bin;%MOZBUILDPFPATCHDIR%\toolkit
call "%VC9DIR%\Bin\vcvars32.bat"
set PATH=%SDKDIR%\bin;%PATH%
set LIB=%SDKDIR%\lib;%LIB%;%MOZBUILDDIR\%atlthunk_compat
REM Microsoft SDK 7.0
set INCLUDE=%SDKDIR%\include;%SDKDIR%\include\atl;%INCLUDE%
SET PATH=%PATH%;%MOZILLABUILD%msys\bin;%MOZILLABUILD%msys\local\bin
set HOME=%MOZBUILDHOMEDIR%
%MOZILLABUILD%\msys\bin\bash --login -i