Version bump (0.3-3)
[gpsdata] / deployment.pri
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.
7
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)
15     export($$itemsources)
16     export($$itempath)
17     DEPLOYMENT += $$item
18 }
19
20 MAINPROFILEPWD = $$PWD
21
22 symbian {
23     ICON = $${TARGET}.svg
24     TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
25     contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -lcone
26     contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices
27 } else:win32 {
28     copyCommand =
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\"
38         }
39     }
40     !isEmpty(copyCommand) {
41         copyCommand = @echo Copying application data... && $$copyCommand
42         copydeploymentfolders.commands = $$copyCommand
43         first.depends = $(first) copydeploymentfolders
44         export(first.depends)
45         export(copydeploymentfolders.commands)
46         QMAKE_EXTRA_TARGETS += first copydeploymentfolders
47     }
48 } else:unix {
49     maemo5 {
50         installPrefix = /opt/usr
51         desktopfile.path = /usr/share/applications/hildon
52     } else {
53         installPrefix = /usr/local
54         desktopfile.path = /usr/share/applications
55         copyCommand =
56         for(deploymentfolder, DEPLOYMENTFOLDERS) {
57             source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
58             source = $$replace(source, \\, /)
59             macx {
60                 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
61             } else {
62                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
63             }
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\"
71             }
72         }
73         !isEmpty(copyCommand) {
74             copyCommand = @echo Copying application data... && $$copyCommand
75             copydeploymentfolders.commands = $$copyCommand
76             first.depends = $(first) copydeploymentfolders
77             export(first.depends)
78             export(copydeploymentfolders.commands)
79             QMAKE_EXTRA_TARGETS += first copydeploymentfolders
80         }
81     }
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)
88         export($$itemfiles)
89         export($$itempath)
90         INSTALLS += $$item
91     }
92     icon.files = $${TARGET}.png
93     icon.path = /usr/share/icons/hicolor/64x64/apps
94     desktopfile.files = $${TARGET}.desktop
95     target.path = $${installPrefix}/bin
96     export(icon.files)
97     export(icon.path)
98     export(desktopfile.files)
99     export(desktopfile.path)
100     export(target.path)
101     INSTALLS += desktopfile icon target
102 }
103
104 export (ICON)
105 export (INSTALLS)
106 export (DEPLOYMENT)
107 export (TARGET.EPOCHEAPSIZE)
108 export (TARGET.CAPABILITY)
109 export (LIBS)
110 export (QMAKE_EXTRA_TARGETS)
111 }