Commit b90d508c authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Win: Added QMAKE_EXTRA_TARGETS for copying qml files to $$OUT_PWD

Instead of copying the files while executing qmake (system function),
there is now an extra make target that gets executed every time
make is called.

Slightly better, but still ugly. Still waiting for Ossi's wisdom.
parent 10475124
......@@ -30,11 +30,17 @@ symbian {
contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices
} else:win32 {
# Ossi will want to kill me when he reads this
# TODO: let Ossi create a (post link step) deployment for windows
!contains(CONFIG, build_pass):for(deploymentfolder, DEPLOYMENTFOLDERS) {
pathSegments = $$split(deploymentfolder, /)
sourceAndTarget = $$deploymentfolder $$OUT_PWD/qml/$$last(pathSegments)
system($$QMAKE_COPY_DIR $$replace(sourceAndTarget, /, \\))
# TODO: Let Ossi do some deployment-via-qmake magic
!isEqual(PWD,$$OUT_PWD):!contains(CONFIG, build_pass) {
copyCommand = @echo Copying Qml files...
for(deploymentfolder, DEPLOYMENTFOLDERS) {
pathSegments = $$split(deploymentfolder, /)
sourceAndTarget = $$PWD/$$deploymentfolder $$OUT_PWD/qml/$$last(pathSegments)
copyCommand += && $(COPY_DIR) $$replace(sourceAndTarget, /, \\)
}
copyqmlfiles.commands = $$copyCommand
first.depends = $(first) copyqmlfiles
QMAKE_EXTRA_TARGETS += first copyqmlfiles
}
} else {
# TODO: make this work
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment