-
Notifications
You must be signed in to change notification settings - Fork 0
/
msvc10.bat
33 lines (23 loc) · 880 Bytes
/
msvc10.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
33
@echo off
SET PFBASEDIR=D:\Descartes
SET MOZ_MSVCVERSION=10
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 "%VC10DIR%\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 PATH=%PATH%;C:\Git\bin
set HOME=%MOZBUILDHOMEDIR%
%MOZILLABUILD%\msys\bin\bash --login -i