-
Notifications
You must be signed in to change notification settings - Fork 3
/
harbour-qr-share-plugin.pro
125 lines (95 loc) · 3.87 KB
/
harbour-qr-share-plugin.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
TEMPLATE = lib
TARGET = $$qtLibraryTarget(harbourqrshareplugin)
CONFIG += plugin
DEPENDPATH += .
CONFIG += link_pkgconfig
PKGCONFIG += nemotransferengine-qt5
# Input
HEADERS += \
src/qrplugininfo.h \
src/qruploader.h \
src/qrshareplugin.h
SOURCES += \
src/qrplugininfo.cpp \
src/qruploader.cpp \
src/qrshareplugin.cpp
OTHER_FILES += \
qml/QRCodeShow.qml
shareui.files = qml/QRCodeShow.qml
shareui.path = /usr/share/nemo-transferengine/plugins
target.path = /usr/lib/nemo-transferengine/plugins
INSTALLS += target shareui
OTHER_FILES += \
qml/qqr.js/qqr.js \
qml/qqr.js/QRCode.qml \
qml/qqr.js/qmldir
qqrlib.files = qml/qqr.js/qqr.js \
qml/qqr.js/QRCode.qml \
qml/qqr.js/qmldir
qqrlib.path = /usr/lib/qt5/qml/fi/lahdemaki/QQRCode
INSTALLS += qqrlib
TS_FILE = $$OUT_PWD/harbour_qr_share_plugin.ts
EE_QM = $$OUT_PWD/harbour_qr_share_plugin-eng_en.qm
ts.commands += lupdate . -ts $$TS_FILE
ts.CONFIG += no_check_exist no_link
ts.output = $$TS_FILE
ts.input = ..
ts_install.files = $$TS_FILE
ts_install.path = /usr/share/translations/source
ts_install.CONFIG += no_check_exist
# should add -markuntranslated "-" when proper translations are in place (or for testing)
engineering_english.commands += lupdate . -ts $$TS_FILE; lrelease -idbased $$TS_FILE -qm $$EE_QM
engineering_english.CONFIG += no_check_exist no_link
engineering_english.depends = ts
engineering_english.input = $$TS_FILE
engineering_english.output = $$EE_QM
engineering_english_install.path = /usr/share/translations/nemotransferengine
engineering_english_install.files = $$EE_QM
engineering_english_install.CONFIG += no_check_exist
TS_FI_FILE = translations/harbour_qr_share_plugin_fi.ts
QM_FI_FILE = harbour_qr_share_plugin-fi.qm
finnish.commands += lupdate . -ts $$TS_FI_FILE; lrelease -idbased $$TS_FI_FILE -qm $$QM_FI_FILE
finnish.CONFIG += no_check_exist no_link
finnish.depends = ts
finnish.input = $$TS_FI_FILE
finnish.output = $$QM_FI_FILE
finnish_install.path = /usr/share/translations/nemotransferengine
finnish_install.files = $$QM_FI_FILE
finnish_install.CONFIG += no_check_exist
TS_SV_FILE = translations/harbour_qr_share_plugin_sv.ts
QM_SV_FILE = harbour_qr_share_plugin-sv.qm
swedish.commands += lupdate . -ts $$TS_SV_FILE; lrelease -idbased $$TS_SV_FILE -qm $$QM_SV_FILE
swedish.CONFIG += no_check_exist no_link
swedish.depends = ts
swedish.input = $$TS_SV_FILE
swedish.output = $$QM_SV_FILE
swedish_install.path = /usr/share/translations/nemotransferengine
swedish_install.files = $$QM_SV_FILE
swedish_install.CONFIG += no_check_exist
TS_EN_FILE = translations/harbour_qr_share_plugin_en_GB.ts
QM_EN_FILE = harbour_qr_share_plugin-en_GB.qm
english.commands += lupdate . -ts $$TS_EN_FILE; lrelease -idbased $$TS_EN_FILE -qm $$QM_EN_FILE
english.CONFIG += no_check_exist no_link
english.depends = ts
english.input = $$TS_EN_FILE
english.output = $$QM_EN_FILE
english_install.path = /usr/share/translations/nemotransferengine
english_install.files = $$QM_EN_FILE
english_install.CONFIG += no_check_exist
TS_RU_FILE = translations/harbour_qr_share_plugin_ru.ts
QM_RU_FILE = harbour_qr_share_plugin-ru.qm
russian.commands += lupdate . -ts $$TS_RU_FILE; lrelease -idbased $$TS_RU_FILE -qm $$QM_RU_FILE
russian.CONFIG += no_check_exist no_link
russian.depends = ts
russian.input = $$TS_RU_FILE
russian.output = $$QM_RU_FILE
russian_install.path = /usr/share/translations/nemotransferengine
russian_install.files = $$QM_RU_FILE
russian_install.CONFIG += no_check_exist
QMAKE_EXTRA_TARGETS += ts engineering_english finnish swedish english russian
PRE_TARGETDEPS += ts engineering_english finnish swedish english russian
INSTALLS += ts_install english_install finnish_install swedish_install russian_install
# engineering_english_install
OTHER_FILES += \
rpm/* \
translations/*