summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Tinkl <lukas@kde.org>2014-08-13 19:59:04 (GMT)
committerLukáš Tinkl <lukas@kde.org>2014-08-13 19:59:04 (GMT)
commitf8b9546afff0695d27cecb4b1e9fd74c3a862917 (patch)
tree98f763e568a4ade997edb3a2b934e1ebe005ebcc
parent24f7054c9e0ee0313687287538614dbc8e3960d6 (diff)
fix build
either generator_txt.json needs to be committed or one has to generate the JSON metadata using kservice_desktop_to_json
-rw-r--r--generators/txt/CMakeLists.txt1
-rw-r--r--generators/txt/generator_txt.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/generators/txt/CMakeLists.txt b/generators/txt/CMakeLists.txt
index 3a69202..661e14f 100644
--- a/generators/txt/CMakeLists.txt
+++ b/generators/txt/CMakeLists.txt
@@ -15,6 +15,7 @@ set(okularGenerator_txt_SRCS
add_library(okularGenerator_txt MODULE ${okularGenerator_txt_SRCS})
target_link_libraries(okularGenerator_txt okularcore Qt5::Core)
+kservice_desktop_to_json(okularGenerator_txt libokularGenerator_txt.desktop)
install(TARGETS okularGenerator_txt DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/generators/txt/generator_txt.h b/generators/txt/generator_txt.h
index 173d8e4..1e3c8fe 100644
--- a/generators/txt/generator_txt.h
+++ b/generators/txt/generator_txt.h
@@ -17,7 +17,7 @@
class TxtGenerator : public Okular::TextDocumentGenerator
{
Q_OBJECT
- Q_PLUGIN_METADATA(IID OkularGeneratorInterface_iid FILE "generator_txt.json")
+ Q_PLUGIN_METADATA(IID OkularGeneratorInterface_iid FILE "libokularGenerator_txt.json")
public:
TxtGenerator();