diff options
author | Aleix Pol <aleixpol@kde.org> | 2018-05-14 22:42:37 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2018-05-14 22:46:15 +0200 |
commit | 98ecb149f595d600b10e47a943a400515bcf31c9 (patch) | |
tree | 9cd9e0bf28c02dab620a27399a5405bb4f278c77 /toolchain | |
parent | ac730a209953b1266606c5afc98b12c4a962808b (diff) | |
download | extra-cmake-modules-98ecb149f595d600b10e47a943a400515bcf31c9.tar.gz extra-cmake-modules-98ecb149f595d600b10e47a943a400515bcf31c9.tar.bz2 |
Android: Don't define qml-import-paths if it's empty
Otherwise androiddeployqt fails like it's failing now for kirigami
https://binary-factory.kde.org/view/Android/job/KirigamiGallery_android/48/console
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/ECMAndroidDeployQt.cmake | 3 | ||||
-rw-r--r-- | toolchain/deployment-file.json.in | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/toolchain/ECMAndroidDeployQt.cmake b/toolchain/ECMAndroidDeployQt.cmake index d9f3781f..9efcd1ca 100644 --- a/toolchain/ECMAndroidDeployQt.cmake +++ b/toolchain/ECMAndroidDeployQt.cmake @@ -20,6 +20,9 @@ function(ecm_androiddeployqt QTANDROID_EXPORTED_TARGET ECM_ADDITIONAL_FIND_ROOT_ endif() endif() endforeach() + if (QML_IMPORT_PATHS) + set(DEFINE_QML_IMPORT_PATHS ""qml-import-paths": \"${QML_IMPORT_PATHS}\",") + endif() set(EXTRA_PREFIX_DIRS "") foreach(prefix ${ECM_ADDITIONAL_FIND_ROOT_PATH}) diff --git a/toolchain/deployment-file.json.in b/toolchain/deployment-file.json.in index f213f121..6bb086ba 100644 --- a/toolchain/deployment-file.json.in +++ b/toolchain/deployment-file.json.in @@ -9,7 +9,7 @@ "target-architecture": "@ANDROID_ABI@", "application-binary": "@EXECUTABLE_DESTINATION_PATH@", "qml-root-path": "@CMAKE_SOURCE_DIR@", - "qml-import-paths": "@QML_IMPORT_PATHS@", + @DEFINE_QML_IMPORT_PATHS@ ##EXTRALIBS## ##EXTRAPLUGINS## "android-package-source-directory": "@ANDROID_APK_DIR@", |