aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadrien Zalek <hzalek@google.com>2020-06-19 09:16:35 -0700
committerHadrien Zalek <hzalek@google.com>2020-06-29 20:25:32 -0700
commit332041b0592239d4bfe59bfd316f28c02f523570 (patch)
tree877d629852b58dfce26502fb721b140fbb3d0dd8
parentb6ad5d62b22ed3f9507bfe4a765380096824b1f7 (diff)
downloadgrpc-grpc-java-332041b0592239d4bfe59bfd316f28c02f523570.tar.gz
Build the gRPC Java OkHttp library from sourceandroid-r-beta-3android-r-beta-2
Add a Soong module to build the gRPC lightweight transport library which is based on OkHttp. Test: m grpc-java-okhttp Bug: 148404241 Change-Id: Ib5b6c3e29f4e791a726130117ba53c417c25a0f0
-rw-r--r--okhttp/Android.bp34
1 files changed, 34 insertions, 0 deletions
diff --git a/okhttp/Android.bp b/okhttp/Android.bp
new file mode 100644
index 000000000..8193d9bc4
--- /dev/null
+++ b/okhttp/Android.bp
@@ -0,0 +1,34 @@
+// Copyright (C) 2018 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.
+//
+
+java_library_host {
+ name: "grpc-java-okhttp",
+ srcs: [
+ "third_party/okhttp/main/java/**/*.java",
+ "src/main/java/**/*.java",
+ ],
+ java_resource_dirs: [
+ "src/main/resources",
+ ],
+ libs: [
+ "grpc-java-core",
+ "grpc-java-core-internal",
+ "jsr305",
+ "guava",
+ ],
+ static_libs: [
+ "okhttp",
+ ],
+}