Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
e26d34aa
提交
e26d34aa
authored
1月 23, 2014
作者:
Peter Olsson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-6129 More improvements for V8 Windows build on 32-bit machines.
上级
14e32cf5
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
36 行增加
和
7 行删除
+36
-7
build-v8.bat
libs/win32/v8/build-v8.bat
+36
-7
没有找到文件。
libs/win32/v8/build-v8.bat
浏览文件 @
e26d34aa
@ECHO OFF
REM First argument is the target architecture
REM Second argument is "Debug" or "Release" mode
REM Third argument is the V8 root directory path
REM Fourth argument is the version of Visual Studio (optional)
IF "%1" == "" GOTO Fail
IF "%2" == "" GOTO Fail
IF "%3" == "" GOTO Fail
REM Go into the V8 lib directory
cd "%3"
REM Check the last build info, so we know if we're supposed to build again or not
SET /P LAST_BUILD_INFO=<last_build
IF "%1-%2" == "%LAST_BUILD_INFO%" (
ECHO V8 is already built!
SET COPY_FILES_ONLY=1
IF EXIST ".\build\%2\v8.dll" (
ECHO V8 is already built!
SET COPY_FILES_ONLY=1
)
)
SET LIB_DEST_DIR=
IF NOT "%4" == "" (
SET VS_VERSION=-Gmsvs_version=%4
ECHO Forcing build to use Visual Studio %4
)
IF "%1" == "x64" (
IF NOT "%COPY_FILES_ONLY%" == "1" .\third_party\python_26\python.exe build\gyp_v8 -Dtarget_arch=x64 -Dcomponent=shared_library -Dv8_use_snapshot=false
REM If this is a 32-bit system (but we target x64), we must disable the snapshot feature to get it to build.
IF NOT EXIST "%PROGRAMFILES(X86)%" (
SET SKIP_V8_SNAPSHOT=-Dv8_use_snapshot=false
)
)
IF "%1" == "x64" (
IF NOT "%SKIP_V8_SNAPSHOT%" == "" ECHO Targeting x64 platform on a x86 system, disabling V8 snapshout feature to make this work [%SKIP_V8_SNAPSHOT%]
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%
IF NOT ERRORLEVEL 0 GOTO Fail
SET LIB_DEST_DIR=..\..\x64\%2\
)
IF "%1" == "x86" (
IF NOT "%COPY_FILES_ONLY%" == "1" .\third_party\python_26\python.exe build\gyp_v8 -Dcomponent=shared_library
IF NOT "%COPY_FILES_ONLY%" == "1" .\third_party\python_26\python.exe build\gyp_v8 -Dcomponent=shared_library
%VS_VERSION%
IF NOT ERRORLEVEL 0 GOTO Fail
SET LIB_DEST_DIR=..\..\Win32\%2\
)
...
...
@@ -31,10 +52,16 @@ IF "%LIB_DEST_DIR%" == "" GOTO Fail
IF "%COPY_FILES_ONLY%" == "1" GOTO CopyFiles
devenv.com /clean %2 tools\gyp\v8.sln
REM Clean build before we continue
devenv /clean %2 tools\gyp\v8.sln
IF NOT ERRORLEVEL 0 GOTO Fail
devenv.com /build %2 tools\gyp\v8.sln
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 "tools\gyp\v8.vcxproj" /projectconfig %2
REM devenv /build %2 tools\gyp\v8.sln
IF NOT ERRORLEVEL 0 GOTO Fail
:CopyFiles
...
...
@@ -56,4 +83,6 @@ ECHO %1-%2> last_build
exit
:Fail
REM Delete the last_build info if this build failed!
@del /Q last_build
exit /b 1
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论