Build googles v8 as shared library on windows?

2020-06-16 02:47发布

问题:

Is it possible to build googles v8 as a shared library with gyp on windows (msvc 2012)? Everything I tried doesn't work. What I've tried:

python build\gyp_v8 -Dcomponent=shared_library
python build\gyp_v8 library=shared

The second one gives an error that "library" is unknown. The first one does not have any effect.

回答1:

This works in a project I'm using:

python build\gyp_v8 -Dtarget_arch=ia32 -Dcomponent=shared_library
msbuild /p:Configuration=Release /p:Platform=Win32 tools\gyp\v8.sln


标签: build v8 gyp