diff --git a/shared/shared.pro b/shared/shared.pro index e74d4d09acd..05c3c34dbf6 100644 --- a/shared/shared.pro +++ b/shared/shared.pro @@ -1,10 +1,12 @@ 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(../../qtcreator/share/qtcreator/static.pri) -INSTALLS += content diff --git a/shared/autotest/auto.pro b/shared/templates/wizards/autotest/auto.pro similarity index 100% rename from shared/autotest/auto.pro rename to shared/templates/wizards/autotest/auto.pro diff --git a/shared/autotest/autotest_24.png b/shared/templates/wizards/autotest/autotest_24.png similarity index 100% rename from shared/autotest/autotest_24.png rename to shared/templates/wizards/autotest/autotest_24.png diff --git a/shared/autotest/main.cpp b/shared/templates/wizards/autotest/main.cpp similarity index 100% rename from shared/autotest/main.cpp rename to shared/templates/wizards/autotest/main.cpp diff --git a/shared/autotest/src.pro b/shared/templates/wizards/autotest/src.pro similarity index 100% rename from shared/autotest/src.pro rename to shared/templates/wizards/autotest/src.pro diff --git a/shared/autotest/tests.pro b/shared/templates/wizards/autotest/tests.pro similarity index 100% rename from shared/autotest/tests.pro rename to shared/templates/wizards/autotest/tests.pro diff --git a/shared/autotest/tmp.pro b/shared/templates/wizards/autotest/tmp.pro similarity index 100% rename from shared/autotest/tmp.pro rename to shared/templates/wizards/autotest/tmp.pro diff --git a/shared/autotest/tst.pro b/shared/templates/wizards/autotest/tst.pro similarity index 100% rename from shared/autotest/tst.pro rename to shared/templates/wizards/autotest/tst.pro diff --git a/shared/autotest/tst_src.cpp b/shared/templates/wizards/autotest/tst_src.cpp similarity index 100% rename from shared/autotest/tst_src.cpp rename to shared/templates/wizards/autotest/tst_src.cpp diff --git a/shared/autotest/wizard.xml b/shared/templates/wizards/autotest/wizard.xml similarity index 100% rename from shared/autotest/wizard.xml rename to shared/templates/wizards/autotest/wizard.xml