Require META_ANDROID_PACKAGE_NAME for making Android APKs
This commit is contained in:
parent
f1897175e8
commit
5f115b4918
|
@ -19,6 +19,10 @@ if (NOT EXISTS "${CMAKE_ANDROID_NDK}")
|
||||||
message(FATAL_ERROR "CMAKE_ANDROID_NDK must contain the path of the Android NDK.")
|
message(FATAL_ERROR "CMAKE_ANDROID_NDK must contain the path of the Android NDK.")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (NOT META_ANDROID_PACKAGE_NAME)
|
||||||
|
message(FATAL_ERROR "Attempt to load AndroidApk.cmake without having set ANDROID_PACKAGE_NAME.")
|
||||||
|
endif ()
|
||||||
|
|
||||||
# find "android" subdirectory in the source directory and check for AndroidManifest.xml
|
# find "android" subdirectory in the source directory and check for AndroidManifest.xml
|
||||||
set(ANDROID_APK_SUBDIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
|
set(ANDROID_APK_SUBDIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
|
||||||
if (NOT IS_DIRECTORY "${ANDROID_APK_SUBDIR}")
|
if (NOT IS_DIRECTORY "${ANDROID_APK_SUBDIR}")
|
||||||
|
|
Loading…
Reference in New Issue