summaryrefslogtreecommitdiffstats
path: root/examples/network
diff options
context:
space:
mode:
authorMorten Sørvig <[email protected]>2024-03-22 16:51:43 +0100
committerMorten Sørvig <[email protected]>2024-10-15 17:27:57 +0200
commitd211b2ba7cec6ad5d98f0e2d82af8b350a38242b (patch)
treea26af3e371075638faf075595fd16543f01b0e68 /examples/network
parentd69348ed4d659f9408ce74f3b08ee7e9104dde00 (diff)
wasm: disable network examples
http and rsslisting compile and can work, the rest are don't build and are probably too low level. Pick-to: 6.8 Change-Id: I031494178d0cace10951c3eb5495fbbf0f73d717 Reviewed-by: Piotr Wierciński <[email protected]>
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/CMakeLists.txt24
1 files changed, 13 insertions, 11 deletions
diff --git a/examples/network/CMakeLists.txt b/examples/network/CMakeLists.txt
index 6222bb7c8b7..640677238fc 100644
--- a/examples/network/CMakeLists.txt
+++ b/examples/network/CMakeLists.txt
@@ -4,23 +4,25 @@
if(NOT TARGET Qt6::Network)
return()
endif()
-if(NOT INTEGRITY AND NOT ANDROID)
+if(NOT INTEGRITY AND NOT ANDROID AND NOT WASM)
qt_internal_add_example(dnslookup)
endif()
if(TARGET Qt6::Widgets)
- qt_internal_add_example(blockingfortuneclient)
- qt_internal_add_example(broadcastreceiver)
- qt_internal_add_example(broadcastsender)
+ if(NOT WASM)
+ qt_internal_add_example(blockingfortuneclient)
+ qt_internal_add_example(broadcastreceiver)
+ qt_internal_add_example(broadcastsender)
+ qt_internal_add_example(threadedfortuneserver)
+ qt_internal_add_example(torrent)
+ qt_internal_add_example(multicastreceiver)
+ qt_internal_add_example(multicastsender)
+ qt_internal_add_example(fortuneclient)
+ qt_internal_add_example(fortuneserver)
+ endif()
qt_internal_add_example(http)
- qt_internal_add_example(threadedfortuneserver)
- qt_internal_add_example(torrent)
- qt_internal_add_example(multicastreceiver)
- qt_internal_add_example(multicastsender)
- qt_internal_add_example(fortuneclient)
- qt_internal_add_example(fortuneserver)
qt_internal_add_example(rsslisting)
endif()
-if(QT_FEATURE_processenvironment AND TARGET Qt6::Widgets)
+if(QT_FEATURE_processenvironment AND TARGET Qt6::Widgets AND NOT WASM)
qt_internal_add_example(network-chat)
endif()
if(QT_FEATURE_ssl AND TARGET Qt6::Widgets)