2011-10-11 20:19:13 +02:00
|
|
|
@echo off
|
2011-10-18 02:48:28 +02:00
|
|
|
setlocal
|
2011-10-11 20:19:13 +02:00
|
|
|
|
|
|
|
if "%1" == "" (
|
|
|
|
echo ERROR: Please specify a build target: Debug or Release
|
|
|
|
goto end
|
|
|
|
)
|
|
|
|
|
|
|
|
if "%2" == "" (
|
|
|
|
set PROJECT_NAME=cefclient
|
|
|
|
) else (
|
|
|
|
set PROJECT_NAME=%2
|
|
|
|
)
|
|
|
|
|
|
|
|
echo Configuring Visual Studio environment...
|
|
|
|
if "%GYP_MSVS_VERSION%" == "2008" (
|
|
|
|
call "%VS90COMNTOOLS%vsvars32.bat"
|
|
|
|
set PROJECT_EXT=.vcproj
|
|
|
|
) else (
|
|
|
|
call "%VS100COMNTOOLS%vsvars32.bat"
|
|
|
|
set PROJECT_EXT=.vcxproj
|
|
|
|
)
|
|
|
|
|
2011-10-18 20:48:13 +02:00
|
|
|
if exist "%DevEnvDir%\devenv.com" (
|
2011-10-11 20:19:13 +02:00
|
|
|
echo Building %1 target for %PROJECT_NAME% project...
|
2011-10-18 20:48:13 +02:00
|
|
|
"%DevEnvDir%\devenv.com" /build %1 ..\cef.sln /project %PROJECT_NAME%%PROJECT_EXT%
|
|
|
|
) else if exist "%VCINSTALLDIR%\vcpackages\vcbuild.exe" (
|
|
|
|
echo Building %1 target for all projects...
|
|
|
|
"%VCINSTALLDIR%\vcpackages\vcbuild.exe" ..\cef.sln "%1|Win32"
|
|
|
|
) else (
|
|
|
|
echo ERROR: Cannot find Visual Studio builder
|
|
|
|
goto end
|
|
|
|
)
|
2011-10-11 20:19:13 +02:00
|
|
|
|
|
|
|
:end
|
2011-10-18 02:48:28 +02:00
|
|
|
endlocal
|