summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bruning <michael.bruning@theqtcompany.com>2015-11-30 14:46:37 +0100
committerMichael BrĂ¼ning <michael.bruning@theqtcompany.com>2015-11-30 17:28:09 +0000
commitbb06a56af8b1158af4834cfb042d33eb376557ae (patch)
treebb366a15203114876ad73504b38d4b37a73fda68
parent754edb8dadb9b3086f67eadabdde9659dfcb7caf (diff)
Fix ninja for shadow builds on windows.
xcopy seems to behave differently for than cp when copying directories recursively. Change-Id: I5130a0642511fb796d9b32e0d4cd2cd2b9153dc0 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-rw-r--r--tools/qmake/mkspecs/features/functions.prf8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/qmake/mkspecs/features/functions.prf b/tools/qmake/mkspecs/features/functions.prf
index cab79ff28..40532f709 100644
--- a/tools/qmake/mkspecs/features/functions.prf
+++ b/tools/qmake/mkspecs/features/functions.prf
@@ -167,8 +167,12 @@ defineReplace(findOrBuildNinja) {
log("Build directory is different from source directory - copying ninja sources to the build tree...")
shadow_3rd_party_path = $$system_path($$shadowed($$src_3rd_party_dir))
- !exists($$dirname(out)): mkpath($$shadow_3rd_party_path)
- system("$$QMAKE_COPY_DIR $$system_quote($$system_path($$absolute_path("ninja", "$$src_3rd_party_dir"))) $$system_quote($$shadow_3rd_party_path)")
+ !exists($$dirname(out)): mkpath($$dirname(out))
+ copy_dir_files {
+ system("$$QMAKE_COPY_DIR $$system_quote($$system_path($$absolute_path("ninja", "$$src_3rd_party_dir"))) $$system_quote($$dirname(out))")
+ } else {
+ system("$$QMAKE_COPY_DIR $$system_quote($$system_path($$absolute_path("ninja", "$$src_3rd_party_dir"))) $$system_quote($$shadow_3rd_party_path)")
+ }
}
system("cd $$system_quote($$dirname(out)) && python configure.py --bootstrap")
}