Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4d4fefe

Browse files
committedApr 12, 2016
Use Node.js to build J2V8 on MacOS.
Builds J2V8 using a copy of node.js located in node/ Change-Id: I8105098c5180ade853d80c9dca9f5574e3504feb
1 parent 711396a commit 4d4fefe

12 files changed

+5957
-4
lines changed
 

‎.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ compiler: clang
44
before_install:
55
- chmod -x build-node.sh
66
install: sh ./build-node.sh
7+
script: sh ./buildJ2V8_macos.sh

‎build-node.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
git clone https://github.com/nodejs/node.git
22
cd node
33
git checkout v5.9.1
4-
./configure
4+
./configure --enable-static
55
make
6+
cd ..

‎buildJ2V8_macos.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd jni
2+
clang++ -stdlib=libstdc++ -Iinclude -I../dep_includes_macosx -I../node -I../node/deps/v8 -I../node/deps/v8/include -I../node/src -Wl,-force_load,../node/out/Release/libnode.a ../node/out/Release/libv8_libbase.a ../node/out/Release/libv8_libplatform.a ../node/out/Release/libv8_base.a ../node/out/Release/libv8_nosnapshot.a ../node/out/Release/libuv.a ../node/out/Release/libopenssl.a ../node/out/Release/libhttp_parser.a ../node/out/Release/libgtest.a ../node/out/Release/libzlib.a ../node/out/Release/libcares.a -shared -o libj2v8_macosx_x86_64.dylib com_eclipsesource_v8_V8Impl.cpp -std=c++11 -Wwritable-strings
3+

0 commit comments

Comments
 (0)
Please sign in to comment.