1 # checksum 0x21c9 version 0x90005
2 # This file was generated by the Qt Quick 2 Application wizard of Qt Creator.
3 # The code below adds the QtQuick2ApplicationViewer to the project and handles
4 # the activation of QML debugging.
5 # It is recommended not to modify this file, since newer versions of Qt Creator
6 # may offer an updated version of it.
10 SOURCES += $$PWD/qtquick2applicationviewer.cpp
11 HEADERS += $$PWD/qtquick2applicationviewer.h
13 # This file was generated by an application wizard of Qt Creator.
14 # The code below handles deployment to Android and Maemo, aswell as copying
15 # of the application data to shadow build directories on desktop.
16 # It is recommended not to modify this file, since newer versions of Qt Creator
17 # may offer an updated version of it.
19 defineTest(qtcAddDeployment) {
20 for(deploymentfolder, DEPLOYMENTFOLDERS) {
21 item = item$${deploymentfolder}
22 greaterThan(QT_MAJOR_VERSION, 4) {
23 itemsources = $${item}.files
25 itemsources = $${item}.sources
27 $$itemsources = $$eval($${deploymentfolder}.source)
28 itempath = $${item}.path
29 $$itempath= $$eval($${deploymentfolder}.target)
35 MAINPROFILEPWD = $$PWD
38 for(deploymentfolder, DEPLOYMENTFOLDERS) {
39 item = item$${deploymentfolder}
40 itemfiles = $${item}.files
41 $$itemfiles = $$eval($${deploymentfolder}.source)
42 itempath = $${item}.path
43 $$itempath = /data/user/qt/$$eval($${deploymentfolder}.target)
49 target.path = /data/user/qt
54 for(deploymentfolder, DEPLOYMENTFOLDERS) {
55 item = item$${deploymentfolder}
56 itemfiles = $${item}.files
57 $$itemfiles = $$eval($${deploymentfolder}.source)
58 itempath = $${item}.path
59 $$itempath = /assets/$$eval($${deploymentfolder}.target)
66 target.path = /libs/x86
68 target.path = /libs/armeabi-v7a
70 target.path = /libs/armeabi
77 for(deploymentfolder, DEPLOYMENTFOLDERS) {
78 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
79 source = $$replace(source, /, \\)
80 sourcePathSegments = $$split(source, \\)
81 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
82 target = $$replace(target, /, \\)
83 target ~= s,\\\\\\.?\\\\,\\,
84 !isEqual(source,$$target) {
85 !isEmpty(copyCommand):copyCommand += &&
86 isEqual(QMAKE_DIR_SEP, \\) {
87 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
89 source = $$replace(source, \\\\, /)
90 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
91 target = $$replace(target, \\\\, /)
92 copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
96 !isEmpty(copyCommand) {
97 copyCommand = @echo Copying application data... && $$copyCommand
98 copydeploymentfolders.commands = $$copyCommand
99 first.depends = $(first) copydeploymentfolders
100 export(first.depends)
101 export(copydeploymentfolders.commands)
102 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
106 for(deploymentfolder, DEPLOYMENTFOLDERS) {
107 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
108 source = $$replace(source, \\\\, /)
109 target = $CODESIGNING_FOLDER_PATH/$$eval($${deploymentfolder}.target)
110 target = $$replace(target, \\\\, /)
111 sourcePathSegments = $$split(source, /)
112 targetFullPath = $$target/$$last(sourcePathSegments)
113 targetFullPath ~= s,/\\.?/,/,
114 !isEqual(source,$$targetFullPath) {
115 !isEmpty(copyCommand):copyCommand += &&
116 copyCommand += mkdir -p \"$$target\"
117 copyCommand += && cp -r \"$$source\" \"$$target\"
120 !isEmpty(copyCommand) {
121 copyCommand = echo Copying application data... && $$copyCommand
122 !isEmpty(QMAKE_POST_LINK): QMAKE_POST_LINK += ";"
123 QMAKE_POST_LINK += "$$copyCommand"
124 export(QMAKE_POST_LINK)
128 desktopfile.files = $${TARGET}.desktop
129 desktopfile.path = /usr/share/applications/hildon
130 icon.files = $${TARGET}64.png
131 icon.path = /usr/share/icons/hicolor/64x64/apps
132 } else:!isEmpty(MEEGO_VERSION_MAJOR) {
133 desktopfile.files = $${TARGET}_harmattan.desktop
134 desktopfile.path = /usr/share/applications
135 icon.files = $${TARGET}80.png
136 icon.path = /usr/share/icons/hicolor/80x80/apps
137 } else { # Assumed to be a Desktop Unix
139 for(deploymentfolder, DEPLOYMENTFOLDERS) {
140 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
141 source = $$replace(source, \\\\, /)
143 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
145 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
147 target = $$replace(target, \\\\, /)
148 sourcePathSegments = $$split(source, /)
149 targetFullPath = $$target/$$last(sourcePathSegments)
150 targetFullPath ~= s,/\\.?/,/,
151 !isEqual(source,$$targetFullPath) {
152 !isEmpty(copyCommand):copyCommand += &&
153 copyCommand += $(MKDIR) \"$$target\"
154 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
157 !isEmpty(copyCommand) {
158 copyCommand = @echo Copying application data... && $$copyCommand
159 copydeploymentfolders.commands = $$copyCommand
160 first.depends = $(first) copydeploymentfolders
161 export(first.depends)
162 export(copydeploymentfolders.commands)
163 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
166 !isEmpty(target.path) {
167 installPrefix = $${target.path}
169 installPrefix = /opt/$${TARGET}
171 for(deploymentfolder, DEPLOYMENTFOLDERS) {
172 item = item$${deploymentfolder}
173 itemfiles = $${item}.files
174 $$itemfiles = $$eval($${deploymentfolder}.source)
175 itempath = $${item}.path
176 $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
182 !isEmpty(desktopfile.path) {
185 export(desktopfile.files)
186 export(desktopfile.path)
187 INSTALLS += icon desktopfile
190 isEmpty(target.path) {
191 target.path = $${installPrefix}/bin
201 export (QMAKE_EXTRA_TARGETS)