Skip to content

Commit

Permalink
Replace the remaining dependencies for Bazel Debian build (main)
Browse files Browse the repository at this point in the history
Working towards #9408

Closes #11683.

PiperOrigin-RevId: 319192782
  • Loading branch information
meteorcloudy authored and copybara-github committed Jul 1, 2020
1 parent 8ea8a3a commit 97853f1
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 4 deletions.
6 changes: 6 additions & 0 deletions tools/distributions/debian/debian_bin.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ filegroup(
name = "protobuf-compiler",
srcs = ["protoc"],
)

# protobuf-compiler-grpc
filegroup(
name = "grpc-cpp-plugin",
srcs = ["grpc_cpp_plugin"],
)
7 changes: 7 additions & 0 deletions tools/distributions/debian/debian_cc.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ cc_library(
deps = [":protobuf"],
visibility = ["//visibility:public"],
)

# libgrpc++-dev
cc_library(
name = "grpc++_unsecure",
linkopts = ["-lgrpc++_unsecure", "-lgrpc_unsecure", "-lgpr"],
visibility = ["//visibility:public"],
)
176 changes: 172 additions & 4 deletions tools/distributions/debian/debian_java.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,180 @@ java_import(
)

java_import(
name = "blaze-agent",
jars = ["org.jacoco.agent.jar"],
name = "blaze-agent",
jars = ["org.jacoco.agent.jar"],
)

java_import(
name = "blaze-agent-%s" % JACOCOVERSION,
jars = ["org.jacoco.agent.jar"],
name = "blaze-agent-%s" % JACOCOVERSION,
jars = ["org.jacoco.agent.jar"],
)
# libjacoco-java - END

# libgoogle-auto-common-java
java_import(
name = "auto_common",
jars = ["auto-common.jar"],
)

# libgoogle-auto-service-java
java_import(
name = "auto_service_lib",
jars = [
"auto-service.jar",
"auto-service-annotations.jar",
],
)

# libescapevelocity-java
java_import(
name = "escapevelocity",
jars = ["escapevelocity.jar"],
)

# libgoogle-auto-value-java
java_import(
name = "auto_value_value",
jars = [
"auto-value.jar",
"auto-value-annotations.jar",
],
runtime_deps = [
":escapevelocity",
":javapoet",
],
)

# For bootstrapping JavaBuilder
filegroup(
name = "auto_value-jars",
srcs = [
"auto-value.jar",
"auto-value-annotations.jar",
"auto-common.jar",
"escapevelocity.jar",
"javapoet.jar",
],
)

# libgoogle-http-client-java
# libgoogle-api-client-java
java_import(
name = "api_client",
jars = [
"google-api-client.jar",
"google-api-client-jackson2.jar",
"google-http-client.jar",
"google-http-client-jackson2.jar",
],
runtime_deps = [
":jackson2",
],
)

# libgoogle-auth-java
java_import(
name = "auth",
jars = [
"google-auth-library-oauth2-http.jar",
"google-auth-library-credentials.jar",
],
runtime_deps = [
":api_client",
":guava",
"@//third_party/aws-sdk-auth-lite",
],
)

# liberror-prone-java
java_import(
name = "error_prone_annotations",
jars = [
"error-prone-annotations.jar",
"error-prone-type-annotations.jar",
],
)

# For bootstrapping JavaBuilder
filegroup(
name = "error_prone_annotations-jar",
srcs = ["error-prone-annotations.jar"],
)

# libdiffutils-java
java_import(
name = "java-diff-utils",
jars = ["java-diff-utils.jar"],
)

# opencensus-java
java_import(
name = "opencensus-api",
jars = [
"opencensus-api.jar",
"opencensus-contrib-grpc-metrics.jar",
],
)

# perfmark-java
java_import(
name = "perfmark-api",
jars = [
"perfmark-api.jar",
],
)

# google-flogger
java_import(
name = "flogger",
jars = [
"flogger.jar",
"flogger-system-backend.jar",
"google-extensions.jar",
],
)

# For bootstrapping JavaBuilder
filegroup(
name = "flogger-jars",
srcs = [
"flogger.jar",
"flogger-system-backend.jar",
"google-extensions.jar",
],
)

# checker-framework
java_import(
name = "checker_framework_annotations",
jars = ["checker-qual.jar"],
)

# grpc-java
java_import(
name = "grpc-jar",
jars = [":bootstrap-grpc-jars"],
runtime_deps = [
":netty",
":opencensus-api",
":perfmark-api",
],
deps = [
":guava",
],
)

# For bootstrapping JavaBuilder
filegroup(
name = "bootstrap-grpc-jars",
srcs = [
"grpc-api.jar",
"grpc-auth.jar",
"grpc-context.jar",
"grpc-core.jar",
"grpc-netty.jar",
"grpc-protobuf.jar",
"grpc-protobuf-lite.jar",
"grpc-stub.jar",
],
)
1 change: 1 addition & 0 deletions tools/distributions/debian/deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def debian_bin_deps():
name = "debian_bin_deps",
symlinks = {
"protoc": "/usr/bin/protoc",
"grpc_cpp_plugin": "/usr/bin/grpc_cpp_plugin",
},
build_file = "//tools/distributions/debian:debian_bin.BUILD",
)

0 comments on commit 97853f1

Please sign in to comment.