mod_v8: Try to make V8 build work on Visual Studio Express (devenv.exe is not available in Express)

This commit is contained in:
Peter Olsson 2014-03-16 10:02:35 +01:00
parent 54d13850b7
commit 2b651b9abe
1 changed files with 11 additions and 6 deletions

View File

@ -53,22 +53,27 @@ IF "%LIB_DEST_DIR%" == "" GOTO Fail
IF "%COPY_FILES_ONLY%" == "1" GOTO CopyFiles
REM Clean build before we continue
devenv /clean %2 tools\gyp\v8.sln
REM First try to clean using the solution path (works for most VS versions)
msbuild "tools\gyp\v8.sln" /t:"_tools_\_gyp_\v8:Clean" /p:Configuration=%2
IF ERRORLEVEL 0 GOTO CleanDone
REM If clean using solution path didn't work, try to build without the path (works for some VS versions...)
msbuild "tools\gyp\v8.sln" /t:v8:Clean /p:Configuration=%2
IF NOT ERRORLEVEL 0 GOTO Fail
:CleanDone
REM Just to make sure that everything is cleaned up
rmdir /S /Q .\build\%2
REM Build the V8 library
devenv /build %2 "tools\gyp\v8.sln" /project "v8" /projectconfig %2
REM devenv /build %2 tools\gyp\v8.sln
REM First try to build using the solution path (works for most VS versions)
msbuild "tools\gyp\v8.sln" /t:"_tools_\_gyp_\v8:Rebuild" /p:Configuration=%2
IF ERRORLEVEL 0 GOTO CopyFiles
REM If build using solution path didn't work, try to build without the path (works for some VS versions...)
msbuild "tools\gyp\v8.sln" /t:v8:Rebuild /p:Configuration=%2
IF NOT ERRORLEVEL 0 GOTO Fail
:CopyFiles
REM xcopy /C /F /R /Y .\build\%2\icudt.dll %LIB_DEST_DIR%
REM IF NOT ERRORLEVEL 0 GOTO Fail
xcopy /C /F /R /Y .\build\%2\icui18n.dll %LIB_DEST_DIR%
IF NOT ERRORLEVEL 0 GOTO Fail