File: BUILD.bazel

package info (click to toggle)
grpc-java 1.41.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,884 kB
  • sloc: java: 203,784; xml: 1,224; sh: 1,221; cpp: 1,158; makefile: 40; python: 40
file content (27 lines) | stat: -rw-r--r-- 919 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
java_library(
    name = "protobuf-lite",
    srcs = glob([
        "src/main/java/**/*.java",
    ]),
    visibility = ["//visibility:public"],
    deps = [
        "//api",
        "@com_google_code_findbugs_jsr305//jar",
        "@com_google_guava_guava//jar",
        "@com_google_j2objc_j2objc_annotations//jar",
    ] + select({
        ":android": ["@com_google_protobuf_javalite//:protobuf_javalite"],
        "//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",
    },
)