Skip to content

Commit a55f5c7

Browse files
committed
Use Node.js to build J2V8 on MacOS.
Builds J2V8 using a copy of node.js located in node/ Add GitHub deployment to .travis.yml Overwrite existing files with GitHub release Only trigger travis builds on master
1 parent d5e273a commit a55f5c7

12 files changed

+5979
-7
lines changed

.travis.yml

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
language: java
2-
3-
notifications:
4-
email: false
1+
os: osx
2+
language: cpp
3+
branches:
4+
only: master
5+
compiler: clang
6+
before_install:
7+
- chmod -x build-node.sh
8+
install: sh ./build-node.sh
9+
script: sh ./buildJ2V8_macos.sh
10+
deploy:
11+
provider: releases
12+
api_key:
13+
secure: "Wo/ZgE9HDrnJcEhCCl4VDpJpabmI987cNH1P4oujeWQeNwBpdoS2cbPAgiUPKEa5Ouvgb3+Ecmmn/veVBxU2wHJJUlfdOZ/6g/QA72vwP74oDCBcsChK6VfleOPBMKwJ5GLhtGD/VjnIWnRSyAm/tFET0pOmxEWQGqEqcC34f/Q="
14+
skip_cleanup: true
15+
file: jni/libj2v8_macosx_x86_64.dylib
16+
overwrite: true
17+
on:
18+
branch: master
19+
repo: eclipsesource/J2V8

build-node.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
git clone https://github.com/nodejs/node.git
2+
cd node
3+
git checkout v5.9.1
4+
./configure --enable-static
5+
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)