summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-11 17:13:41 +0100
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-11 17:17:41 +0000
commitd6aed4b3d05a59464930ff7703665af2fec9bb4f (patch)
tree8608da6cde36d9028309378e1fdf3c4f965f8028 /src
parentdee2413bfca7fd09de633b4bebe49512193261e1 (diff)
cmake: enable the compose plugin
Change-Id: I0201b37531f7ba7380b2ca2f221283dda9a601a0 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforminputcontexts/CMakeLists.txt2
-rw-r--r--src/plugins/platforminputcontexts/compose/CMakeLists.txt27
2 files changed, 28 insertions, 1 deletions
diff --git a/src/plugins/platforminputcontexts/CMakeLists.txt b/src/plugins/platforminputcontexts/CMakeLists.txt
index 4fb2bb9b63..c8baf76f95 100644
--- a/src/plugins/platforminputcontexts/CMakeLists.txt
+++ b/src/plugins/platforminputcontexts/CMakeLists.txt
@@ -4,7 +4,7 @@ if(QT_FEATURE_dbus AND (NOT APPLE_OSX) AND (NOT WIN32))
endif()
if(QT_FEATURE_xcb)
-# TODO add_subdirectory(compose)
+ add_subdirectory(compose)
endif()
diff --git a/src/plugins/platforminputcontexts/compose/CMakeLists.txt b/src/plugins/platforminputcontexts/compose/CMakeLists.txt
new file mode 100644
index 0000000000..ccb5641e84
--- /dev/null
+++ b/src/plugins/platforminputcontexts/compose/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from compose.pro.
+
+find_package(XKB)
+
+pkg_get_variable(PKG_X11_PREFIX x11 prefix)
+
+#####################################################################
+## composeplatforminputcontextplugin Plugin:
+#####################################################################
+
+add_qt_plugin(composeplatforminputcontextplugin
+ TYPE platforminputcontexts
+ SOURCES
+ generator/qtablegenerator.cpp generator/qtablegenerator.h
+ qcomposeplatforminputcontext.cpp qcomposeplatforminputcontext.h
+ qcomposeplatforminputcontextmain.cpp
+ DEFINES
+ X11_PREFIX="${PKG_X11_PREFIX}"
+ LIBRARIES
+ Qt::CorePrivate
+ Qt::GuiPrivate
+ XKB::XKB
+ # OTHER_FILES = "$$PWD/compose.json"
+ # PLUGIN_CLASS_NAME = "QComposePlatformInputContextPlugin"
+ # PLUGIN_EXTENDS = "-"
+ # _LOADED = "qt_plugin"
+)