-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dictionary.pro
178 lines (152 loc) · 7.45 KB
/
Dictionary.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
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
TEMPLATE = app
include(deployment.pri) # Default rules for deployment.
QT += core qml quick svg sql quickcontrols2
CONFIG += qml_debug c++11 console
#DEFINES *= QT_USE_QSTRINGBUILDER #denne må du eventuelt ta ut dersom det blir problemer. Erstatter alle + operatorene, som henger sammen strenger,
# med %-operatorer, forskjellen då er at det brukes stringbuildere, som forhindrer unødvendige kopieringer i minnen
#Endring av denne variablen eller versjonsnummeret krever alltid, at appen rekompileres komplett.
WADDEN_SEA_DICTIONARY=0 #1 heißt Wadden Sea Dictionary wird kompiliert, 0 kompiliert BoNyTysk
SPLASH=0
EDIT_DATABASE=0
equals(SPLASH, 1): RESOURCES += splash.qrc
VER_MAJ = 1 #endre også versjonen i Android.manifest!
VER_MIN = 0
VER_PAT = 3
VERSION = $$VER_MAJ"."$$VER_MIN"."$$VER_PAT
DEFINES += \
WADDEN_SEA_DICTIONARY=$$WADDEN_SEA_DICTIONARY \
APP_VERSION_STR=$$VERSION \
APP_VERSION_NR=$$VER_MAJ,$$VER_MIN,$$VER_PAT \
APP_DEVELOPER=fjellvannet \
EDIT_DATABASE=$$EDIT_DATABASE \
SPLASH=$$SPLASH
QT_QUICK_CONTROLS_STYLE=material
QT_AUTO_SCREEN_SCALE_FACTOR=1
HEADERS += \
myqquickview.h
SOURCES += main.cpp \
myqquickview.cpp
lupdate_only{
SOURCES += \
AppWindow.qml \
wadden_sea_dictionary/Constants.qml
RESOURCES += splash.qrc
}
RESOURCES += \
images.qrc \
common.qrc \
bonytysk.qrc
TRANSLATIONS += \
translations/Dictionary_da.ts \
translations/Dictionary_de.ts \
translations/Dictionary_nl.ts
DISTFILES += \
LICENSE.txt \
README.md \
translations/Dictionary_da.ts \
translations/Dictionary_de.ts \
translations/Dictionary_nl.ts \
windows {
DISTFILES += \
windows/appinfo.h\
windows/appinfo_en.h\
windows/appinfo_de.h\
windows/appinfo_da.h\
windows/appinfo_nl.h\
windows/Dictionary.rc\
windows/wadden_sea_dictionary_icon.ico\
windows/Wadden_Sea_Dictionary_Windows_release.cmd
RC_FILE = windows/Dictionary.rc
}
equals(WADDEN_SEA_DICTIONARY, 1) { #Wadden Sea Dictionary
message("Wadden Sea Dictionary" $$VERSION)
RESOURCES += wadden_sea_dictionary.qrc
windows || osx {
TARGET = "Wadden Sea Dictionary"
}else{
TARGET = "Wadden_Sea_Dictionary"
}
HEADERS += \
wadden_sea_dictionary/vocabularymodel.h \
wadden_sea_dictionary/vocabularylistmodel.h \
wadden_sea_dictionary/dictionarymodel.h
SOURCES += \
wadden_sea_dictionary/vocabularymodel.cpp \
wadden_sea_dictionary/vocabularylistmodel.cpp \
wadden_sea_dictionary/dictionarymodel.cpp
osx {
DISTFILES += wadden_sea_dictionary/ios/icon/app_icon.icns
ICON = wadden_sea_dictionary/ios/icon/app_icon.icns
}
ios {
RESOURCES -= images.qrc
RESOURCES += images_ios.qrc
DISTFILES += \
wadden_sea_dictionary/ios/LaunchScreen.xib \
wadden_sea_dictionary/ios/translations/HowToInXCode.rtf \
wadden_sea_dictionary/ios/translations/Info.plist \
wadden_sea_dictionary/ios/translations/da.lproj/InfoPlist.strings \
wadden_sea_dictionary/ios/translations/de.lproj/InfoPlist.strings \
wadden_sea_dictionary/ios/translations/en.lproj/File.strings \
wadden_sea_dictionary/ios/translations/en.lproj/InfoPlist.strings \
wadden_sea_dictionary/ios/translations/nl.lproj/InfoPlist.strings \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/Contents.json \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/Contents.json \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/Icon-50.png \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/Icon-57.png \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/Icon-72.png \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/Icon-76.png \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/Icon-Small-1.png \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/Icon-Small-40.png \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/Icon-Small.png \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected] \
wadden_sea_dictionary/ios/icon/app_icon.xcassets/AppIcon.appiconset/[email protected]
assets_catalogs.files = $$files($$PWD/wadden_sea_dictionary/ios/icon/*.xcassets)
app_launch_images.files = $$PWD/wadden_sea_dictionary/ios/LaunchScreen.xib $$PWD/ios/images/app_icon.png
QMAKE_BUNDLE_DATA += assets_catalogs \
app_launch_images
}
android {
DISTFILES += \
wadden_sea_dictionary/android/AndroidManifest.xml \
wadden_sea_dictionary/android/gradle/wrapper/gradle-wrapper.jar \
wadden_sea_dictionary/android/gradlew \
wadden_sea_dictionary/android/res/values/libs.xml \
wadden_sea_dictionary/android/res/values/strings.xml \
wadden_sea_dictionary/android/build.gradle \
wadden_sea_dictionary/android/gradle/wrapper/gradle-wrapper.properties \
wadden_sea_dictionary/android/gradlew.bat \
wadden_sea_dictionary/android/res/drawable-hdpi/app_icon.png \
wadden_sea_dictionary/android/res/drawable-ldpi/app_icon.png \
wadden_sea_dictionary/android/res/drawable-mdpi/app_icon.png \
wadden_sea_dictionary/android/res/drawable-tvdpi/app_icon.png \
wadden_sea_dictionary/android/res/drawable-xhdpi/app_icon.png \
wadden_sea_dictionary/android/res/drawable-xxhdpi/app_icon.png \
wadden_sea_dictionary/android/res/drawable-xxxhdpi/app_icon.png \
wadden_sea_dictionary/android/res/values-da/strings.xml \
wadden_sea_dictionary/android/res/values-de/strings.xml \
wadden_sea_dictionary/android/res/values-nl/strings.xml
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/wadden_sea_dictionary/android
}
}
else {#BoNyTysk
equals(EDIT_DATABASE, 0) : RESOURCES +=
HEADERS += bonytysk/databasecreator.h \
bonytysk/localsortkeygenerator.h \
bonytysk/wordlistmodel.h
SOURCES += bonytysk/databasecreator.cpp \
bonytysk/localsortkeygenerator.cpp \
bonytysk/wordlistmodel.cpp
DISTFILES += bonytysk/heinzelliste.csv
}