-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild_all.sh
More file actions
executable file
·30 lines (26 loc) · 1.36 KB
/
build_all.sh
File metadata and controls
executable file
·30 lines (26 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# if [ ! -d "osxcross" ]; then
# git clone https://github.com/tpoechtrager/osxcross
# pushd osxcross
# wget --quiet -nc https://s3.dockerproject.org/darwin/v2/MacOSX10.10.sdk.tar.xz
# mv MacOSX10.10.sdk.tar.xz tarballs/
# UNATTENDED=yes OSX_VERSION_MIN=10.7 ./build.sh
# popd
# fi
# rustup target add i686-unknown-linux-gnu
# cargo build --target=i686-unknown-linux-gnu --release
# cp ../target/i686-unknown-linux-gnu/release/libzwaves_jni.so javalib/src/main/resources/META-INF/native/linux32
cargo build --target=x86_64-unknown-linux-gnu --release
cp ../target/x86_64-unknown-linux-gnu/release/libzwaves_jni.so javalib/src/main/resources/META-INF/native/linux64
# PATH="$(pwd)/osxcross/target/bin:$PATH" CC=o64-clang CXX=o64-clang++ LIBZ_SYS_STATIC=1 cargo build --target x86_64-apple-darwin --release
# cp ../target/x86_64-apple-darwin/release/libzwaves_jni.dylib javalib/src/main/resources/META-INF/native/osx
#
# rustup target add i686-pc-windows-gnu
# cargo build --target=i686-pc-windows-gnu --release
# cp ../target/i686-pc-windows-gnu/release/zwaves_jni.dll javalib/src/main/resources/META-INF/native/windows32
#
# rustup target add x86_64-pc-windows-gnu
# cargo build --target=x86_64-pc-windows-gnu --release
# cp ../target/x86_64-pc-windows-gnu/release/zwaves_jni.dll javalib/src/main/resources/META-INF/native/windows64
pushd javalib
./gradlew build -P
popd