diff options
author | Elias Hautala <elias.hautala@qt.io> | 2023-08-14 09:29:20 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-08-22 06:34:45 +0000 |
commit | 62549f12b13ce49018d94e92f3a80a5fb9a38015 (patch) | |
tree | ae7a61c09ec4138a0a59c3540275d12df11b5a50 /examples/qml | |
parent | 2ee4593db88b72d4efd56719adf3bb084b016983 (diff) |
Exclude some examples from Android build
Exclude advanced1-Base-project, advanced2-Inheritance-and-coercion and
advanced3-Default-properties, because of missing Qui and Quick
dependencies.
Task-number: QTBUG-111933
Change-Id: Ia472807f9eda3bd6248ff7515d1ca13bc0bde6cf
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
(cherry picked from commit a7d32469d4cf452b8d1daae8a962a48ebc06a0f9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/qml')
4 files changed, 17 insertions, 3 deletions
diff --git a/examples/qml/tutorials/extending-qml-advanced/CMakeLists.txt b/examples/qml/tutorials/extending-qml-advanced/CMakeLists.txt index 5541a8761d..fa6ca856e9 100644 --- a/examples/qml/tutorials/extending-qml-advanced/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml-advanced/CMakeLists.txt @@ -1,9 +1,11 @@ # Copyright (C) 2023 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -qt_internal_add_example(advanced1-Base-project) -qt_internal_add_example(advanced2-Inheritance-and-coercion) -qt_internal_add_example(advanced3-Default-properties) +if(NOT ANDROID) + qt_internal_add_example(advanced1-Base-project) + qt_internal_add_example(advanced2-Inheritance-and-coercion) + qt_internal_add_example(advanced3-Default-properties) +endif(NOT ANDROID) qt_internal_add_example(advanced4-Grouped-properties) qt_internal_add_example(advanced5-Attached-properties) qt_internal_add_example(advanced6-Property-value-source) diff --git a/examples/qml/tutorials/extending-qml-advanced/advanced1-Base-project/CMakeLists.txt b/examples/qml/tutorials/extending-qml-advanced/advanced1-Base-project/CMakeLists.txt index d1710e2d49..298c7b3652 100644 --- a/examples/qml/tutorials/extending-qml-advanced/advanced1-Base-project/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml-advanced/advanced1-Base-project/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(baseproject LANGUAGES CXX) +if (ANDROID) + message(FATAL_ERROR "This project cannot be built on Android.") +endif() + if(NOT DEFINED INSTALL_EXAMPLESDIR) set(INSTALL_EXAMPLESDIR "examples") endif() diff --git a/examples/qml/tutorials/extending-qml-advanced/advanced2-Inheritance-and-coercion/CMakeLists.txt b/examples/qml/tutorials/extending-qml-advanced/advanced2-Inheritance-and-coercion/CMakeLists.txt index 0d15362a24..98175e664c 100644 --- a/examples/qml/tutorials/extending-qml-advanced/advanced2-Inheritance-and-coercion/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml-advanced/advanced2-Inheritance-and-coercion/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(coercion LANGUAGES CXX) +if (ANDROID) + message(FATAL_ERROR "This project cannot be built on Android.") +endif() + if(NOT DEFINED INSTALL_EXAMPLESDIR) set(INSTALL_EXAMPLESDIR "examples") endif() diff --git a/examples/qml/tutorials/extending-qml-advanced/advanced3-Default-properties/CMakeLists.txt b/examples/qml/tutorials/extending-qml-advanced/advanced3-Default-properties/CMakeLists.txt index 1dbacfc62e..fe8e0e85b0 100644 --- a/examples/qml/tutorials/extending-qml-advanced/advanced3-Default-properties/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml-advanced/advanced3-Default-properties/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(default LANGUAGES CXX) +if (ANDROID) + message(FATAL_ERROR "This project cannot be built on Android.") +endif() + if(NOT DEFINED INSTALL_EXAMPLESDIR) set(INSTALL_EXAMPLESDIR "examples") endif() |