• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1java_library(
2    name = "protobuf-lite",
3    srcs = glob([
4        "src/main/java/**/*.java",
5    ]),
6    visibility = ["//visibility:public"],
7    deps = [
8        "//core",
9        "@com_google_code_findbugs_jsr305//jar",
10        "@com_google_guava_guava//jar",
11    ] + select({
12        ":android": ["@com_google_protobuf_javalite//:protobuf_java_lite"],
13        "//conditions:default": ["@com_google_protobuf//:protobuf_java"],
14    }),
15)
16
17# This config is not fully-reliable. If it breaks, it is probably because you
18# are changing --android_crosstool_top. Instead of doing that, you can bind
19# your own toolchain on top of the default android/crosstool, as mentioned at
20# https://github.com/bazelbuild/bazel/issues/3924#issuecomment-338704582
21config_setting(
22    name = "android",
23    values = {
24        "crosstool_top": "//external:android/crosstool",
25    },
26)
27