【发布时间】:2016-08-20 12:54:16
【问题描述】:
我已经能够在 Windows 8.1 和 Visual Studio 2015 Update 2 下使用基于 GN Building with GN 的构建链成功构建 v8,但我可以'找不到如何构建 v8 库。基本上我想启用component=shared_library,但我找不到怎么做...
helloworld.exe 等示例正在编译并且正在运行。
这是我到目前为止的构建方式:
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
mkdir depot_tools
cd depot_tools
curl -O https://storage.googleapis.com/chrome-infra/depot_tools.zip
cmake -E tar xf "depot_tools.zip" --format=zip
SET PATH=%CD%;%CD%\python276_bin;%PATH%
cd ..
gclient config https://chromium.googlesource.com/v8/v8
set GYP_MSVS_VERSION=2015
gclient sync
cd v8
python tools/dev/v8gen.py x64.release
ninja -C out.gn/x64.release
我也尝试过使用 gyp 的老式方式,但没有成功(无法编译):
SET DEPOT_TOOLS_WIN_TOOLCHAIN=0
mkdir depot_tools
cd depot_tools
curl -O https://storage.googleapis.com/chrome-infra/depot_tools.zip
cmake -E tar xf "depot_tools.zip" --format=zip
SET PATH=%CD%;%CD%\python276_bin;%PATH%
cd ..
gclient config https://chromium.googlesource.com/v8/v8
set GYP_MSVS_VERSION=2015
set GYP_GENERATORS=ninja
gclient sync
cd v8
python gypfiles\gyp_v8 -Dtarget_arch=x64 -Dcomponent=shared_library
ninja -C out\Release_x64 all
有什么建议吗?
【问题讨论】:
标签: windows visual-studio-2015 v8