summaryrefslogtreecommitdiffstats
path: root/cmake/configure-cmake-mapping.md
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-10-05 14:49:39 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-10-06 06:31:18 +0200
commit1f52f45836351d4f79b954ffdb3bba018065eeaf (patch)
tree221cc0c04ac6a84743264572d6870b69d46bdc8b /cmake/configure-cmake-mapping.md
parent260a6e86c2e7f52c9b9f0340249e88d7c56b6406 (diff)
CMake: Implement missing Android-related configure options
Implement the last remaining Android-related configure options for the CMake build. Print warnings for options that have no equivalent in the CMake build. Let -android-ndk automatically deduce the CMake toolchain file, and error out if that fails with a hint how to fix the situation. Task-number: QTBUG-85373 Change-Id: I8399e5334ae0f1f6634e381775a308d34f7c482b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/configure-cmake-mapping.md')
-rw-r--r--cmake/configure-cmake-mapping.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmake/configure-cmake-mapping.md b/cmake/configure-cmake-mapping.md
index 95527273fd..6f7b7af71a 100644
--- a/cmake/configure-cmake-mapping.md
+++ b/cmake/configure-cmake-mapping.md
@@ -89,12 +89,12 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -L <string> | -DQT_EXTRA_LIBDIRS=<string1>;<string2> | |
| -F <string> | -DQT_EXTRA_FRAMEWORKPATHS=<string1>;<string2> | |
| -sdk <sdk> | | |
-| -android-sdk path | | |
-| -android-ndk path | | |
-| -android-ndk-platform | | |
-| -android-ndk-host | | |
-| -android-abis | | |
-| -android-style-assets | | |
+| -android-sdk <path> | -DANDROID_SDK_ROOT=<path> | |
+| -android-ndk <path> | -DCMAKE_TOOLCHAIN_PATH=<toolchain file in NDK> | |
+| -android-ndk-platform android-23 | -DCMAKE_ANDROID_NATIVE_API_LEVEL=23 | |
+| -android-ndk-host | n/a | determined by toolchain file |
+| -android-abis <abi_1>,...,<abi_n> | -DANDROID_ABI=<abi_1> | only one ABI can be specified |
+| -android-style-assets | -DFEATURE_android_style_assets=ON | |
| -android-javac-source | -DQT_ANDROID_JAVAC_SOURCE=7 | Set the javac build source version. |
| -android-javac-target | -DQT_ANDROID_JAVAC_TARGET=7 | Set the javac build target version. |
| -skip <repo> | -DBUILD_<repo>=OFF | |