mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Android: add NDK hooks
This change adds hooks to key Android support files, so that NDK can inject information or change cmake behaviors.
This commit is contained in:
@@ -4,6 +4,12 @@
|
||||
# When CMAKE_SYSTEM_NAME is "Android", CMakeSystemSpecificInitialize loads this
|
||||
# module.
|
||||
|
||||
# Include the NDK hook.
|
||||
# It can be used by NDK to inject necessary fixes for an earlier cmake.
|
||||
if(CMAKE_ANDROID_NDK)
|
||||
include(${CMAKE_ANDROID_NDK}/build/cmake/hooks/pre/Android-Initialize.cmake OPTIONAL)
|
||||
endif()
|
||||
|
||||
# Support for NVIDIA Nsight Tegra Visual Studio Edition was previously
|
||||
# implemented in the CMake VS IDE generators. Avoid interfering with
|
||||
# that functionality for now.
|
||||
@@ -53,3 +59,9 @@ else()
|
||||
"Android: No CMAKE_SYSROOT was selected."
|
||||
)
|
||||
endif()
|
||||
|
||||
# Include the NDK hook.
|
||||
# It can be used by NDK to inject necessary fixes for an earlier cmake.
|
||||
if(CMAKE_ANDROID_NDK)
|
||||
include(${CMAKE_ANDROID_NDK}/build/cmake/hooks/post/Android-Initialize.cmake OPTIONAL)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user