Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 1.97 KB

example.pro

File metadata and controls

73 lines (55 loc) · 1.97 KB
 
May 5, 2014
May 5, 2014
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
TEMPLATE = lib
TARGET = $$qtLibraryTarget(exampleshareplugin)
CONFIG += plugin
DEPENDPATH += .
CONFIG += link_pkgconfig
PKGCONFIG += nemotransferengine-qt5
# Input
HEADERS += \
exampleplugininfo.h \
exampleuploader.h \
exampleshareplugin.h
SOURCES += \
exampleplugininfo.cpp \
exampleuploader.cpp \
exampleshareplugin.cpp
OTHER_FILES += \
ExampleShareUI.qml
shareui.files = *.qml
shareui.path = /usr/share/nemo-transferengine/plugins
target.path = /usr/lib/nemo-transferengine/plugins
INSTALLS += target shareui
TS_FILE = $$OUT_PWD/example_share_plugin.ts
EE_QM = $$OUT_PWD/example_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 += 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
Jun 2, 2014
Jun 2, 2014
48
engineering_english_install.path = /usr/share/translations/nemotransferengine
May 5, 2014
May 5, 2014
49
50
51
engineering_english_install.files = $$EE_QM
engineering_english_install.CONFIG += no_check_exist
Jun 2, 2014
Jun 2, 2014
52
53
54
55
56
57
58
59
TS_FI_FILE = translations/example_share_plugin_fi.ts
QM_FI_FILE = example_share_plugin_fi.qm
finnish.commands += 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
May 5, 2014
May 5, 2014
60
Jun 2, 2014
Jun 2, 2014
61
62
63
finnish_install.path = /usr/share/translations/nemotransferengine
finnish_install.files = $$QM_FI_FILE
finnish_install.CONFIG += no_check_exist
May 5, 2014
May 5, 2014
64
Jun 2, 2014
Jun 2, 2014
65
QMAKE_EXTRA_TARGETS += ts engineering_english finnish
May 5, 2014
May 5, 2014
66
Jun 2, 2014
Jun 2, 2014
67
PRE_TARGETDEPS += ts engineering_english finnish
May 5, 2014
May 5, 2014
68
Jun 2, 2014
Jun 2, 2014
69
INSTALLS += ts_install engineering_english_install finnish_install
May 5, 2014
May 5, 2014
70
71
72
73
OTHER_FILES += \
rpm/*
translations/*