summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorBartlomiej Moskal <bartlomiej.moskal@qt.io>2023-01-09 13:45:57 +0100
committerBartlomiej Moskal <bartlomiej.moskal@qt.io>2023-01-11 09:39:51 +0100
commitaba7bc72e1ed1b964959e6e358ea3c77db3586c3 (patch)
treed46a6fbb84bd0ccb4bff0b5c9ada21907516a1aa /examples
parent1e7d612b2c3e607bd35ee4a1def9af9aae9dde05 (diff)
Add build error in Devices example for not supported OS
Add error message to Devices example for cmake and qmake. It will allow to avoid building by unsupported operating systems in the future. Pick-to: 6.5 6.4 6.2 Fixes: QTBUG-109539 Change-Id: Id8d63e8b6c2a9f066466cbd718510007b55019e1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/multimedia/devices/CMakeLists.txt4
-rw-r--r--examples/multimedia/devices/devices.pro2
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/multimedia/devices/CMakeLists.txt b/examples/multimedia/devices/CMakeLists.txt
index 89e58c112..d0856af45 100644
--- a/examples/multimedia/devices/CMakeLists.txt
+++ b/examples/multimedia/devices/CMakeLists.txt
@@ -4,6 +4,10 @@
cmake_minimum_required(VERSION 3.16)
project(devices LANGUAGES CXX)
+if(ANDROID OR IOS)
+ message(FATAL_ERROR "This is a commandline tool that is not supported on mobile platforms")
+endif()
+
set(CMAKE_AUTOMOC ON)
if(NOT DEFINED INSTALL_EXAMPLESDIR)
diff --git a/examples/multimedia/devices/devices.pro b/examples/multimedia/devices/devices.pro
index a03166ca4..bbc5ecea8 100644
--- a/examples/multimedia/devices/devices.pro
+++ b/examples/multimedia/devices/devices.pro
@@ -1,3 +1,5 @@
+android|ios: error("This is a commandline tool that is not supported on mobile platforms")
+
TEMPLATE = app
TARGET = devices