aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2018-04-27 15:34:29 +0200
committerBramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>2018-04-30 07:24:40 +0000
commitf22e68463231e8338740433f2772e3e783517240 (patch)
tree388cd41066ae5f89a0216e0a39478700fe2b3d4b
parent1db64a198eb0ac4d840a7ab0efb835cff0efaad8 (diff)
Only call copydata once when using the debug_and_release config
Task-number: AUTOSUITE-291 Change-Id: Ia1e8a58e645c2b7792f91b7309417cb35a45221a Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
-rw-r--r--copydata.pro27
1 files changed, 15 insertions, 12 deletions
diff --git a/copydata.pro b/copydata.pro
index 8a6b6d9c..237417c7 100644
--- a/copydata.pro
+++ b/copydata.pro
@@ -1,16 +1,19 @@
TEMPLATE = aux
-# Copy all QML files during the build time
-DIRECTORIES = apps dev/apps imports sysui styles
-FILES = am-config.yaml Main.qml server.conf
+# On a debug_and_release configuration, do the copying in the meta Makefile, not in the respective debug and release Makefiles
+if(!debug_and_release | !build_pass) {
+ # Copy all QML files during the build time
+ DIRECTORIES = apps dev/apps imports sysui styles
+ FILES = am-config.yaml Main.qml server.conf
-for (d , DIRECTORIES) {
- win32: do_copydata.commands += $(COPY_DIR) $$shell_path($$PWD/$${d}) $$shell_path($$OUT_PWD/$${d}) $$escape_expand(\n\t)
- else: do_copydata.commands += $(COPY_DIR) $$shell_path($$PWD/$${d}) $$shell_path($$OUT_PWD) $$escape_expand(\n\t)
-}
-for (f , FILES) {
- do_copydata.commands += $(COPY) $$shell_path($$PWD/$${f}) $$shell_path($$OUT_PWD/$${f}) $$escape_expand(\n\t)
-}
+ for (d , DIRECTORIES) {
+ win32: do_copydata.commands += $(COPY_DIR) $$shell_path($$PWD/$${d}) $$shell_path($$OUT_PWD/$${d}) $$escape_expand(\n\t)
+ else: do_copydata.commands += $(COPY_DIR) $$shell_path($$PWD/$${d}) $$shell_path($$OUT_PWD) $$escape_expand(\n\t)
+ }
+ for (f , FILES) {
+ do_copydata.commands += $(COPY) $$shell_path($$PWD/$${f}) $$shell_path($$OUT_PWD/$${f}) $$escape_expand(\n\t)
+ }
-first.depends = do_copydata
-!equals(PWD, $$OUT_PWD):QMAKE_EXTRA_TARGETS += first do_copydata
+ first.depends = do_copydata
+ !equals(PWD, $$OUT_PWD):QMAKE_EXTRA_TARGETS += first do_copydata
+}