source: tol/windows/build_tools/sdkenv.bat

devel
Last change on this file was daa0401, checked in by Pedro Gea <pgea@…>, 13 years ago

Refs #1710
Se modifica la búsqueda del archivo SetEnv.cmd para buscar en algún directorio de programas del tipo "Microsoft*SDK*".
Se cambia la plataforma a "x86".
Se cambia el modo a "/RELEASE" .

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@5948 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 759 bytes
RevLine 
[abf9afa]1@Echo Off
2SetLocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
3Set _sdkenv=
[daa0401]4For /F "tokens=*" %%S In ('dir /ad /b "%ProgramFiles%\Microsoft*SDK*"') Do (
5  For /F "tokens=*" %%B In ('dir /s /ad /b "%ProgramFiles%\%%S\*Bin"') Do (
6    If Exist "%%B\SetEnv.cmd" (
7      Echo %%B\SetEnv.cmd
8      Set _sdkenv=%%B\SetEnv.cmd
9    )
[abf9afa]10  )
11)
12If Defined _sdkenv (
13  EndLocal
14  For /D %%d In (%SystemRoot%) Do (
15    If /I "%%~dd\WINDOWS"=="%SystemRoot%" (
[daa0401]16      Set plat=/x86
[abf9afa]17    ) Else (
18      Set plat=/2000jym
19    )
20  )
[daa0401]21  call "%_sdkenv%" !plat! /RELEASE
[abf9afa]22  Set plat=
23  SetLocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
24) Else (
25  Echo "Error: No se pudo encontrar SetEnv.cmd para habilitar el entorno de Microsoft platform SDK"
26  Pause
27)
28EndLocal
Note: See TracBrowser for help on using the repository browser.