Compare commits
2 commits
a17a7b0f7e
...
6b043eea98
Author | SHA1 | Date | |
---|---|---|---|
6b043eea98 | |||
f90a24da82 |
1 changed files with 3 additions and 2 deletions
5
build.sh
5
build.sh
|
@ -67,7 +67,8 @@ fi
|
||||||
export RUSTFLAGS="-C target-feature=-crt-static"
|
export RUSTFLAGS="-C target-feature=-crt-static"
|
||||||
|
|
||||||
title 'Building reqwest-jni'
|
title 'Building reqwest-jni'
|
||||||
cd_and_exec reqwest4j/reqwest-jni cargo build --release
|
cd_and_exec reqwest4j/reqwest-jni \
|
||||||
|
cargo build --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
title 'Building reqwest4j without Rust library...'
|
title 'Building reqwest4j without Rust library...'
|
||||||
cd_and_exec reqwest4j ./gradlew shadowJar
|
cd_and_exec reqwest4j ./gradlew shadowJar
|
||||||
|
@ -91,7 +92,7 @@ cd_and_exec reqwest4j/build/libs \
|
||||||
REQJNI_NAME="libreqwest.so"
|
REQJNI_NAME="libreqwest.so"
|
||||||
REQJNI="$WORKDIR/$REQJNI_NAME"
|
REQJNI="$WORKDIR/$REQJNI_NAME"
|
||||||
|
|
||||||
cd_and_exec reqwest4j/reqwest-jni/target/release \
|
cd_and_exec reqwest4j/reqwest-jni/target/x86_64-unknown-linux-musl/release \
|
||||||
cp libreqwest_jni.so "$REQJNI"
|
cp libreqwest_jni.so "$REQJNI"
|
||||||
|
|
||||||
# Create JAR native libraries tree
|
# Create JAR native libraries tree
|
||||||
|
|
Loading…
Add table
Reference in a new issue