10402
|
1 |
# checksum 0x7b0d 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.
|
|
7 |
|
|
8 |
QT += qml quick
|
|
9 |
|
|
10 |
SOURCES += $$PWD/qtquick2applicationviewer.cpp
|
|
11 |
HEADERS += $$PWD/qtquick2applicationviewer.h
|
|
12 |
INCLUDEPATH += $$PWD
|
|
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.
|
|
18 |
|
|
19 |
defineTest(qtcAddDeployment) {
|
|
20 |
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
21 |
item = item$${deploymentfolder}
|
|
22 |
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
23 |
itemsources = $${item}.files
|
|
24 |
} else {
|
|
25 |
itemsources = $${item}.sources
|
|
26 |
}
|
|
27 |
$$itemsources = $$eval($${deploymentfolder}.source)
|
|
28 |
itempath = $${item}.path
|
|
29 |
$$itempath= $$eval($${deploymentfolder}.target)
|
|
30 |
export($$itemsources)
|
|
31 |
export($$itempath)
|
|
32 |
DEPLOYMENT += $$item
|
|
33 |
}
|
|
34 |
|
|
35 |
MAINPROFILEPWD = $$PWD
|
|
36 |
|
|
37 |
android-no-sdk {
|
|
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)
|
|
44 |
export($$itemfiles)
|
|
45 |
export($$itempath)
|
|
46 |
INSTALLS += $$item
|
|
47 |
}
|
|
48 |
|
|
49 |
target.path = /data/user/qt
|
|
50 |
|
|
51 |
export(target.path)
|
|
52 |
INSTALLS += target
|
|
53 |
} else:android {
|
|
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)
|
|
60 |
export($$itemfiles)
|
|
61 |
export($$itempath)
|
|
62 |
INSTALLS += $$item
|
|
63 |
}
|
|
64 |
|
|
65 |
x86 {
|
|
66 |
target.path = /libs/x86
|
|
67 |
} else: armeabi-v7a {
|
|
68 |
target.path = /libs/armeabi-v7a
|
|
69 |
} else {
|
|
70 |
target.path = /libs/armeabi
|
|
71 |
}
|
|
72 |
|
|
73 |
export(target.path)
|
|
74 |
INSTALLS += target
|
|
75 |
} else:win32 {
|
|
76 |
copyCommand =
|
|
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\"
|
|
88 |
} else {
|
|
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\"
|
|
93 |
}
|
|
94 |
}
|
|
95 |
}
|
|
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
|
|
103 |
}
|
|
104 |
} else:unix {
|
|
105 |
maemo5 {
|
|
106 |
desktopfile.files = $${TARGET}.desktop
|
|
107 |
desktopfile.path = /usr/share/applications/hildon
|
|
108 |
icon.files = $${TARGET}64.png
|
|
109 |
icon.path = /usr/share/icons/hicolor/64x64/apps
|
|
110 |
} else:!isEmpty(MEEGO_VERSION_MAJOR) {
|
|
111 |
desktopfile.files = $${TARGET}_harmattan.desktop
|
|
112 |
desktopfile.path = /usr/share/applications
|
|
113 |
icon.files = $${TARGET}80.png
|
|
114 |
icon.path = /usr/share/icons/hicolor/80x80/apps
|
|
115 |
} else { # Assumed to be a Desktop Unix
|
|
116 |
copyCommand =
|
|
117 |
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
118 |
source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
|
|
119 |
source = $$replace(source, \\\\, /)
|
|
120 |
macx {
|
|
121 |
target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
|
|
122 |
} else {
|
|
123 |
target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
|
|
124 |
}
|
|
125 |
target = $$replace(target, \\\\, /)
|
|
126 |
sourcePathSegments = $$split(source, /)
|
|
127 |
targetFullPath = $$target/$$last(sourcePathSegments)
|
|
128 |
targetFullPath ~= s,/\\.?/,/,
|
|
129 |
!isEqual(source,$$targetFullPath) {
|
|
130 |
!isEmpty(copyCommand):copyCommand += &&
|
|
131 |
copyCommand += $(MKDIR) \"$$target\"
|
|
132 |
copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
|
|
133 |
}
|
|
134 |
}
|
|
135 |
!isEmpty(copyCommand) {
|
|
136 |
copyCommand = @echo Copying application data... && $$copyCommand
|
|
137 |
copydeploymentfolders.commands = $$copyCommand
|
|
138 |
first.depends = $(first) copydeploymentfolders
|
|
139 |
export(first.depends)
|
|
140 |
export(copydeploymentfolders.commands)
|
|
141 |
QMAKE_EXTRA_TARGETS += first copydeploymentfolders
|
|
142 |
}
|
|
143 |
}
|
|
144 |
!isEmpty(target.path) {
|
|
145 |
installPrefix = $${target.path}
|
|
146 |
} else {
|
|
147 |
installPrefix = /opt/$${TARGET}
|
|
148 |
}
|
|
149 |
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
150 |
item = item$${deploymentfolder}
|
|
151 |
itemfiles = $${item}.files
|
|
152 |
$$itemfiles = $$eval($${deploymentfolder}.source)
|
|
153 |
itempath = $${item}.path
|
|
154 |
$$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
|
|
155 |
export($$itemfiles)
|
|
156 |
export($$itempath)
|
|
157 |
INSTALLS += $$item
|
|
158 |
}
|
|
159 |
|
|
160 |
!isEmpty(desktopfile.path) {
|
|
161 |
export(icon.files)
|
|
162 |
export(icon.path)
|
|
163 |
export(desktopfile.files)
|
|
164 |
export(desktopfile.path)
|
|
165 |
INSTALLS += icon desktopfile
|
|
166 |
}
|
|
167 |
|
|
168 |
isEmpty(target.path) {
|
|
169 |
target.path = $${installPrefix}/bin
|
|
170 |
export(target.path)
|
|
171 |
}
|
|
172 |
INSTALLS += target
|
|
173 |
}
|
|
174 |
|
|
175 |
export (ICON)
|
|
176 |
export (INSTALLS)
|
|
177 |
export (DEPLOYMENT)
|
|
178 |
export (LIBS)
|
|
179 |
export (QMAKE_EXTRA_TARGETS)
|
|
180 |
}
|