<CustomBuild Include="cleancount">\r
<FileType>Document</FileType>\r
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Downloading V8.</Message>\r
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">if not exist "$(ProjectDir)..\v8-$(V8Version)" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/v8-$(V8Version)-vs2015.tar.bz2 "$(ProjectDir).."\r
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">if not exist "$(ProjectDir)..\v8-$(V8Version)" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/v8-$(V8Version).tar.bz2 "$(ProjectDir).."\r
if not exist "$(ProjectDir)..\v8-$(V8Version)\third_party\cygwin" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/v8-$(V8Version)-win.tar.bz2 "$(ProjectDir).."\r
</Command>\r
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)..\v8-$(V8Version);%(Outputs)</Outputs>\r
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Downloading V8.</Message>\r
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">if not exist "$(ProjectDir)..\v8-$(V8Version)" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/v8-$(V8Version)-vs2015.tar.bz2 "$(ProjectDir).."\r
+ <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">if not exist "$(ProjectDir)..\v8-$(V8Version)" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/v8-$(V8Version).tar.bz2 "$(ProjectDir).."\r
if not exist "$(ProjectDir)..\v8-$(V8Version)\third_party\cygwin" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/v8-$(V8Version)-win.tar.bz2 "$(ProjectDir).."\r
</Command>\r
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)..\v8-$(V8Version);%(Outputs)</Outputs>\r
)\r
\r
SET LIB_DEST_DIR=\r
+SET DEPOT_TOOLS_WIN_TOOLCHAIN=0\r
+SET GYP_GENERATORS=msvs\r
+REM Bake snapshot blobs (natives_blob.bin and snapshot_blob.bin) into the library\r
+SET GYPFLAGS="-Dv8_use_external_startup_data=0"\r
+\r
+CALL .\third_party\python_26\setup_env.bat\r
\r
IF "%VisualStudioVersion%" == "11.0" (\r
- SET VS_VERSION=-Gmsvs_version=2012\r
+ REM SET VS_VERSION=-Gmsvs_version=2012\r
+ SET GYP_MSVS_VERSION=2012\r
ECHO Forcing build to use Visual Studio 2012\r
) ELSE IF "%VisualStudioVersion%" == "12.0" (\r
- SET VS_VERSION=-Gmsvs_version=2013\r
+ REM SET VS_VERSION=-Gmsvs_version=2013\r
+ SET GYP_MSVS_VERSION=2013\r
ECHO Forcing build to use Visual Studio 2013\r
) ELSE IF "%VisualStudioVersion%" == "14.0" (\r
- SET VS_VERSION=-Gmsvs_version=2015\r
+ REM SET VS_VERSION=-Gmsvs_version=2015\r
+ SET GYP_MSVS_VERSION=2015\r
ECHO Forcing build to use Visual Studio 2015\r
) ELSE IF NOT "%4" == "" (\r
- SET VS_VERSION=-Gmsvs_version=%4\r
+ REM SET VS_VERSION=-Gmsvs_version=%4\r
+ SET GYP_MSVS_VERSION=%4\r
ECHO Forcing build to use Visual Studio %4\r
)\r
\r
\r
IF "%1" == "x64" (\r
IF NOT "%SKIP_V8_SNAPSHOT%" == "" ECHO Targeting x64 platform on a x86 system, disabling V8 snapshout feature to make this work [%SKIP_V8_SNAPSHOT%]\r
- IF NOT "%COPY_FILES_ONLY%" == "1" .\third_party\python_26\python.exe build\gyp_v8 -Dtarget_arch=x64 -Dcomponent=shared_library %SKIP_V8_SNAPSHOT% %VS_VERSION%\r
+ REM IF NOT "%COPY_FILES_ONLY%" == "1" .\third_party\python_26\python.exe build\gyp_v8 -Dtarget_arch=x64 -Dcomponent=shared_library %SKIP_V8_SNAPSHOT% %VS_VERSION%\r
+ IF NOT "%COPY_FILES_ONLY%" == "1" .\third_party\python_26\python.exe gypfiles\gyp_v8 -Dtarget_arch=x64 -Dcomponent=shared_library %GYPFLAGS%\r
IF ERRORLEVEL 1 GOTO Fail\r
SET LIB_DEST_DIR=..\..\x64\%2\\r
)\r
\r
IF "%1" == "x86" (\r
- IF NOT "%COPY_FILES_ONLY%" == "1" .\third_party\python_26\python.exe build\gyp_v8 -Dcomponent=shared_library %VS_VERSION%\r
+ REM IF NOT "%COPY_FILES_ONLY%" == "1" .\third_party\python_26\python.exe build\gyp_v8 -Dcomponent=shared_library %VS_VERSION%\r
+ IF NOT "%COPY_FILES_ONLY%" == "1" .\third_party\python_26\python.exe gypfiles\gyp_v8 -Dcomponent=shared_library %GYPFLAGS%\r
IF ERRORLEVEL 1 GOTO Fail\r
SET LIB_DEST_DIR=..\..\Win32\%2\\r
)\r
\r
REM Clean build before we continue\r
REM First try to clean using the solution path (works for most VS versions)\r
-msbuild "tools\gyp\v8.sln" /t:"_tools_\_gyp_\v8:Clean" /p:Configuration=%2 /clp:WarningsOnly\r
+REM msbuild "tools\gyp\v8.sln" /t:"_tools_\_gyp_\v8:Clean" /p:Configuration=%2 /clp:WarningsOnly\r
+msbuild "src\v8.sln" /t:"_src_\v8:Clean" /p:Configuration=%2 /clp:WarningsOnly\r
IF NOT ERRORLEVEL 1 GOTO CleanDone\r
REM If clean using solution path didn't work, try to build without the path (works for some VS versions...)\r
-msbuild "tools\gyp\v8.sln" /t:v8:Clean /p:Configuration=%2\r
+REM msbuild "tools\gyp\v8.sln" /t:v8:Clean /p:Configuration=%2\r
+msbuild "src\v8.sln" /t:v8:Clean /p:Configuration=%2\r
IF ERRORLEVEL 1 GOTO Fail\r
:CleanDone\r
\r
\r
REM Build the V8 library\r
REM First try to build using the solution path (works for most VS versions)\r
-msbuild "tools\gyp\v8.sln" /t:"_tools_\_gyp_\v8:Rebuild" /p:Configuration=%2 /clp:WarningsOnly\r
+REM msbuild "tools\gyp\v8.sln" /t:"_tools_\_gyp_\v8:Rebuild" /p:Configuration=%2 /clp:WarningsOnly\r
+REM msbuild "src\v8.sln" /t:"_src_\v8_libpaltfrom:Rebuild" /p:Configuration=%2 /clp:WarningsOnly\r
+msbuild "src\v8.sln" /t:"_src_\v8:Rebuild" /p:Configuration=%2 /clp:WarningsOnly\r
IF NOT ERRORLEVEL 1 GOTO CopyFiles\r
REM If build using solution path didn't work, try to build without the path (works for some VS versions...)\r
-msbuild "tools\gyp\v8.sln" /t:v8:Rebuild /p:Configuration=%2\r
+REM msbuild "tools\gyp\v8.sln" /t:v8:Rebuild /p:Configuration=%2\r
+msbuild "src\v8.sln" /t:v8:Rebuild /p:Configuration=%2\r
IF ERRORLEVEL 1 GOTO Fail\r
\r
:CopyFiles\r
xcopy /C /F /R /Y .\build\%2\v8.dll %LIB_DEST_DIR%\r
IF ERRORLEVEL 1 GOTO Fail\r
\r
+xcopy /C /F /R /Y .\build\%2\v8_libplatform.dll %LIB_DEST_DIR%\r
+IF ERRORLEVEL 1 GOTO Fail\r
+\r
+xcopy /C /F /R /Y .\build\%2\v8_libbase.dll %LIB_DEST_DIR%\r
+IF ERRORLEVEL 1 GOTO Fail\r
+\r
ECHO %1-%2> last_build\r
\r
exit /b 0\r