Skip to content

Commit

Permalink
Fcitx bazel build (fcitx#68)
Browse files Browse the repository at this point in the history
  * add build_fcitx_bazel

  * This is a fix to enable fcitx-mozc to be built with bazel.
  • Loading branch information
phoepsilonix committed Oct 26, 2024
1 parent 50b7053 commit 2b0ed29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions scripts/build_fcitx_bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

_BUILD_TARGETS="${_BUILD_TARGETS:-unix/fcitx:fcitx-mozc.so server:mozc_server gui/tool:mozc_tool}"

bazel build -c opt --copt=-fPIC --config oss_linux "$@" $_BUILD_TARGETS
4 changes: 0 additions & 4 deletions src/unix/fcitx/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ mozc_cc_library(
"//client",
"//protocol:commands_cc_proto",
"@com_google_absl//absl/log:check",
"@fcitx",
],
)

Expand Down Expand Up @@ -65,7 +64,6 @@ mozc_cc_library(
"//protocol:commands_cc_proto",
"//protocol:config_cc_proto",
"@com_google_absl//absl/log:check",
"@fcitx",
],
)

Expand All @@ -82,7 +80,6 @@ mozc_cc_library(
"//base:util",
"//base:vlog",
"@com_google_absl//absl/log:check",
"@fcitx",
],
)

Expand All @@ -97,6 +94,5 @@ mozc_cc_binary(
deps = [
":fcitx_mozc",
"//base:init_mozc",
"@fcitx",
],
)

0 comments on commit 2b0ed29

Please sign in to comment.