aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorHadrien Zalek <hzalek@google.com>2020-05-26 21:51:30 -0700
committerHadrien Zalek <hzalek@google.com>2020-06-03 00:22:23 -0700
commit2d04a324870582b87e05dbffbe9fe0d77dab1cf1 (patch)
tree04652f0b6ae382f635cc5565422cdb1a146a7c75 /Android.bp
parent830181d779c33ae6b8a04ab428974bc0752c62b2 (diff)
downloadgrpc-grpc-java-2d04a324870582b87e05dbffbe9fe0d77dab1cf1.tar.gz
Build the gRPC Java library from source
Build the library from source since the imported prebuilts are inconsistent and incomplete. For starters, the source is that of version 1.15.0 but the imported jars are those of version 1.14.0. More importantly the grpc-java-protobuf library depends on the grpc-java-protobuf-lite library that is not prebuilt. This causes runtime errors due to missing symbols that should have been caught at compile-time. The Soong build modules follow the upstream Bazel rules as closely as possible. Note that some static libraries were added to the grpc-java to maintain compatibility with other rules that depend on it since the original prebuilt grpc-java-core jar contained all sources under core/ which is not how the library is built using Bazel. Test: m grpc-java Test: Diffed the entries between the old and new jars Bug: 148404241 Change-Id: I060333a68848272d5d9e09c040c1e35451a408c6
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp12
1 files changed, 8 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp
index 67278a936..f7835ef33 100644
--- a/Android.bp
+++ b/Android.bp
@@ -17,10 +17,14 @@
java_library_host {
name: "grpc-java",
static_libs: [
+ "grpc-java-context",
"grpc-java-core",
- "grpc-java-context",
- "grpc-java-protobuf",
- "grpc-java-stub",
- "grpc-java-netty-shaded",
+ "grpc-java-core-inprocess",
+ "grpc-java-core-internal",
+ "grpc-java-core-util",
+ "grpc-java-netty-shaded",
+ "grpc-java-protobuf",
+ "grpc-java-protobuf-lite",
+ "grpc-java-stub",
]
}