🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
709 B

  1. # Cross-compiling for Android is handled by the NDK's own provided toolchain,
  2. # which as of this writing, should be in
  3. # ${ndk_root}/build/cmake/android.toolchain.cmake
  4. #
  5. # Certain older NDK versions may also need to explicitly pick the libc++
  6. # runtime. So for example:
  7. # cmake .. -DANDROID_STL=c++_shared \
  8. # -DCMAKE_TOOLCHAIN_FILE=${ndk_root}/build/cmake/android.toolchain.cmake
  9. #
  10. # Certain NDK versions may also need to use the lld linker to avoid errors
  11. # about missing liblog.so and libOpenSLES.so. That can be done by:
  12. # cmake .. -DANDROID_LD=lld \
  13. # -DCMAKE_TOOLCHAIN_FILE=${ndk_root}/build/cmake/android.toolchain.cmake
  14. #
  15. MESSAGE(FATAL_ERROR "Use the toolchain provided by the Android NDK")