aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorElias Hautala <elias.hautala@qt.io>2023-08-11 10:08:08 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-08-21 08:56:16 +0000
commit33e93849aa3afeee678a5bb5b9bba779155c7044 (patch)
tree246e81b4cbcc8cde90389ab2c5a2a09eb1dfd3ea /examples
parente4ccd6e33068cb95c84d201beb5a6b053a805f40 (diff)
Exclude chatserver-cpp example for Android build
Excludes chatserver-cpp example for android build, baecause it can't be built for Android. Task-number: QTBUG-111933 Change-Id: I2e6accdbee41c6261951b303ad8f5f2c9f27a298 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io> (cherry picked from commit 4f896282901036966e8fb3b67ea5119dc598642b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/webchannel/CMakeLists.txt2
-rw-r--r--examples/webchannel/chatserver-cpp/CMakeLists.txt4
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/webchannel/CMakeLists.txt b/examples/webchannel/CMakeLists.txt
index af70ba4..52825f6 100644
--- a/examples/webchannel/CMakeLists.txt
+++ b/examples/webchannel/CMakeLists.txt
@@ -6,7 +6,7 @@
#qt_internal_add_example(qwclient)
#qt_internal_add_example(chatclient-html)
-if(TARGET Qt::WebSockets)
+if(TARGET Qt::WebSockets AND NOT ANDROID)
qt_internal_add_example(chatserver-cpp)
endif()
if(TARGET Qt::WebSockets AND TARGET Qt::Widgets)
diff --git a/examples/webchannel/chatserver-cpp/CMakeLists.txt b/examples/webchannel/chatserver-cpp/CMakeLists.txt
index aa4943f..c599a04 100644
--- a/examples/webchannel/chatserver-cpp/CMakeLists.txt
+++ b/examples/webchannel/chatserver-cpp/CMakeLists.txt
@@ -4,6 +4,10 @@
cmake_minimum_required(VERSION 3.16)
project(chatserver LANGUAGES CXX)
+if (ANDROID)
+ message(FATAL_ERROR "This project cannot be built on Android.")
+endif()
+
set(CMAKE_AUTOMOC ON)
if(NOT DEFINED INSTALL_EXAMPLESDIR)