Initial version
[gpssportsniffer] / deployment.pri
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.
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     isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
24     isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
25 } else:win32 {
26     copyCommand =
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\"
36         }
37     }
38     !isEmpty(copyCommand) {
39         copyCommand = @echo Copying application data... && $$copyCommand
40         copydeploymentfolders.commands = $$copyCommand
41         first.depends = $(first) copydeploymentfolders
42         export(first.depends)
43         export(copydeploymentfolders.commands)
44         QMAKE_EXTRA_TARGETS += first copydeploymentfolders
45     }
46 } else:unix {
47     maemo5 {
48         desktopfile.path = /usr/share/applications/hildon
49     } else {
50         desktopfile.path = /usr/share/applications
51         copyCommand =
52         for(deploymentfolder, DEPLOYMENTFOLDERS) {
53             source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
54             source = $$replace(source, \\, /)
55             macx {
56                 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
57             } else {
58                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
59             }
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\"
67             }
68         }
69         !isEmpty(copyCommand) {
70             copyCommand = @echo Copying application data... && $$copyCommand
71             copydeploymentfolders.commands = $$copyCommand
72             first.depends = $(first) copydeploymentfolders
73             export(first.depends)
74             export(copydeploymentfolders.commands)
75             QMAKE_EXTRA_TARGETS += first copydeploymentfolders
76         }
77     }
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)
85         export($$itemfiles)
86         export($$itempath)
87         INSTALLS += $$item
88     }
89     icon.files = $${TARGET}.png
90     icon.path = /usr/share/icons/hicolor/64x64/apps
91     desktopfile.files = $${TARGET}.desktop
92     target.path = $${installPrefix}/bin
93     export(icon.files)
94     export(icon.path)
95     export(desktopfile.files)
96     export(desktopfile.path)
97     export(target.path)
98     INSTALLS += desktopfile icon target
99 }
100
101 export (ICON)
102 export (INSTALLS)
103 export (DEPLOYMENT)
104 export (TARGET.EPOCHEAPSIZE)
105 export (TARGET.CAPABILITY)
106 export (LIBS)
107 export (QMAKE_EXTRA_TARGETS)
108 }