1 # checksum 0x5601 version 0x30002
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 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
38 !isEmpty(copyCommand) {
39 copyCommand = @echo Copying application data... && $$copyCommand
40 copydeploymentfolders.commands = $$copyCommand
41 first.depends = $(first) copydeploymentfolders
43 export(copydeploymentfolders.commands)
44 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
48 desktopfile.path = /usr/share/applications/hildon
50 desktopfile.path = /usr/share/applications
52 for(deploymentfolder, DEPLOYMENTFOLDERS) {
53 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
54 source = $$replace(source, \\, /)
56 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
58 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
60 target = $$replace(target, \\, /)
61 sourcePathSegments = $$split(source, /)
62 targetFullPath = $$target/$$last(sourcePathSegments)
63 !isEqual(source,$$targetFullPath) {
64 !isEmpty(copyCommand):copyCommand += &&
65 copyCommand += $(MKDIR) \"$$target\"
66 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
69 !isEmpty(copyCommand) {
70 copyCommand = @echo Copying application data... && $$copyCommand
71 copydeploymentfolders.commands = $$copyCommand
72 first.depends = $(first) copydeploymentfolders
74 export(copydeploymentfolders.commands)
75 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
78 installPrefix = /opt/$${TARGET}
79 for(deploymentfolder, DEPLOYMENTFOLDERS) {
80 item = item$${deploymentfolder}
81 itemfiles = $${item}.files
82 $$itemfiles = $$eval($${deploymentfolder}.source)
83 itempath = $${item}.path
84 $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
89 icon.files = $${TARGET}.png
90 icon.path = /usr/share/icons/hicolor/64x64/apps
91 desktopfile.files = $${TARGET}.desktop
92 target.path = $${installPrefix}/bin
95 export(desktopfile.files)
96 export(desktopfile.path)
98 INSTALLS += desktopfile icon target
104 export (TARGET.EPOCHEAPSIZE)
105 export (TARGET.CAPABILITY)
107 export (QMAKE_EXTRA_TARGETS)