diff options
Diffstat (limited to 'qmake-features')
-rw-r--r-- | qmake-features/am-qml-testcase.prf | 6 | ||||
-rw-r--r-- | qmake-features/generate-resource.prf | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/qmake-features/am-qml-testcase.prf b/qmake-features/am-qml-testcase.prf index b475deed..923920fe 100644 --- a/qmake-features/am-qml-testcase.prf +++ b/qmake-features/am-qml-testcase.prf @@ -55,7 +55,8 @@ OTHER_FILES += $$IMPORTS_DIR # Read a config file for(config, AM_CONFIG) { - COMMAND += -c $$absolute_path($$config, $$_PRO_FILE_PWD_) + isEmpty(TESTRUN_CWD): COMMAND += -c $$absolute_path($$config, $$_PRO_FILE_PWD_) + else: COMMAND += -c $$config } OTHER_FILES += $$AM_CONFIG @@ -82,8 +83,7 @@ OTHER_FILES += $$TEST_FILES # Copy assets to build folder for (d , DIRECTORIES) { - win32: do_copydata.commands += $(COPY_DIR) $$shell_path($$_PRO_FILE_PWD_/$${d}) $$shell_path($$OUT_PWD/$${d}) $$escape_expand(\n\t) - else: do_copydata.commands += $(COPY_DIR) $$shell_path($$_PRO_FILE_PWD_/$${d}) $$shell_path($$OUT_PWD) $$escape_expand(\n\t) + do_copydata.commands += $(COPY_DIR) $$shell_path($$_PRO_FILE_PWD_/$${d}) $$shell_path($$OUT_PWD/$${d}) $$escape_expand(\n\t) } for (f , FILES) { do_copydata.commands += $(COPY) $$shell_path($$_PRO_FILE_PWD_/$${f}) $$shell_path($$OUT_PWD/$${f}) $$escape_expand(\n\t) diff --git a/qmake-features/generate-resource.prf b/qmake-features/generate-resource.prf new file mode 100644 index 00000000..54c40cea --- /dev/null +++ b/qmake-features/generate-resource.prf @@ -0,0 +1,10 @@ +load(resources) + +generate_rcc.input = RESOURCE_SOURCE +generate_rcc.name = RCC Generator +generate_rcc.depend_command = $$QMAKE_RCC_DEP -list -binary ${QMAKE_FILE_IN} +generate_rcc.CONFIG += dep_lines target_predeps no_link +generate_rcc.output = ${QMAKE_FILE_BASE}.rcc +generate_rcc.commands = $$QMAKE_RCC -binary ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} + +QMAKE_EXTRA_COMPILERS += generate_rcc |