2006-12-14 23:44:58 +03:00
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
|
|
SET MOZ_MSVCVERSION=8
|
|
|
|
|
|
|
|
|
|
SET MOZILLABUILDDRIVE=%~d0%
|
|
|
|
|
SET MOZILLABUILDPATH=%~p0%
|
|
|
|
|
SET MOZILLABUILD=%MOZILLABUILDDRIVE%%MOZILLABUILDPATH%
|
|
|
|
|
|
|
|
|
|
echo "Mozilla tools directory: %MOZILLABUILD%"
|
|
|
|
|
|
|
|
|
|
REM Get MSVC paths
|
|
|
|
|
call "%MOZILLABUILD%\guess-msvc.bat"
|
|
|
|
|
|
|
|
|
|
REM Use the "new" moztools-static
|
|
|
|
|
set MOZ_TOOLS=%MOZILLABUILD%\moztools
|
|
|
|
|
|
|
|
|
|
rem append moztools to PATH
|
|
|
|
|
SET PATH=%PATH%;%MOZ_TOOLS%\bin
|
|
|
|
|
|
2007-01-04 20:06:35 +03:00
|
|
|
|
if "%VC8DIR%"=="" (
|
|
|
|
|
if "%VC8EXPRESSDIR%"=="" (
|
|
|
|
|
ECHO "Microsoft Visual C++ version 8 was not found. Exiting."
|
|
|
|
|
pause
|
|
|
|
|
EXIT /B 1
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if "%SDKDIR%"=="" (
|
|
|
|
|
ECHO "Microsoft Platform SDK was not found. Exiting."
|
|
|
|
|
pause
|
|
|
|
|
EXIT /B 1
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
rem Prepend MSVC paths
|
|
|
|
|
call "%VC8EXPRESSDIR%\Bin\vcvars32.bat"
|
|
|
|
|
|
|
|
|
|
rem Don't set SDK paths in this block, because blocks are early-evaluated.
|
2007-03-07 18:25:18 +03:00
|
|
|
|
) else (
|
2007-01-04 20:06:35 +03:00
|
|
|
|
rem Prepend MSVC paths
|
|
|
|
|
call "%VC8DIR%\Bin\vcvars32.bat"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if "%VC8DIR%"=="" (
|
|
|
|
|
rem Prepend SDK paths - Don't use the SDK SetEnv.cmd because it pulls in
|
|
|
|
|
rem random VC paths which we don't want.
|
2007-01-11 19:04:18 +03:00
|
|
|
|
rem Add the atlthunk compat library to the end of our LIB
|
2007-01-04 20:06:35 +03:00
|
|
|
|
set PATH=%SDKDIR%\bin;%PATH%
|
2007-01-11 19:04:18 +03:00
|
|
|
|
set LIB=%SDKDIR%\lib;%LIB%;%MOZILLABUILD%\atlthunk_compat
|
2007-01-04 20:06:35 +03:00
|
|
|
|
set INCLUDE=%SDKDIR%\include;%SDKDIR%\include\atl;%INCLUDE%
|
|
|
|
|
)
|
2006-12-14 23:44:58 +03:00
|
|
|
|
|
|
|
|
|
cd "%USERPROFILE%"
|
2007-08-03 00:06:46 +04:00
|
|
|
|
start "MSYS Shell - MSVC8 Environment" "%MOZILLABUILD%\msys\bin\ssh-agent" "%MOZILLABUILD%\msys\bin\rxvt" -backspacekey -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn "Lucida Console" -tn msys -geometry 80x25 -e /bin/bash --login -i
|