aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadrien Zalek <hzalek@google.com>2020-07-27 20:20:04 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-07-27 20:20:04 +0000
commit24cfcd7b5b425a5d07c21b56f311d58b20538bba (patch)
tree71cca5090003ca0b46a97cbc43b52e94103376bd
parent8562a75e2fc7a0683a1dede7ae4c9602ce4e180a (diff)
parent26355262c76a5195b19c4cedb17c1a5a8b0cfe82 (diff)
downloadgrpc-grpc-java-24cfcd7b5b425a5d07c21b56f311d58b20538bba.tar.gz
Merge "Add a build module for the Netty Shaded library" am: 9297fc3b14 am: 29ebc18900 am: 26355262c7
Original change: https://android-review.googlesource.com/c/platform/external/grpc-grpc-java/+/1371536 Change-Id: I6610d550b62b63204f1427544f7f6b501261f9a5
-rw-r--r--netty/shaded/Android.bp27
1 files changed, 27 insertions, 0 deletions
diff --git a/netty/shaded/Android.bp b/netty/shaded/Android.bp
new file mode 100644
index 000000000..5aecf42ba
--- /dev/null
+++ b/netty/shaded/Android.bp
@@ -0,0 +1,27 @@
+//
+// Copyright (C) 2020 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// The below module imports the Netty shaded binary from the Maven repository
+// since it's not trivial to build from source due to the large number of
+// external dependencies and missing build-system support.
+//
+// WARNING: The artifact version must match the source to avoid runtime issues.
+java_library_host {
+ name: "grpc-java-netty-shaded",
+ static_libs: [
+ "grpc-netty-shaded-1.16.1-jar",
+ ],
+}