summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-10-18 14:40:41 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-10-18 13:46:10 +0000
commit50119ffe4a365d3f6db189150649303d3e4b9b57 (patch)
treeab91b732bbc839bfe26a90e382684adff5fd7bd6
parent28751d2232d6e04fdef3db72e0e7b77055bafc45 (diff)
On Windows, only build if ELFUTILS_INSTALL_DIR is given
Otherwise we won't succeed anyway. Change-Id: I14a6a95d198784a347e0e5637e5e97ec546f54eb Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--perfparser.pro10
1 files changed, 7 insertions, 3 deletions
diff --git a/perfparser.pro b/perfparser.pro
index c214914..3d14bdf 100644
--- a/perfparser.pro
+++ b/perfparser.pro
@@ -1,5 +1,11 @@
TEMPLATE = subdirs
-SUBDIRS = app
+
+win32:isEmpty(ELFUTILS_INSTALL_DIR) {
+ warning("PerfParser is disabled. Set ELFUTILS_INSTALL_DIR to enable it.");
+} else {
+ SUBDIRS = app
+ !isEmpty(BUILD_TESTS): SUBDIRS += tests
+}
include (paths.pri)
@@ -11,8 +17,6 @@ defineReplace(elfutilsLibraryName) {
return($$RET)
}
-!isEmpty(BUILD_TESTS): SUBDIRS += tests
-
!isEmpty(PERFPARSER_ELFUTILS_INSTALLDIR) {
unix:isEmpty(ELFUTILS_INSTALL_DIR): ELFUTILS_INSTALL_DIR = /usr