1 # checksum 0x9ca8 version 0x60002
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.files = $${TARGET}.desktop
56 desktopfile.path = /usr/share/applications/hildon
57 icon.files = $${TARGET}64.png
58 icon.path = /usr/share/icons/hicolor/64x64/apps
59 } else:!isEmpty(MEEGO_VERSION_MAJOR) {
60 desktopfile.files = $${TARGET}_harmattan.desktop
61 desktopfile.path = /usr/share/applications
62 icon.files = $${TARGET}80.png
63 icon.path = /usr/share/icons/hicolor/80x80/apps
64 } else { # Assumed to be a Desktop Unix
66 for(deploymentfolder, DEPLOYMENTFOLDERS) {
67 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
68 source = $$replace(source, \\\\, /)
70 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
72 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
74 target = $$replace(target, \\\\, /)
75 sourcePathSegments = $$split(source, /)
76 targetFullPath = $$target/$$last(sourcePathSegments)
77 !isEqual(source,$$targetFullPath) {
78 !isEmpty(copyCommand):copyCommand += &&
79 copyCommand += $(MKDIR) \"$$target\"
80 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
83 !isEmpty(copyCommand) {
84 copyCommand = @echo Copying application data... && $$copyCommand
85 copydeploymentfolders.commands = $$copyCommand
86 first.depends = $(first) copydeploymentfolders
88 export(copydeploymentfolders.commands)
89 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
92 installPrefix = /opt/$${TARGET}
93 for(deploymentfolder, DEPLOYMENTFOLDERS) {
94 item = item$${deploymentfolder}
95 itemfiles = $${item}.files
96 $$itemfiles = $$eval($${deploymentfolder}.source)
97 itempath = $${item}.path
98 $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
104 !isEmpty(desktopfile.path) {
107 export(desktopfile.files)
108 export(desktopfile.path)
109 INSTALLS += icon desktopfile
112 target.path = $${installPrefix}/bin
120 export (TARGET.EPOCHEAPSIZE)
121 export (TARGET.CAPABILITY)
123 export (QMAKE_EXTRA_TARGETS)