1 # checksum 0x2939 version 0x20001
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
24 TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
25 contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -lcone
26 contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices
29 for(deploymentfolder, DEPLOYMENTFOLDERS) {
30 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
31 source = $$replace(source, /, \\)
32 sourcePathSegments = $$split(source, \\)
33 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
34 target = $$replace(target, /, \\)
35 !isEqual(source,$$target) {
36 !isEmpty(copyCommand):copyCommand += &&
37 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
40 !isEmpty(copyCommand) {
41 copyCommand = @echo Copying application data... && $$copyCommand
42 copydeploymentfolders.commands = $$copyCommand
43 first.depends = $(first) copydeploymentfolders
45 export(copydeploymentfolders.commands)
46 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
50 installPrefix = /opt/usr
51 desktopfile.path = /usr/share/applications/hildon
53 installPrefix = /usr/local
54 desktopfile.path = /usr/share/applications
56 for(deploymentfolder, DEPLOYMENTFOLDERS) {
57 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
58 source = $$replace(source, \\, /)
60 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
62 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
64 target = $$replace(target, \\, /)
65 sourcePathSegments = $$split(source, /)
66 targetFullPath = $$target/$$last(sourcePathSegments)
67 !isEqual(source,$$targetFullPath) {
68 !isEmpty(copyCommand):copyCommand += &&
69 copyCommand += $(MKDIR) \"$$target\"
70 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
73 !isEmpty(copyCommand) {
74 copyCommand = @echo Copying application data... && $$copyCommand
75 copydeploymentfolders.commands = $$copyCommand
76 first.depends = $(first) copydeploymentfolders
78 export(copydeploymentfolders.commands)
79 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
82 for(deploymentfolder, DEPLOYMENTFOLDERS) {
83 item = item$${deploymentfolder}
84 itemfiles = $${item}.files
85 $$itemfiles = $$eval($${deploymentfolder}.source)
86 itempath = $${item}.path
87 $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target)
92 icon.files = $${TARGET}.png
93 icon.path = /usr/share/icons/hicolor/64x64/apps
94 desktopfile.files = $${TARGET}.desktop
95 target.path = $${installPrefix}/bin
98 export(desktopfile.files)
99 export(desktopfile.path)
101 INSTALLS += desktopfile icon target
107 export (TARGET.EPOCHEAPSIZE)
108 export (TARGET.CAPABILITY)
110 export (QMAKE_EXTRA_TARGETS)