aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-10-08 10:32:27 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-10-10 09:54:22 +0200
commitaf623414ece84e0f9cd0d56f0dd22d155851098c (patch)
tree41248c8fab4d8612712ac3e09450f86771342fcb /examples
parent3fde977a817498817e98ce350d493658b0ed4458 (diff)
Add guards in .pro of platform/api-specific scenegraph examples
Task-number: QTBUG-78783 Change-Id: Icda60d4358c35de311552fd7562c3cf0c3425b7b Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/scenegraph/d3d11underqml/d3d11underqml.pro2
-rw-r--r--examples/quick/scenegraph/metaltextureimport/metaltextureimport.pro2
-rw-r--r--examples/quick/scenegraph/metalunderqml/metalunderqml.pro2
-rw-r--r--examples/quick/scenegraph/vulkanunderqml/vulkanunderqml.pro2
4 files changed, 8 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/d3d11underqml/d3d11underqml.pro b/examples/quick/scenegraph/d3d11underqml/d3d11underqml.pro
index 3c94d48ac4..7658a9a813 100644
--- a/examples/quick/scenegraph/d3d11underqml/d3d11underqml.pro
+++ b/examples/quick/scenegraph/d3d11underqml/d3d11underqml.pro
@@ -1,3 +1,5 @@
+!win32: error("This example requires Windows")
+
QT += qml quick
HEADERS += d3d11squircle.h
diff --git a/examples/quick/scenegraph/metaltextureimport/metaltextureimport.pro b/examples/quick/scenegraph/metaltextureimport/metaltextureimport.pro
index c8ea7ce478..5b11606946 100644
--- a/examples/quick/scenegraph/metaltextureimport/metaltextureimport.pro
+++ b/examples/quick/scenegraph/metaltextureimport/metaltextureimport.pro
@@ -1,3 +1,5 @@
+!macos: error("This example requires macOS")
+
QT += qml quick
HEADERS += metaltextureimport.h
diff --git a/examples/quick/scenegraph/metalunderqml/metalunderqml.pro b/examples/quick/scenegraph/metalunderqml/metalunderqml.pro
index 9b27638a6d..9fd131fe1b 100644
--- a/examples/quick/scenegraph/metalunderqml/metalunderqml.pro
+++ b/examples/quick/scenegraph/metalunderqml/metalunderqml.pro
@@ -1,3 +1,5 @@
+!macos: error("This example requires macOS")
+
QT += qml quick
HEADERS += metalsquircle.h
diff --git a/examples/quick/scenegraph/vulkanunderqml/vulkanunderqml.pro b/examples/quick/scenegraph/vulkanunderqml/vulkanunderqml.pro
index 9a0a87c9f0..9ea57b91c3 100644
--- a/examples/quick/scenegraph/vulkanunderqml/vulkanunderqml.pro
+++ b/examples/quick/scenegraph/vulkanunderqml/vulkanunderqml.pro
@@ -1,3 +1,5 @@
+!qtConfig(vulkan): error("This example requires Qt built with Vulkan support")
+
QT += qml quick
HEADERS += vulkansquircle.h