12345678910111213141516171819202122232425262728293031323334353637383940 |
- #[=======================================================================[.rst:
- Android
- -------
- This file contains functions for options and configuration for targeting the
- Android platform
- Configuration of the Android toolchain is done using toolchain files,
- CMakePresets, or variables on the command line.
- The `Android SDK`_ provides toolchain files to help with configuration.
- CMake has its own `built-in support`_ for cross compiling to the
- Android platforms.
- .. warning::
- Android does not support or test the CMake built-in workflow, recommend
- using their toolchain file.
- .. _Android SDK:https://developer.android.com/ndk/guides/cmake
- .. _built-in support:https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-android
- There is further information and examples in the doc/cmake.rst file.
- ]=======================================================================]
- function( android_options )
- # Android Options
- endfunction()
- function( android_generate )
- target_compile_definitions(${TARGET_NAME}
- PUBLIC
- ANDROID_ENABLED
- UNIX_ENABLED
- )
- common_compiler_flags()
- endfunction()
|