-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathc2gQtCon_x.pro
More file actions
218 lines (193 loc) · 6.38 KB
/
c2gQtCon_x.pro
File metadata and controls
218 lines (193 loc) · 6.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# ekke (Ekkehard Gentz) @ekkescorner
TEMPLATE = app
TARGET = c2gQtCon_x
QT += qml quick core network
CONFIG += c++11
# QT_NO_DEPRECATED_WARNINGS will show no deprecated warnings
# comment out and build-clean-project to see them all
# should be done from time to time
# while preparing src for Qt6
DEFINES += QT_NO_DEPRECATED_WARNINGS
HEADERS += \
cpp/applicationui.hpp \
cpp/uiconstants.hpp \
cpp/gen/SettingsData.hpp \
cpp/gen/Bookmark.hpp \
cpp/gen/Building.hpp \
cpp/gen/Conference.hpp \
cpp/gen/DataManager.hpp \
cpp/gen/Day.hpp \
cpp/gen/Favorite.hpp \
cpp/gen/Floor.hpp \
cpp/gen/PersonsAPI.hpp \
cpp/gen/Room.hpp \
cpp/gen/ScheduleItem.hpp \
cpp/gen/Session.hpp \
cpp/gen/SessionAPI.hpp \
cpp/gen/SessionTrack.hpp \
cpp/gen/Speaker.hpp \
cpp/gen/SpeakerAPI.hpp \
cpp/gen/SpeakerImage.hpp \
cpp/datautil.hpp \
cpp/imageloader.hpp \
cpp/gen/SessionLink.hpp \
cpp/gen/SessionLinkAPI.hpp \
cpp/gen/SessionLists.hpp \
cpp/dataserver.hpp
SOURCES += cpp/main.cpp \
cpp/applicationui.cpp \
cpp/gen/SettingsData.cpp \
cpp/gen/Bookmark.cpp \
cpp/gen/Building.cpp \
cpp/gen/Conference.cpp \
cpp/gen/DataManager.cpp \
cpp/gen/Day.cpp \
cpp/gen/Favorite.cpp \
cpp/gen/Floor.cpp \
cpp/gen/PersonsAPI.cpp \
cpp/gen/Room.cpp \
cpp/gen/ScheduleItem.cpp \
cpp/gen/Session.cpp \
cpp/gen/SessionAPI.cpp \
cpp/gen/SessionTrack.cpp \
cpp/gen/Speaker.cpp \
cpp/gen/SpeakerAPI.cpp \
cpp/gen/SpeakerImage.cpp \
cpp/datautil.cpp \
cpp/imageloader.cpp \
cpp/gen/SessionLink.cpp \
cpp/gen/SessionLinkAPI.cpp \
cpp/gen/SessionLists.cpp \
cpp/dataserver.cpp
OTHER_FILES += qml/main.qml \
qml/common/*.qml \
qml/navigation/*.qml \
qml/pages/*.qml \
qml/popups/*.qml \
qml/tabs/*.qml
OTHER_FILES += images/black/*.png \
images/black/x18/*.png \
images/black/x36/*.png \
images/black/x48/*.png \
images/white/*.png \
images/white/x18/*.png \
images/white/x36/*.png \
images/white/x48/*.png \
images/extra/*.png \
translations/*.* \
data-assets/*.json \
data-assets/prod/*.json \
data-assets/test/*.json \
data-assets/conference/*.json \
data-assets/conference/speakerImages/*.* \
data-assets/conference/floorplan/*.png \
images/LICENSE \
LICENSE \
*.md
RESOURCES += qml.qrc \
translations.qrc \
images.qrc \
data-assets.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)
# T R A N S L A T I O N S
# if languages are added:
# 1. rebuild project to generate *.qm
# 2. add existing .qm files to translations.qrc
# if changes to translatable strings:
# 1. Run Tools-External-Linguist-Update
# 2. Run Linguist and do translations
# 3. Build and run on iOS and Android to verify translations
# 4. Optional: if translations not done: Run Tools-External-Linguist-Release
# Supported languages
LANGUAGES = de en
# used to create .ts files
defineReplace(prependAll) {
for(a,$$1):result += $$2$${a}$$3
return($$result)
}
# Available translations
tsroot = $$join(TARGET,,,.ts)
tstarget = $$join(TARGET,,,_)
TRANSLATIONS = $$PWD/translations/$$tsroot
TRANSLATIONS += $$prependAll(LANGUAGES, $$PWD/translations/$$tstarget, .ts)
# run LRELEASE to generate the qm files
qtPrepareTool(LRELEASE, lrelease)
for(tsfile, TRANSLATIONS) {
command = $$LRELEASE $$tsfile
system($$command)|error("Failed to run: $$command")
}
DISTFILES += \
gen-model/README.md \
gen-model/*.pdf \
gen-model/*.txt \
android/AndroidManifest.xml \
android/gradle/wrapper/gradle-wrapper.jar \
android/gradlew \
android/res/values/libs.xml \
android/build.gradle \
android/gradle.properties \
android/gradle/wrapper/gradle-wrapper.properties \
android/gradlew.bat \
winrt/*.appxmanifest \
winrt/assets/*.png
android {
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
# deploying 32-bit and 64-bit APKs you need different VersionCode
# here's my way to solve this - per ex. Version 1.2.3
# aabcddeef aa: 21 (MY_MIN_API), b: 0 (32 Bit) or 1 (64 Bit) c: 0 (unused)
# dd: 01 (Major Release), ee: 02 (Minor Release), f: 3 (Patch Release)
# VersionName 1.2.3
# VersionCode 32 Bit: 210001023
# VersionCode 64 Bit: 211001023
defineReplace(droidVersionCode) {
segments = $$split(1, ".")
for (segment, segments): vCode = "$$first(vCode)$$format_number($$segment, width=2 zeropad)"
equals(ANDROID_ABIS, arm64-v8a): \
prefix = 1
else: equals(ANDROID_ABIS, armeabi-v7a): \
prefix = 0
else: prefix = 2
# add more cases as needed
return($$first(prefix)0$$first(vCode))
}
MY_VERSION = 1.4
MY_PATCH_VERSION = 0
MY_MIN_API = 21
ANDROID_VERSION_NAME = $$MY_VERSION"."$$MY_PATCH_VERSION
ANDROID_VERSION_CODE = $$MY_MIN_API$$droidVersionCode($$MY_VERSION)$$MY_PATCH_VERSION
# find this in shadow build android-build gradle.properties
ANDROID_MIN_SDK_VERSION = "21"
ANDROID_TARGET_SDK_VERSION = "29"
}
ios {
QMAKE_INFO_PLIST = ios/Info.plist
ios_icon.files = $$files($$PWD/ios/AppIcon*.png)
QMAKE_BUNDLE_DATA += ios_icon
ios_artwork.files = $$files($$PWD/ios/iTunesArtwork*.png)
QMAKE_BUNDLE_DATA += ios_artwork
app_launch_images.files = $$files($$PWD/ios/LaunchImage*.png)
QMAKE_BUNDLE_DATA += app_launch_images
app_launch_screen.files = $$files($$PWD/ios/MyLaunchScreen.xib)
QMAKE_BUNDLE_DATA += app_launch_screen
QMAKE_IOS_DEPLOYMENT_TARGET = 12.0
disable_warning.name = GCC_WARN_64_TO_32_BIT_CONVERSION
disable_warning.value = NO
QMAKE_MAC_XCODE_SETTINGS += disable_warning
# Note for devices: 1=iPhone, 2=iPad, 1,2=Universal.
QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 1,2
}
winrt {
WINRT_MANIFEST.name = Qt Con 2016
WINRT_MANIFEST.background = white
WINRT_MANIFEST.default_language = en
WINRT_MANIFEST.description = QtCon 2016 Conference App
# getting manifest error: WINRT_MANIFEST.identity = org.ekkescorner.c2g.qtcon
WINRT_MANIFEST.version = 1.4.0.0
WINRT_MANIFEST = winrt/myPackage.appxmanifest
}
# do not move to other location in .pro
# otherwise build settings can loose the info
android: include(/Applications/daten/_android/android-sdk-26_1_1/android_openssl/openssl.pri)