Try speed up compilation. Copy only when the SOURCE file is newer than the
destination file or when the destination file is missing. --HG-- branch : develop
This commit is contained in:
parent
ae43c66bd9
commit
d9c5439443
20
common.pri
20
common.pri
|
@ -13,6 +13,18 @@ win32{
|
|||
QMAKE_INSTALL_PROGRAM = xcopy /y
|
||||
}
|
||||
|
||||
unix{
|
||||
macx{
|
||||
VCOPY = $$QMAKE_COPY
|
||||
} else {
|
||||
VCOPY = $$QMAKE_COPY -u
|
||||
}
|
||||
}
|
||||
|
||||
win32{
|
||||
VCOPY = $$QMAKE_COPY /D
|
||||
}
|
||||
|
||||
macx{
|
||||
# QTBUG-31034 qmake doesn't allow override QMAKE_CXX
|
||||
CONFIG+=no_ccache
|
||||
|
@ -64,8 +76,8 @@ defineTest(copyToDestdir) {
|
|||
FILE ~= s,/,\\,g
|
||||
DDIR ~= s,/,\\,g
|
||||
}
|
||||
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
|
||||
message("Command:" $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR))
|
||||
QMAKE_POST_LINK += $$VCOPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
|
||||
message("Command:" $$VCOPY $$quote($$FILE) $$quote($$DDIR))
|
||||
} else {
|
||||
message("File:" $$DDIR/$$basename(FILE) "already exist")
|
||||
}
|
||||
|
@ -93,8 +105,8 @@ defineTest(forceCopyToDestdir) {
|
|||
FILE ~= s,/,\\,g
|
||||
DDIR ~= s,/,\\,g
|
||||
}
|
||||
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
|
||||
message("Command:" $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR))
|
||||
QMAKE_POST_LINK += $$VCOPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
|
||||
message("Command:" $$VCOPY $$quote($$FILE) $$quote($$DDIR))
|
||||
QMAKE_CLEAN += $$DDIR/$$basename(FILE)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user