INSTALL.Android 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. libzipper
  2. Michael McMaster <michael@codesrc.com>
  3. Pre-Requisites
  4. Android NDK (tested with android-ndk-r6)
  5. Existing Android project
  6. NDK Limitations
  7. * Your Application.mk file must enable C++ exceptions with:
  8. APP_CPPFLAGS := -fexceptions -frtti
  9. Although the NDK supports exceptions as of r5, they are disabled by
  10. default for backwards compatibility.
  11. * Your Application.mk file must specify a C++ STL implementation with
  12. exception support. As of r6, only gnustl_static provides exception support.
  13. APP_STL := gnustl_static
  14. Note that this port doesn't include any JNI interface code. It is expected that
  15. libzipper will be called from other native code libraries, and not directly
  16. from Java.
  17. Including libzipper in your NDK project:
  18. 1) Modify your Application.mk file to include the module, and
  19. set APP_CPPFLAGS and APP_STL as stated under "NDK Limitations" above.
  20. APP_CPPFLAGS += -fexceptions -frtti
  21. APP_STL := gnustl_static
  22. APP_MODULES += zipper
  23. 2) Modify your applications Android.mk file to import the libzipper module:
  24. LOCAL_STATIC_LIBRARIES += libzipper
  25. $(call import-module,zipper)
  26. 3) Set the NDK_MODULE_PATH variable to include the libzipper source directory
  27. when calling ndk-build.
  28. eg. If libzipper was extracted to /tmp/libzipper-1.0.3:
  29. cd /path/to/your/ndk/application
  30. ndk-build NDK_MODULE_PATH="/tmp/libzipper-1.0.3/android"