1 # checksum 0x9840 version 0x40002
2 # This file was generated by an application wizard of Qt Creator.
3 # The code below handles deployment to Symbian and Maemo, aswell as copying
4 # of the application data to shadow build directories on desktop.
5 # It is recommended not to modify this file, since newer versions of Qt Creator
6 # may offer an updated version of it.
8 defineTest(qtcAddDeployment) {
9 for(deploymentfolder, DEPLOYMENTFOLDERS) {
10 item = item$${deploymentfolder}
11 itemsources = $${item}.sources
12 $$itemsources = $$eval($${deploymentfolder}.source)
13 itempath = $${item}.path
14 $$itempath= $$eval($${deploymentfolder}.target)
20 MAINPROFILEPWD = $$PWD
23 isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
24 isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
27 for(deploymentfolder, DEPLOYMENTFOLDERS) {
28 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
29 source = $$replace(source, /, \\)
30 sourcePathSegments = $$split(source, \\)
31 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
32 target = $$replace(target, /, \\)
33 !isEqual(source,$$target) {
34 !isEmpty(copyCommand):copyCommand += &&
35 isEqual(QMAKE_DIR_SEP, \\) {
36 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
38 source = $$replace(source, \\\\, /)
39 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
40 target = $$replace(target, \\\\, /)
41 copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
45 !isEmpty(copyCommand) {
46 copyCommand = @echo Copying application data... && $$copyCommand
47 copydeploymentfolders.commands = $$copyCommand
48 first.depends = $(first) copydeploymentfolders
50 export(copydeploymentfolders.commands)
51 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
55 desktopfile.path = /usr/share/applications/hildon
57 desktopfile.path = /usr/share/applications
59 for(deploymentfolder, DEPLOYMENTFOLDERS) {
60 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
61 source = $$replace(source, \\\\, /)
63 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
65 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
67 target = $$replace(target, \\\\, /)
68 sourcePathSegments = $$split(source, /)
69 targetFullPath = $$target/$$last(sourcePathSegments)
70 !isEqual(source,$$targetFullPath) {
71 !isEmpty(copyCommand):copyCommand += &&
72 copyCommand += $(MKDIR) \"$$target\"
73 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
76 !isEmpty(copyCommand) {
77 copyCommand = @echo Copying application data... && $$copyCommand
78 copydeploymentfolders.commands = $$copyCommand
79 first.depends = $(first) copydeploymentfolders
81 export(copydeploymentfolders.commands)
82 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
86 for(deploymentfolder, DEPLOYMENTFOLDERS) {
87 item = item$${deploymentfolder}
88 itemfiles = $${item}.files
89 $$itemfiles = $$eval($${deploymentfolder}.source)
90 itempath = $${item}.path
91 $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
96 icon.files = $${TARGET}.png
97 icon.path = /usr/share/icons/hicolor/64x64/apps
98 desktopfile.files = $${TARGET}.desktop
99 desktopfile.path = /usr/share/applications/hildon
100 target.path = $${installPrefix}/bin
103 export(desktopfile.files)
104 export(desktopfile.path)
106 INSTALLS += desktopfile icon target
112 export (TARGET.EPOCHEAPSIZE)
113 export (TARGET.CAPABILITY)
115 export (QMAKE_EXTRA_TARGETS)