New way to speed up building time.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-06-23 12:25:30 +03:00
parent 8d0b2c0af9
commit ffa86a708a

View File

@ -83,7 +83,7 @@ defineTest(copyToDestdir) {
for(FILE, files) { for(FILE, files) {
unix{ unix{
QMAKE_POST_LINK += ln -s -f $$quote($$FILE) $$quote($$DDIR/$$basename(FILE)) $$escape_expand(\\n\\t) QMAKE_PRE_LINK += ln -s -f $$quote($$FILE) $$quote($$DDIR/$$basename(FILE)) & $$escape_expand(\\n\\t)
} else { } else {
!exists($$DDIR/$$basename(FILE)) { !exists($$DDIR/$$basename(FILE)) {
# Replace slashes in paths with backslashes for Windows # Replace slashes in paths with backslashes for Windows
@ -91,7 +91,7 @@ defineTest(copyToDestdir) {
FILE ~= s,/,\\,g FILE ~= s,/,\\,g
DDIR ~= s,/,\\,g DDIR ~= s,/,\\,g
} }
QMAKE_POST_LINK += $$VCOPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t) QMAKE_PRE_LINK += $$VCOPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
} }
QMAKE_CLEAN += $$DDIR/$$basename(FILE) QMAKE_CLEAN += $$DDIR/$$basename(FILE)
@ -110,14 +110,14 @@ defineTest(forceCopyToDestdir) {
for(FILE, files) { for(FILE, files) {
unix{ unix{
QMAKE_POST_LINK += ln -s -f $$quote($$FILE) $$quote($$DDIR/$$basename(FILE)) $$escape_expand(\\n\\t) QMAKE_PRE_LINK += ln -s -f $$quote($$FILE) $$quote($$DDIR/$$basename(FILE)) & $$escape_expand(\\n\\t)
} else { } else {
# Replace slashes in paths with backslashes for Windows # Replace slashes in paths with backslashes for Windows
win32{ win32{
FILE ~= s,/,\\,g FILE ~= s,/,\\,g
DDIR ~= s,/,\\,g DDIR ~= s,/,\\,g
} }
QMAKE_POST_LINK += $$VCOPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t) QMAKE_PRE_LINK += $$VCOPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
QMAKE_CLEAN += $$DDIR/$$basename(FILE) QMAKE_CLEAN += $$DDIR/$$basename(FILE)
} }
} }