Fixed bug 3301 - IBus support on Linux with CMake

joe.gsoc16

I recently looked into Unicode support in SDL2 and realized that
SDL_TEXTEDITING doesn't get triggered at all (Japanese IME).
According to others on IRC it works fine on Windows/Mac but not
for me on (arch)Linux.
When compiling SDL with autotools, IBus support is enabled by
default but not so with CMake.
I never used CMake before but got it working and also included
that pkg-config determines flags for dbus (FIXME in CMakeLists).
This commit is contained in:
Sam Lantinga
2016-10-01 12:48:08 -07:00
parent 765d8bea01
commit bb24662c79
2 changed files with 17 additions and 2 deletions

View File

@@ -81,6 +81,7 @@
#cmakedefine HAVE_PTHREAD_NP_H 1
#cmakedefine HAVE_LIBUDEV_H 1
#cmakedefine HAVE_DBUS_DBUS_H 1
#cmakedefine HAVE_IBUS_IBUS_H 1
/* C library functions */
#cmakedefine HAVE_MALLOC 1