diff options
author | Ville Voutilainen <ville.voutilainen@qt.io> | 2023-05-12 09:35:51 +0300 |
---|---|---|
committer | Ville Voutilainen <ville.voutilainen@qt.io> | 2023-05-12 20:11:52 +0300 |
commit | 0c44db4a8887050b8021a560ff00d23250166d69 (patch) | |
tree | 66446fe579a5c33d1a0cdbcfb07c3dd0188579b9 /examples | |
parent | 6d6cf2727628bb1744333b33e20f8516cd9ba07d (diff) |
Disable cmdline-only examples on Android
Task-number:QTBUG-111933
Change-Id: I361a3f86d3bc0cce4be534630930f61e639acf43
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'examples')
5 files changed, 20 insertions, 4 deletions
diff --git a/examples/remoteobjects/simpleswitch/CMakeLists.txt b/examples/remoteobjects/simpleswitch/CMakeLists.txt index 345d020..5e53132 100644 --- a/examples/remoteobjects/simpleswitch/CMakeLists.txt +++ b/examples/remoteobjects/simpleswitch/CMakeLists.txt @@ -3,8 +3,8 @@ if (NOT ANDROID) qt_internal_add_example(directconnectclient) + qt_internal_add_example(directconnectdynamicclient) + qt_internal_add_example(directconnectserver) + qt_internal_add_example(registryconnectedclient) + qt_internal_add_example(registryconnectedserver) endif() -qt_internal_add_example(directconnectdynamicclient) -qt_internal_add_example(directconnectserver) -qt_internal_add_example(registryconnectedclient) -qt_internal_add_example(registryconnectedserver) diff --git a/examples/remoteobjects/simpleswitch/directconnectdynamicclient/CMakeLists.txt b/examples/remoteobjects/simpleswitch/directconnectdynamicclient/CMakeLists.txt index b8f13a7..828a4fe 100644 --- a/examples/remoteobjects/simpleswitch/directconnectdynamicclient/CMakeLists.txt +++ b/examples/remoteobjects/simpleswitch/directconnectdynamicclient/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(directconnectdynamicclient LANGUAGES CXX) +if (ANDROID) + message(FATAL_ERROR "This project cannot be built on Android.") +endif() + set(CMAKE_AUTOMOC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) diff --git a/examples/remoteobjects/simpleswitch/directconnectserver/CMakeLists.txt b/examples/remoteobjects/simpleswitch/directconnectserver/CMakeLists.txt index 7dbe9bb..7bd2ecd 100644 --- a/examples/remoteobjects/simpleswitch/directconnectserver/CMakeLists.txt +++ b/examples/remoteobjects/simpleswitch/directconnectserver/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(directconnectserver LANGUAGES CXX) +if (ANDROID) + message(FATAL_ERROR "This project cannot be built on Android.") +endif() + set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) diff --git a/examples/remoteobjects/simpleswitch/registryconnectedclient/CMakeLists.txt b/examples/remoteobjects/simpleswitch/registryconnectedclient/CMakeLists.txt index 467ba65..17c4609 100644 --- a/examples/remoteobjects/simpleswitch/registryconnectedclient/CMakeLists.txt +++ b/examples/remoteobjects/simpleswitch/registryconnectedclient/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(registryconnectedclient LANGUAGES CXX) +if (ANDROID) + message(FATAL_ERROR "This project cannot be built on Android.") +endif() + set(CMAKE_AUTOMOC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) diff --git a/examples/remoteobjects/simpleswitch/registryconnectedserver/CMakeLists.txt b/examples/remoteobjects/simpleswitch/registryconnectedserver/CMakeLists.txt index 9c19cd0..5239890 100644 --- a/examples/remoteobjects/simpleswitch/registryconnectedserver/CMakeLists.txt +++ b/examples/remoteobjects/simpleswitch/registryconnectedserver/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(registryconnectedserver LANGUAGES CXX) +if (ANDROID) + message(FATAL_ERROR "This project cannot be built on Android.") +endif() + set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) |