| load("@rules_java//java:defs.bzl", "java_library") |
| |
| package(default_visibility = ["//src:__subpackages__"]) |
| |
| licenses(["notice"]) |
| |
| filegroup( |
| name = "srcs", |
| srcs = glob(["*"]), |
| visibility = ["//src:__subpackages__"], |
| ) |
| |
| UTIL_SRCS = ["PlatformProviderUtils.java"] |
| |
| # Description: |
| # Providers defined for platforms, constraints, and toolchains. |
| java_library( |
| name = "platform", |
| srcs = glob( |
| [ |
| "*.java", |
| ], |
| exclude = UTIL_SRCS + ["PlatformUtils.java"], |
| ), |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/analysis:config/config_matching_provider", |
| "//src/main/java/com/google/devtools/build/lib/analysis:required_config_fragments_provider", |
| "//src/main/java/com/google/devtools/build/lib/analysis:transitive_info_provider", |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/concurrent", |
| "//src/main/java/com/google/devtools/build/lib/packages", |
| "//src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec", |
| "//src/main/java/com/google/devtools/build/lib/starlarkbuildapi/platform", |
| "//src/main/java/com/google/devtools/build/lib/util", |
| "//src/main/java/com/google/devtools/build/lib/util:string", |
| "//src/main/java/net/starlark/java/eval", |
| "//src/main/java/net/starlark/java/syntax", |
| "//third_party:auto_value", |
| "//third_party:guava", |
| "//third_party:jsr305", |
| ], |
| ) |
| |
| java_library( |
| name = "platform_utils", |
| srcs = ["PlatformUtils.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/actions", |
| "//src/main/java/com/google/devtools/build/lib/remote/options", |
| "//src/main/protobuf:failure_details_java_proto", |
| "//third_party:guava", |
| "//third_party:jsr305", |
| "//third_party/protobuf:protobuf_java", |
| "@remoteapis//:build_bazel_remote_execution_v2_remote_execution_java_proto", |
| ], |
| ) |
| |
| java_library( |
| name = "utils", |
| srcs = UTIL_SRCS, |
| deps = [ |
| ":platform", |
| "//src/main/java/com/google/devtools/build/lib/analysis:provider_collection", |
| "//third_party:guava", |
| "//third_party:jsr305", |
| ], |
| ) |