summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-11 16:57:58 +0100
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-11 17:17:28 +0000
commitdee2413bfca7fd09de633b4bebe49512193261e1 (patch)
treed3db4fa20e08261f731b7dac0e6d40bf3f0f5686 /src
parent8927c4de7072741a8a602857e6e062aa35ae0ecb (diff)
cmake: build the ibus plugin
Change-Id: Ib2846204cc89b538ffe3b2282f7890f3de6ef33d Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/CMakeLists.txt1
-rw-r--r--src/plugins/platforminputcontexts/CMakeLists.txt10
-rw-r--r--src/plugins/platforminputcontexts/ibus/CMakeLists.txt23
3 files changed, 34 insertions, 0 deletions
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
index 49a3e45b96..4455672660 100644
--- a/src/plugins/CMakeLists.txt
+++ b/src/plugins/CMakeLists.txt
@@ -2,6 +2,7 @@ if(QT_FEATURE_gui)
add_subdirectory(imageformats)
add_subdirectory(platforms)
add_subdirectory(platformthemes)
+ add_subdirectory(platforminputcontexts)
if (NOT ANDROID AND QT_FEATURE_library)
add_subdirectory(generic)
diff --git a/src/plugins/platforminputcontexts/CMakeLists.txt b/src/plugins/platforminputcontexts/CMakeLists.txt
new file mode 100644
index 0000000000..4fb2bb9b63
--- /dev/null
+++ b/src/plugins/platforminputcontexts/CMakeLists.txt
@@ -0,0 +1,10 @@
+
+if(QT_FEATURE_dbus AND (NOT APPLE_OSX) AND (NOT WIN32))
+ add_subdirectory(ibus)
+endif()
+
+if(QT_FEATURE_xcb)
+# TODO add_subdirectory(compose)
+endif()
+
+
diff --git a/src/plugins/platforminputcontexts/ibus/CMakeLists.txt b/src/plugins/platforminputcontexts/ibus/CMakeLists.txt
new file mode 100644
index 0000000000..3f79d80578
--- /dev/null
+++ b/src/plugins/platforminputcontexts/ibus/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from ibus.pro.
+
+#####################################################################
+## ibusplatforminputcontextplugin Plugin:
+#####################################################################
+
+add_qt_plugin(ibusplatforminputcontextplugin
+ TYPE platforminputcontexts
+ SOURCES
+ main.cpp
+ qibusinputcontextproxy.cpp qibusinputcontextproxy.h
+ qibusplatforminputcontext.cpp qibusplatforminputcontext.h
+ qibusproxy.cpp qibusproxy.h
+ qibusproxyportal.cpp qibusproxyportal.h
+ qibustypes.cpp qibustypes.h
+ LIBRARIES
+ Qt::DBus
+ Qt::GuiPrivate
+ # OTHER_FILES = "$$PWD/ibus.json"
+ # PLUGIN_CLASS_NAME = "QIbusPlatformInputContextPlugin"
+ # PLUGIN_EXTENDS = "-"
+ # _LOADED = "qt_plugin"
+)