File fcitx-mozc-bazel-build.patch of Package mozc
diff --git a/src/MODULE.bazel b/src/MODULE.bazel
index e432cdd16..fa57692f8 100644
--- a/src/MODULE.bazel
+++ b/src/MODULE.bazel
@@ -171,6 +171,23 @@ pkg_config_repository(
],
)
+# Fcitx
+new_local_repository(
+ name = "fcitx",
+ build_file = "BUILD.fcitx.bazel",
+ # This path should be updated per the environment.
+ path = "/usr", # For Debian
+)
+
+# Fcitx 5
+pkg_config_repository(
+ name = "fcitx5",
+ packages = [
+ "Fcitx5Core",
+ "Fcitx5Module",
+ ],
+)
+
# Qt for Linux
pkg_config_repository(
name = "qt_linux",
diff --git a/src/session/BUILD.bazel b/src/session/BUILD.bazel
index b813385b8..9a4c1b0fe 100644
--- a/src/session/BUILD.bazel
+++ b/src/session/BUILD.bazel
@@ -158,6 +158,7 @@ mozc_cc_library(
"//android/jni:__pkg__",
"//ios:__pkg__",
"//server:__pkg__",
+ "//unix/fcitx5:__pkg__",
],
deps = [
":keymap",
@@ -355,6 +356,7 @@ mozc_cc_library(
hdrs = ["key_info_util.h"],
visibility = [
"//client:__pkg__",
+ "//unix/fcitx5:__pkg__",
"//win32/base:__pkg__",
],
deps = [