buildframework/helium/tools/common/bin/call_vcvars32.bat
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 180 e02a83d4c571
child 592 3215c239276a
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
     1 rem
       
     2 rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 rem All rights reserved.
       
     4 rem This component and the accompanying materials are made available
       
     5 rem under the terms of the License "Eclipse Public License v1.0"
       
     6 rem which accompanies this distribution, and is available
       
     7 rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 rem
       
     9 rem Initial Contributors:
       
    10 rem Nokia Corporation - initial contribution.
       
    11 rem
       
    12 rem Contributors:
       
    13 rem
       
    14 rem Description: 
       
    15 rem
       
    16 
       
    17 REM Set MS Visual C++ environment
       
    18 if "%MSVC_ENV_BAT%"=="" call :findmsvc vcvars32.bat
       
    19 goto :foundmsvc
       
    20 :findmsvc
       
    21 set MSVC_ENV_BAT=%~$PATH:1
       
    22 exit /b
       
    23 :foundmsvc
       
    24 if "%MSVC_ENV_BAT%"=="" set MSVC_ENV_BAT=C:\apps\msvc6\VC98\Bin\Vcvars32.bat
       
    25 if not exist "%MSVC_ENV_BAT%" set MSVC_ENV_BAT=C:\Program Files\Microsoft Visual Studio\VC98\Bin\Vcvars32.bat
       
    26 REM Do we need the following line to support MSVS.net 2003?
       
    27 REM if not exist "%MSVC_ENV_BAT%" set MSVC_ENV_BAT=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\Vcvars32.bat
       
    28 if not exist "%MSVC_ENV_BAT%" ( echo *** WARNING: Can't find vcvars32.bat - MS Visual Studio not present. & goto MS_Set_Env_End )
       
    29 call "%MSVC_ENV_BAT%" > nul
       
    30 if not "%DEBUG%"=="" echo on
       
    31 :MS_Set_Env_End