From ddd9730b068387631e3b4d212314ef0ed93befe0 Mon Sep 17 00:00:00 2001 From: Hiroyuki Komatsu Date: Wed, 1 Nov 2023 18:11:19 +0000 Subject: [PATCH] Wrap the `deps` of android_binary with `android`. * Will fix the build error on the OSS Linux. * Follow-up to cl/578420951. #codehealth PiperOrigin-RevId: 578576621 --- src/android/jni/BUILD.bazel | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/android/jni/BUILD.bazel b/src/android/jni/BUILD.bazel index f196bc78c..0291e0df8 100644 --- a/src/android/jni/BUILD.bazel +++ b/src/android/jni/BUILD.bazel @@ -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", @@ -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(