1 # checksum 0x838c version 0x70002
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 target ~= s,\\\\\\.?\\\\,\\,
34 !isEqual(source,$$target) {
35 !isEmpty(copyCommand):copyCommand += &&
36 isEqual(QMAKE_DIR_SEP, \\) {
37 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
39 source = $$replace(source, \\\\, /)
40 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
41 target = $$replace(target, \\\\, /)
42 copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
46 !isEmpty(copyCommand) {
47 copyCommand = @echo Copying application data... && $$copyCommand
48 copydeploymentfolders.commands = $$copyCommand
49 first.depends = $(first) copydeploymentfolders
51 export(copydeploymentfolders.commands)
52 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
56 desktopfile.files = $${TARGET}.desktop
57 desktopfile.path = /usr/share/applications/hildon
58 icon.files = $${TARGET}64.png
59 icon.path = /usr/share/icons/hicolor/64x64/apps
60 } else:!isEmpty(MEEGO_VERSION_MAJOR) {
61 desktopfile.files = $${TARGET}_harmattan.desktop
62 desktopfile.path = /usr/share/applications
63 icon.files = $${TARGET}80.png
64 icon.path = /usr/share/icons/hicolor/80x80/apps
65 } else { # Assumed to be a Desktop Unix
67 for(deploymentfolder, DEPLOYMENTFOLDERS) {
68 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
69 source = $$replace(source, \\\\, /)
71 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
73 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
75 target = $$replace(target, \\\\, /)
76 sourcePathSegments = $$split(source, /)
77 targetFullPath = $$target/$$last(sourcePathSegments)
78 targetFullPath ~= s,/\\.?/,/,
79 !isEqual(source,$$targetFullPath) {
80 !isEmpty(copyCommand):copyCommand += &&
81 copyCommand += $(MKDIR) \"$$target\"
82 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
85 !isEmpty(copyCommand) {
86 copyCommand = @echo Copying application data... && $$copyCommand
87 copydeploymentfolders.commands = $$copyCommand
88 first.depends = $(first) copydeploymentfolders
90 export(copydeploymentfolders.commands)
91 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
94 installPrefix = /opt/$${TARGET}
95 for(deploymentfolder, DEPLOYMENTFOLDERS) {
96 item = item$${deploymentfolder}
97 itemfiles = $${item}.files
98 $$itemfiles = $$eval($${deploymentfolder}.source)
99 itempath = $${item}.path
100 $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
106 !isEmpty(desktopfile.path) {
109 export(desktopfile.files)
110 export(desktopfile.path)
111 INSTALLS += icon desktopfile
114 target.path = $${installPrefix}/bin
122 export (TARGET.EPOCHEAPSIZE)
123 export (TARGET.CAPABILITY)
125 export (QMAKE_EXTRA_TARGETS)