summaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-05-27 12:12:08 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-05-27 12:17:08 +0200
commit201f28c7e332bc0cb37a80f4ffff0d473d24455a (patch)
treeb498c507078cf236ba7de79ccabf49ddaa7ab573 /examples/quick
parent08f56c9830c12f6b443649e3e4f51b3cea69d79b (diff)
Skip d3d rendercontrol example on MinGW
We will not invest into adding workarounds in the example code as the boilerplate to keep such unofficial environments working is not worth the effort and compromises readability in example code. Just skip building on MinGW. Change-Id: If33bd0382f8cab4713ad45fcaa126830e9760af3 Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/rendercontrol/CMakeLists.txt3
-rw-r--r--examples/quick/rendercontrol/rendercontrol.pro2
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/quick/rendercontrol/CMakeLists.txt b/examples/quick/rendercontrol/CMakeLists.txt
index bfcd71de24..53924b33ce 100644
--- a/examples/quick/rendercontrol/CMakeLists.txt
+++ b/examples/quick/rendercontrol/CMakeLists.txt
@@ -1,3 +1,6 @@
# Generated from rendercontrol.pro.
add_subdirectory(rendercontrol_opengl)
+if(WIN32 AND NOT MINGW)
+ add_subdirectory(rendercontrol_d3d11)
+endif()
diff --git a/examples/quick/rendercontrol/rendercontrol.pro b/examples/quick/rendercontrol/rendercontrol.pro
index d49be63c50..9922e1e077 100644
--- a/examples/quick/rendercontrol/rendercontrol.pro
+++ b/examples/quick/rendercontrol/rendercontrol.pro
@@ -3,7 +3,7 @@ TEMPLATE = subdirs
SUBDIRS += \
rendercontrol_opengl
-win32 {
+win32:!mingw {
SUBDIRS += \
rendercontrol_d3d11
}