Welcome to mirror list, hosted at ThFree Co, Russian Federation.

jnigen.sh « tools - gitlab.com/quite/humla.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ecdfbe7750209503923b042b7d06a98e1597a138 (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/javac/debug/classes/ -d src/main/jni/ -nocompile se.lublin.humla.audio.javacpp.*

if [ "$1" == "--build" ]; then
    # Build native libs
    ndk-build -C src/main/jni
fi