-
Notifications
You must be signed in to change notification settings - Fork 28
/
osmscout-server.pro
79 lines (68 loc) · 2.18 KB
/
osmscout-server.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
TEMPLATE = subdirs
SUBDIRS = server gui
include(common.pri)
TARGET=$${APP_NAME}
# installs
styles.files = styles
styles.path = $$PREFIX/share/$${TARGET}
INSTALLS += styles
geocoder_data.files = data/geocoder-npl-tag-aliases.json
geocoder_data.path = $${PREFIX}/share/$${TARGET}/data
INSTALLS += geocoder_data
valhalla_data.files = data/valhalla.json-*
valhalla_data.path = $${PREFIX}/share/$${TARGET}/data
INSTALLS += valhalla_data
OTHER_FILES += rpm/osmscout-server.spec
# translations
TRANSLATIONS += \
translations/$${APP_NAME}-cs.ts \
translations/$${APP_NAME}-de.ts \
translations/$${APP_NAME}-es.ts \
translations/$${APP_NAME}-et.ts \
translations/$${APP_NAME}-fi.ts \
translations/$${APP_NAME}-fr.ts \
translations/$${APP_NAME}-it_IT.ts \
translations/$${APP_NAME}-nb.ts \
translations/$${APP_NAME}-nl.ts \
translations/$${APP_NAME}-nl_BE.ts \
translations/$${APP_NAME}-pl.ts \
translations/$${APP_NAME}-pt_BR.ts \
translations/$${APP_NAME}-ru.ts \
translations/$${APP_NAME}-sk.ts \
translations/$${APP_NAME}-sv.ts
# packaging
scout_silica {
DISTFILES += \
rpm/$${TARGET}.spec
}
scout_silica {
qtPrepareTool(LRELEASE, lrelease)
for(tsfile, TRANSLATIONS) {
qmfile = $$shadowed($$tsfile)
qmfile ~= s,.ts$,.qm,
qmdir = $$dirname(qmfile)
!exists($$qmdir) {
mkpath($$qmdir)|error("Aborting.")
}
command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile
system($$command)|error("Failed to run: $$command")
TRANSLATIONS_FILES += $$qmfile
}
translations_files.files = $${TRANSLATIONS_FILES}
translations_files.path = $${PREFIX}/share/$${APP_NAME}/translations
INSTALLS += translations_files
}
scout_uuitk|scout_lomiri {
qtPrepareTool(LRELEASE, lrelease)
for(tsfile, TRANSLATIONS) {
qmfile = $$shadowed($$tsfile)
qmfile ~= s,.ts$,.qm,
qmdir = $$dirname(qmfile)
!exists($$qmdir) {
mkpath($$qmdir)|error("Aborting.")
}
command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile
system($$command)|error("Failed to run: $$command")
TRANSLATIONS_FILES += $$qmfile
}
}