Delete some debug symbols
[mverbiste] / deployment.pri
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.
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         target ~= s,\\\\\\.?\\\\,\\,
34         !isEqual(source,$$target) {
35             !isEmpty(copyCommand):copyCommand += &&
36             isEqual(QMAKE_DIR_SEP, \\) {
37                 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
38             } else {
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\"
43             }
44         }
45     }
46     !isEmpty(copyCommand) {
47         copyCommand = @echo Copying application data... && $$copyCommand
48         copydeploymentfolders.commands = $$copyCommand
49         first.depends = $(first) copydeploymentfolders
50         export(first.depends)
51         export(copydeploymentfolders.commands)
52         QMAKE_EXTRA_TARGETS += first copydeploymentfolders
53     }
54 } else:unix {
55     maemo5 {
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
66         copyCommand =
67         for(deploymentfolder, DEPLOYMENTFOLDERS) {
68             source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
69             source = $$replace(source, \\\\, /)
70             macx {
71                 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
72             } else {
73                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
74             }
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\"
83             }
84         }
85         !isEmpty(copyCommand) {
86             copyCommand = @echo Copying application data... && $$copyCommand
87             copydeploymentfolders.commands = $$copyCommand
88             first.depends = $(first) copydeploymentfolders
89             export(first.depends)
90             export(copydeploymentfolders.commands)
91             QMAKE_EXTRA_TARGETS += first copydeploymentfolders
92         }
93     }
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)
101         export($$itemfiles)
102         export($$itempath)
103         INSTALLS += $$item
104     }
105
106     !isEmpty(desktopfile.path) {
107         export(icon.files)
108         export(icon.path)
109         export(desktopfile.files)
110         export(desktopfile.path)
111         INSTALLS += icon desktopfile
112     }
113
114     target.path = $${installPrefix}/bin
115     export(target.path)
116     INSTALLS += target
117 }
118
119 export (ICON)
120 export (INSTALLS)
121 export (DEPLOYMENT)
122 export (TARGET.EPOCHEAPSIZE)
123 export (TARGET.CAPABILITY)
124 export (LIBS)
125 export (QMAKE_EXTRA_TARGETS)
126 export (installPrefix)
127 }