2013-11-18 21:16:06 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-06-26 03:28:42 +02:00
|
|
|
set -eu
|
2015-02-01 11:05:16 +01:00
|
|
|
|
2021-06-26 03:28:42 +02:00
|
|
|
echo "Compiling mbedtls"
|
|
|
|
(cd mbedtls && make no_test)
|
|
|
|
|
|
|
|
echo "Compiling zlib"
|
|
|
|
(cd zlib && CFLAGS=-fPIC ./configure --static && make)
|
|
|
|
|
2024-04-14 01:08:02 +02:00
|
|
|
CXX="g++ -shared -fPIC -O3 -Wall -Werror -I$JAVA_HOME/include/ -I$JAVA_HOME/include/linux/"
|
2021-06-26 03:28:42 +02:00
|
|
|
|
|
|
|
$CXX -Imbedtls/include src/main/c/NativeCipherImpl.cpp -o src/main/resources/native-cipher.so mbedtls/library/libmbedcrypto.a
|
|
|
|
$CXX -Izlib src/main/c/NativeCompressImpl.cpp -o src/main/resources/native-compress.so zlib/libz.a
|