diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-06-27 10:51:42 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-06-27 09:53:14 +0000 |
commit | 20bf867a72f9ec27205bef3ec62403f72aca1adb (patch) | |
tree | 4403257e2bb8a56d8fe62a94afc48546343cdc10 /cmake/README.md | |
parent | f8c52530f7eedbfa7b106ef457a09005d586d926 (diff) |
Update README for other Android architectures
Update the cmake README file with explanations on how to target the
other available Android architectures.
Change-Id: Id7653abc4a1a6fbb96797014ce2ca2e6bb49943d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'cmake/README.md')
-rw-r--r-- | cmake/README.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cmake/README.md b/cmake/README.md index 1d00a438f5..4239fb0ce2 100644 --- a/cmake/README.md +++ b/cmake/README.md @@ -137,7 +137,11 @@ Vcpkg for Android can be set up using the following steps: * ```git clone -b qt https://github.com/tronical/vcpkg``` * Run ```bootstrap-vcpkg.bat``` or ```bootstrap-vcpkg.sh``` - * Set the ``VCPKG_DEFAULT_TRIPLET`` environment variable to ``arm-android`` + * Set the ``VCPKG_DEFAULT_TRIPLET`` environment variable to on of the following values: + * ``arm-android`` (armeabi-v7a) + * ``arm64-android`` (arm64v8) + * ``x86-android`` (x86) + * ``x64-android`` (x86_64) * Set the ``VCPKG_ROOT`` environment variable to the path where you cloned vcpkg * Set the ``ANDROID_NDK_HOME`` environment variable to the path where you have installed the Android NDK. * Set the ``ANDROID_SDK_HOME`` environment variable to the path where you have installed the Android SDK. @@ -145,6 +149,11 @@ Vcpkg for Android can be set up using the following steps: When running cmake in qtbase, pass ``-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DQT_HOST_PATH=/path/to/your/host/build -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_SDK_ROOT=$ANDROID_SDK_HOME -DANDROID_STL=c++_shared -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH`` +If you don't supply the configuration argument ``-DANDROID_ABI=...``, it will default to ``armeabi-v7a``. To target other architectures, use on of the following values: + * arm64: ``-DANDROID_ABI=arm64-v8`` + * x86: ``-DANDROID_ABI=x86`` + * x86_64: ``-DANDROID_ABI=x86_64`` + # Debugging CMake files CMake allows specifying the ``--trace`` and ``--trace-expand`` options, which work like ``qmake -d -d``: As the cmake code is evaluated, the values of parameters and variables is shown. This can be a lot of output, so you may want to redirect it to a file. |