45 lines
1.2 KiB
Batchfile
Executable File
45 lines
1.2 KiB
Batchfile
Executable File
@echo off
|
|
|
|
SET MOZ_MSVCVERSION=7.1
|
|
SET MOZBUILDDIR=%~dp0
|
|
SET MOZILLABUILD=%MOZBUILDDIR%
|
|
|
|
echo "Mozilla tools directory: %MOZBUILDDIR%"
|
|
|
|
REM Get MSVC paths
|
|
call "%MOZBUILDDIR%guess-msvc.bat"
|
|
|
|
if "%VC71DIR%"=="" (
|
|
ECHO "Microsoft Visual C++ version 7.1 was not found. Exiting."
|
|
pause
|
|
EXIT /B 1
|
|
)
|
|
|
|
REM Use the "new" moztools-static
|
|
set MOZ_TOOLS=%MOZBUILDDIR%moztools
|
|
|
|
rem append moztools to PATH
|
|
SET PATH=%PATH%;%MOZ_TOOLS%\bin
|
|
|
|
rem Prepend MSVC paths
|
|
call "%VC71DIR%\Bin\vcvars32.bat"
|
|
|
|
rem Prepend SDK paths if MOZBUILD_USE_SDK is defined and the SDK exists
|
|
if defined MOZBUILD_USE_SDK (
|
|
if not "%SDKDIR%"=="" (
|
|
rem Prepend SDK paths - Don't use the SDK SetEnv.cmd because it pulls in
|
|
rem random VC paths which we don't want.
|
|
|
|
rem Don't add '%SDKDIR%include\atl' to INCLUDE because VC7 has ATL headers
|
|
rem which don't require atlthunk.lib. This also makes it unnecessary to
|
|
rem append the atlthunk compat lib to LIB.
|
|
|
|
SET PATH=%SDKDIR%\bin;%PATH%
|
|
SET LIB=%SDKDIR%\lib;%LIB%
|
|
SET INCLUDE=%SDKDIR%\include;%INCLUDE%
|
|
)
|
|
)
|
|
|
|
cd "%USERPROFILE%"
|
|
%MOZILLABUILD%\msys\bin\bash --login -i
|