mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-14 00:05:54 +08:00
- Add a custom triplets for building dynamic android libraries - Set `ANDROID_NDK_HOME` environment variable, as it is needed when vcpkg builds for Android. - Install openSSL for x64-windows, arm64-windows, and armeabi-v7a-android-qt. The android triplet has been renamed from vcpkg's official `arm-neon-android.cmake` triplet to further clarify the android abi. - The version of the libraries installed via vcpkg is being written to versions.txt as `vpckg <library-name> = <library-version>` Task-number: QTBUG-115715 Change-Id: I4a17bf00e59c3c90968941be6a21c1d961ba3d97 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
16 lines
498 B
CMake
16 lines
498 B
CMake
set(VCPKG_TARGET_ARCHITECTURE arm)
|
|
|
|
# Default settings of the triplet from the official vcpkg registry
|
|
set(VCPKG_CRT_LINKAGE static)
|
|
set(VCPKG_LIBRARY_LINKAGE static)
|
|
|
|
# Qt custom per-port customizations
|
|
if(PORT MATCHES "openssl")
|
|
set(VCPKG_CRT_LINKAGE dynamic)
|
|
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
|
endif()
|
|
|
|
set(VCPKG_CMAKE_SYSTEM_NAME Android)
|
|
set(VCPKG_MAKE_BUILD_TRIPLET "--host=armv7a-linux-androideabi")
|
|
set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DANDROID_ABI=armeabi-v7a -DANDROID_ARM_NEON=ON)
|