Skip to content

Commit

Permalink
Wrap the deps of android_binary with android.
Browse files Browse the repository at this point in the history
* Will fix the build error on the OSS Linux.
* Follow-up to cl/578420951.

#codehealth

PiperOrigin-RevId: 578576621
  • Loading branch information
hiroyuki-komatsu committed Nov 1, 2023
1 parent b0a604f commit ddd9730
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/android/jni/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# Usage:
# % blaze --blazerc android/blazerc build --config=android_arm android/jni:libmozc.so

load("//:build_defs.bzl", "MOZC_TAGS", "mozc_cc_library", "mozc_py_binary")
load("//:build_defs.bzl", "MOZC_TAGS", "mozc_cc_library", "mozc_py_binary", "mozc_select")

mozc_cc_library(
name = "mozcjni",
Expand Down Expand Up @@ -75,10 +75,12 @@ android_binary(
name = "mozc",
srcs = [],
manifest = "AndroidManifest.xml",
deps = [
":fake_pthread",
":mozcjni",
],
deps = mozc_select(
android = [
":fake_pthread",
":mozcjni",
],
),
)

mozc_py_binary(
Expand Down

0 comments on commit ddd9730

Please sign in to comment.