summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2021-08-23 10:32:17 +0300
committerDoris Verria <doris.verria@qt.io>2021-08-23 14:18:42 +0200
commit7038c860dbb3c329c567e5dc0a87d4063700d549 (patch)
tree5567335eb189ba4fb3b6e9a48fc5e5969c45c63a
parent619f975f7529a0c2503377615917b1a858e4f2a2 (diff)
Don't run devices example on mobile platforms
devices example is a command line example and doesn't run properly on Android and iOS. Pick-to: 6.2 Change-Id: Iabe1185d5481b6fdfb1c47f9b71fe921d99eea23 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r--examples/multimedia/devices/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/multimedia/devices/CMakeLists.txt b/examples/multimedia/devices/CMakeLists.txt
index d75b4f23f..2727c1a75 100644
--- a/examples/multimedia/devices/CMakeLists.txt
+++ b/examples/multimedia/devices/CMakeLists.txt
@@ -9,6 +9,11 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
+if(ANDROID OR IOS)
+ message(WARNING "This is a commandline tool that is not supported on mobile platforms")
+ return()
+endif()
+
if(NOT DEFINED INSTALL_EXAMPLESDIR)
set(INSTALL_EXAMPLESDIR "examples")
endif()