summaryrefslogtreecommitdiff
path: root/shared/shared.pro
diff options
context:
space:
mode:
Diffstat (limited to 'shared/shared.pro')
-rw-r--r--shared/shared.pro17
1 files changed, 12 insertions, 5 deletions
diff --git a/shared/shared.pro b/shared/shared.pro
index e74d4d09ac..541044da11 100644
--- a/shared/shared.pro
+++ b/shared/shared.pro
@@ -1,10 +1,17 @@
+isEmpty(IDE_SOURCE_TREE): IDE_SOURCE_TREE = $$(QTC_SOURCE)
+isEmpty(IDE_BUILD_TREE): IDE_BUILD_TREE = $$(QTC_BUILD)
+isEmpty(IDE_SOURCE_TREE): error("Set QTC_SOURCE environment variable")
+isEmpty(IDE_BUILD_TREE): error("Set QTC_BUILD environment variable")
+
TEMPLATE = aux
-content.files = \
- autotest
+STATIC_BASE = $$PWD
+STATIC_DIRS = templates
-content.path = $$QTC_PREFIX/share/qtcreator/templates/wizards
+for(data_dir, STATIC_DIRS) {
+ files = $$files($$STATIC_BASE/$$data_dir/*, true)
+ for(file, files): !exists($$file/*): STATIC_FILES += $$file
+}
-OTHER_FILES += $${content.files}
+include($$IDE_SOURCE_TREE/share/qtcreator/static.pri)
-INSTALLS += content