README.AndroidNDK.txt 1.1 KB

123456789101112131415161718192021
  1. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  2. This is preliminary documentation.
  3. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4. 0. The minimum required Android NDK version is r18b.
  5. 1. Copy the whole libopenmpt source tree below your jni directory.
  6. 2. Copy build/android_ndk/* into the root of libopenmpt, i.e. also into the
  7. jni directory and adjust as needed.
  8. 3. If you want to support MO3 decoding, you have to either make libmpg123,
  9. libogg, libvorbis and libvorbisfile available (recommended) OR build
  10. libopenmpt with minimp3 and stb_vorbis support (not recommended).
  11. Pass the appropriate options to ndk-build:
  12. MPT_WITH_MINIMP3=1 : Build minimp3 into libopenmpt
  13. MPT_WITH_MPG123=1 : Link against libmpg123 compiled externally
  14. MPT_WITH_OGG=1 : Link against libogg compiled externally
  15. MPT_WITH_STBVORBIS=1 : Build stb_vorbis into libopenmpt
  16. MPT_WITH_VORBIS=1 : Link against libvorbis compiled externally
  17. MPT_WITH_VORBISFILE=1 : Link against libvorbisfile compiled externally
  18. 4. Use ndk-build as usual.