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 engineering_english_install.path = /usr/share/translations engineering_english_install.files = $$EE_QM engineering_english_install.CONFIG += no_check_exist QMAKE_EXTRA_TARGETS += ts engineering_english PRE_TARGETDEPS += ts engineering_english INSTALLS += ts_install engineering_english_install OTHER_FILES += \ rpm/* translations/*