fluidsynth/test-android
atsushieno 962a544d15 Revert "[test-android] another build script fix for host/target was needed."
This reverts commit f5144c011ef58b901dc5b1153d59ee61fa32a900.
2021-06-12 19:05:52 +09:00
..
app Add Android test app. 2021-06-12 19:05:51 +09:00
build-scripts Revert "[test-android] another build script fix for host/target was needed." 2021-06-12 19:05:52 +09:00
gradle/wrapper Add Android test app. 2021-06-12 19:05:51 +09:00
.gitignore Add Android test app. 2021-06-12 19:05:51 +09:00
build.gradle Add Android test app. 2021-06-12 19:05:51 +09:00
gradle.properties Add Android test app. 2021-06-12 19:05:51 +09:00
gradlew Add Android test app. 2021-06-12 19:05:51 +09:00
gradlew.bat Add Android test app. 2021-06-12 19:05:51 +09:00
README.md [test-android] some followups on README. 2021-06-12 19:05:51 +09:00
settings.gradle Add Android test app. 2021-06-12 19:05:51 +09:00

Android test runner

It is meant to be an Android app that runs those fluidsynth tests under ../test directory.

It is not immediately doable at this moment because everything is based on ctest where each source has main() function that cannot be more than one within a shared library. Either every single test source file has to be compiled separately, or renaming main() to something else and have separate runnable (latter is much simpler).

But so far this app makes sure that it loads libfluidsynth.so without problem.

Building

It can be built and run from Android Studio (or gradle if you prefer).

You have to build fluidsynth for Android first, and then copy libfluidsynth.so and all the dependencies into app/src/main/jniLibs/{ABI} (armeabi-v7a / arm64-v8a / x86 / x86_64).

If you want to build them locally the scripts under build-scripts directory would be useful. Run download.sh first, and then build-all-archs.sh. The scripts are mostly taken from the build scripts from .azure.