-
Notifications
You must be signed in to change notification settings - Fork 12
/
biz_data_x.pro
95 lines (81 loc) · 2.29 KB
/
biz_data_x.pro
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
# ekke (Ekkehard Gentz) @ekkescorne
TEMPLATE = app
TARGET = biz_data_x
QT += qml quick core
CONFIG += c++11
HEADERS += \
cpp/applicationui.hpp \
cpp/uiconstants.hpp \
cpp/gen/SettingsData.hpp \
cpp/gen/Customer.hpp \
cpp/gen/DataManager.hpp \
cpp/gen/Order.hpp \
cpp/gen/Position.hpp
SOURCES += cpp/main.cpp \
cpp/applicationui.cpp \
cpp/gen/SettingsData.cpp \
cpp/gen/Customer.cpp \
cpp/gen/DataManager.cpp \
cpp/gen/Order.cpp \
cpp/gen/Position.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 \
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_at 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