You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
867 B

java_library(
name = "protobuf-lite",
srcs = glob([
"src/main/java/**/*.java",
]),
visibility = ["//visibility:public"],
deps = [
"//core",
"@com_google_code_findbugs_jsr305//jar",
"@com_google_guava_guava//jar",
] + select({
":android": ["@com_google_protobuf_javalite//:protobuf_java_lite"],
"//conditions:default": ["@com_google_protobuf//:protobuf_java"],
}),
)
# This config is not fully-reliable. If it breaks, it is probably because you
# are changing --android_crosstool_top. Instead of doing that, you can bind
# your own toolchain on top of the default android/crosstool, as mentioned at
# https://github.com/bazelbuild/bazel/issues/3924#issuecomment-338704582
config_setting(
name = "android",
values = {
"crosstool_top": "//external:android/crosstool",
},
)