Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
1 # checksum 0x9ca8 version 0x60002
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)
15     export($$itemsources)
16     export($$itempath)
17     DEPLOYMENT += $$item
18 }
20 MAINPROFILEPWD = $$PWD
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             isEqual(QMAKE_DIR_SEP, \\) {
36                 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
37             } else {
38                 source = $$replace(source, \\\\, /)
39                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
40                 target = $$replace(target, \\\\, /)
41                 copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
42             }
43         }
44     }
45     !isEmpty(copyCommand) {
46         copyCommand = @echo Copying application data... && $$copyCommand
47         copydeploymentfolders.commands = $$copyCommand
48         first.depends = $(first) copydeploymentfolders
49         export(first.depends)
50         export(copydeploymentfolders.commands)
51         QMAKE_EXTRA_TARGETS += first copydeploymentfolders
52     }
53 } else:unix {
54     maemo5 {
55         desktopfile.files = $${TARGET}.desktop
56         desktopfile.path = /usr/share/applications/hildon
57         icon.files = $${TARGET}64.png
58         icon.path = /usr/share/icons/hicolor/64x64/apps
59     } else:!isEmpty(MEEGO_VERSION_MAJOR) {
60         desktopfile.files = $${TARGET}_harmattan.desktop
61         desktopfile.path = /usr/share/applications
62         icon.files = $${TARGET}80.png
63         icon.path = /usr/share/icons/hicolor/80x80/apps
64     } else { # Assumed to be a Desktop Unix
65         copyCommand =
66         for(deploymentfolder, DEPLOYMENTFOLDERS) {
67             source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
68             source = $$replace(source, \\\\, /)
69             macx {
70                 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
71             } else {
72                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
73             }
74             target = $$replace(target, \\\\, /)
75             sourcePathSegments = $$split(source, /)
76             targetFullPath = $$target/$$last(sourcePathSegments)
77             !isEqual(source,$$targetFullPath) {
78                 !isEmpty(copyCommand):copyCommand += &&
79                 copyCommand += $(MKDIR) \"$$target\"
80                 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
81             }
82         }
83         !isEmpty(copyCommand) {
84             copyCommand = @echo Copying application data... && $$copyCommand
85             copydeploymentfolders.commands = $$copyCommand
86             first.depends = $(first) copydeploymentfolders
87             export(first.depends)
88             export(copydeploymentfolders.commands)
89             QMAKE_EXTRA_TARGETS += first copydeploymentfolders
90         }
91     }
92     installPrefix = /opt/$${TARGET}
93     for(deploymentfolder, DEPLOYMENTFOLDERS) {
94         item = item$${deploymentfolder}
95         itemfiles = $${item}.files
96         $$itemfiles = $$eval($${deploymentfolder}.source)
97         itempath = $${item}.path
98         $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
99         export($$itemfiles)
100         export($$itempath)
101         INSTALLS += $$item
102     }
104     !isEmpty(desktopfile.path) {
105         export(icon.files)
106         export(icon.path)
107         export(desktopfile.files)
108         export(desktopfile.path)
109         INSTALLS += icon desktopfile
110     }
112     target.path = $${installPrefix}/bin
113     export(target.path)
114     INSTALLS += target
117 export (ICON)
118 export (INSTALLS)
119 export (DEPLOYMENT)
120 export (TARGET.EPOCHEAPSIZE)
121 export (TARGET.CAPABILITY)
122 export (LIBS)
123 export (QMAKE_EXTRA_TARGETS)

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment