mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 02:02:01 +00:00
mod_v8: Try to make V8 build work on Visual Studio Express (devenv.exe is not available in Express)
This commit is contained in:
parent
54d13850b7
commit
2b651b9abe
@ -53,22 +53,27 @@ IF "%LIB_DEST_DIR%" == "" GOTO Fail
|
|||||||
IF "%COPY_FILES_ONLY%" == "1" GOTO CopyFiles
|
IF "%COPY_FILES_ONLY%" == "1" GOTO CopyFiles
|
||||||
|
|
||||||
REM Clean build before we continue
|
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
|
IF NOT ERRORLEVEL 0 GOTO Fail
|
||||||
|
:CleanDone
|
||||||
|
|
||||||
REM Just to make sure that everything is cleaned up
|
REM Just to make sure that everything is cleaned up
|
||||||
rmdir /S /Q .\build\%2
|
rmdir /S /Q .\build\%2
|
||||||
|
|
||||||
REM Build the V8 library
|
REM Build the V8 library
|
||||||
devenv /build %2 "tools\gyp\v8.sln" /project "v8" /projectconfig %2
|
REM First try to build using the solution path (works for most VS versions)
|
||||||
REM devenv /build %2 tools\gyp\v8.sln
|
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
|
IF NOT ERRORLEVEL 0 GOTO Fail
|
||||||
|
|
||||||
:CopyFiles
|
: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%
|
xcopy /C /F /R /Y .\build\%2\icui18n.dll %LIB_DEST_DIR%
|
||||||
IF NOT ERRORLEVEL 0 GOTO Fail
|
IF NOT ERRORLEVEL 0 GOTO Fail
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user