summaryrefslogtreecommitdiff
path: root/qtactiveqt.pro
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-05-13 09:41:11 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2011-05-13 11:25:35 +1000
commit3a249e745200ccd61460ae40aea875c3d1f3244b (patch)
tree37d3de9bbd35f1acf92b6360fef53405c803fb88 /qtactiveqt.pro
parentaa7ccad90d090e221ef1c9531da17ccdea1cda0a (diff)
downloadqtactiveqt-3a249e745200ccd61460ae40aea875c3d1f3244b.tar.gz
Do not give a fatal error if attempting to compile ActiveQt on Unix
Gracefully disable, instead of giving fatal error, if attempting to compile ActiveQt on platforms where it is not supported. This is helpful for the sake of having a uniform test procedure. Without this, any test procedure needs to encode the logic that it shouldn't attempt to compile ActiveQt on platforms other than Windows. It is cleaner if the ActiveQt project itself gracefully degrades to "do nothing" on those platforms where it is not supported. Reviewed-by: Jason McDonald Change-Id: Id2544b4cbba604a5f76ba56a12bb801cb36e1646
Diffstat (limited to 'qtactiveqt.pro')
-rw-r--r--qtactiveqt.pro13
1 files changed, 8 insertions, 5 deletions
diff --git a/qtactiveqt.pro b/qtactiveqt.pro
index db56e0e..91317de 100644
--- a/qtactiveqt.pro
+++ b/qtactiveqt.pro
@@ -1,7 +1,5 @@
TEMPLATE = subdirs
-!win32:error("This is a Windows-only module")
-
activeqt_src.subdir = $$IN_PWD/src
activeqt_src.target = sub-src
@@ -13,6 +11,11 @@ activeqt_examples.subdir = $$IN_PWD/examples
activeqt_examples.target = sub-examples
activeqt_examples.depends = activeqt_src
-SUBDIRS = activeqt_src \
- activeqt_tools \
- activeqt_examples
+win32 {
+ SUBDIRS = activeqt_src \
+ activeqt_tools \
+ activeqt_examples
+}
+else {
+ message("ActiveQt is a Windows-only module - will not be built")
+}