Skip to content

Commit

Permalink
Use Node.js to build J2V8 on MacOS.
Browse files Browse the repository at this point in the history
Builds J2V8 using a copy of node.js located in node/

Change-Id: I8105098c5180ade853d80c9dca9f5574e3504feb
  • Loading branch information
irbull committed Apr 12, 2016
1 parent 711396a commit f18cca7
Show file tree
Hide file tree
Showing 12 changed files with 5,956 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ compiler: clang
before_install:
- chmod -x build-node.sh
install: sh ./build-node.sh
script: sh ./buildJ2V8_macos.sh
1 change: 1 addition & 0 deletions build-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ cd node
git checkout v5.9.1
./configure
make
cd ..
3 changes: 3 additions & 0 deletions buildJ2V8_macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd jni
clang++ -stdlib=libstdc++ -Iinclude -I../dep_includes_macosx -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

Loading

0 comments on commit f18cca7

Please sign in to comment.