Skip to content

Commit

Permalink
SDL_USE_IME
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunt Lin committed Sep 10, 2020
1 parent 93d4c0a commit dda722c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions sdl2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ fn patch_sdl2(sdl2_source_path: &Path) {
("SDL2-2.0.10-CMakeLists.txt.patch", include_str!("patches/SDL2-2.0.10-CMakeLists.txt.patch")),
// https://bugzilla.libsdl.org/show_bug.cgi?id=5105
("SDL2-2.0.10-sndio-shared-linux.patch", include_str!("patches/SDL2-2.0.10-sndio-shared-linux.patch")),
("SDL2-2.0.10-SDL_USE_IME.patch", include_str!("patches/SDL2-2.0.10-SDL_USE_IME.patch")),
];
let sdl_version = format!("SDL2-{}", LASTEST_SDL2_VERSION);

Expand Down
19 changes: 19 additions & 0 deletions sdl2-sys/patches/SDL2-2.0.10-SDL_USE_IME.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
commit b2f11ac0707d7186cd7d0f783d0f5fdeae172cdb (HEAD -> hunt3)
Author: Hunt Lin <hunt.lin@tes-tec.com>
Date: Thu Sep 10 14:20:38 2020 +0800

SDL_USE_IME

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 610f150..a771288 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1106,6 +1106,7 @@ elseif(UNIX AND NOT APPLE AND NOT ANDROID)
set(HAVE_IBUS_IBUS_H TRUE)
include_directories(${IBUS_INCLUDE_DIRS})
list(APPEND EXTRA_LIBS ${IBUS_LIBRARIES})
+ add_definitions(-DSDL_USE_IME)
endif()
if(HAVE_LIBUNWIND_H)
# We've already found the header, so REQUIRE the lib to be present

0 comments on commit dda722c

Please sign in to comment.