How do I build V8 with gn to be able to compile PHP extension v8js?

163 views
Skip to first unread message

Temuri Imnaishvili

unread,
Oct 15, 2016, 1:58:18 PM10/15/16
to v8-users
Hi all,

I've successfully compiled V8 with gn following instructions at https://github.com/v8/v8/wiki/Building%20with%20GN (using tools/dev/v8gen.py x64.release)

However, I cannot find v8 .so files anywhere. As a result, v8js would not compile.

What's the right way to build V8 to have .so files?

Thanks!

Ben Noordhuis

unread,
Oct 17, 2016, 5:02:54 AM10/17/16
to v8-users
Untested but I believe either running `tools/dev/v8gen.py x64.release
-- is_component_build=true` or passing
--args="is_component_build=true" to `gn gen` should do it.

Temuri Imnaishvili

unread,
Oct 17, 2016, 10:15:09 AM10/17/16
to v8-users
I tried that. That does produce *.so files.

However, v8js compilation also requires libv8_libplatform.a which was created from out/native/obj.target/tools/gyp/libv8_libplatform.a, which is no longer created during compilation.

Temuri Imnaishvili

unread,
Oct 17, 2016, 1:15:36 PM10/17/16
to v8-users
Reply all
Reply to author
Forward
0 new messages