OK so I solved this more or less.

1. The GN build is broken with respect to building static libraries.  Once 
you leave 'gn land' and try and build something you're kind of screwed.
2. The deprecated GYP build does the right thing. For the moment I don't 
care if it's deprecated, since I'm going to pick a release tag and stick 
with it.

To build v8:
export PATH="$(pwd)/depot_tools:$PATH"
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
gclient sync
git clone -b 5.7.99 --single-branch 
https://chromium.googlesource.com/v8/v8.git
cd v8
make -j4 native

To build shell.cc with cmake:

project(shell)
cmake_minimum_required(VERSION 2.8)

link_directories(${V8_DIR}/out/native/obj.target/src)
link_directories(${V8_DIR}/out/native/obj.target/third_party)
link_directories(${V8_DIR}/out/native/obj.target/third_party/icu)

set(V8_LIBRARY v8_libplatform v8_base v8_libbase v8_nosnapshot 
v8_libsampler icui18n icuuc pthread)

include_directories(SYSTEM BEFORE ${V8_DIR} ${V8_DIR}/include
  ${CMAKE_CURRENT_BINARY_DIR})

add_executable(shell shell.cc)
target_link_libraries(shell ${V8_LIBRARY})

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to