blob: ec96a2138c26e65115f46d5645b105195c126a1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# Generates the necessary JNI to use native audio libraries using JavaCPP.
# Call this from the project root.
if [ "$1" == "--build" ]; then
# Build classes if we provide --build
./gradlew assembleDebug
fi
java -jar tools/javacpp-0.7.jar -cp build/intermediates/classes/debug/ -d src/main/jni/ -nocompile se.lublin.humla.audio.javacpp.*
if [ "$1" == "--build" ]; then
# Build native libs
ndk-build -C src/main/jni
fi
|