aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Desprez <jdesprez@google.com>2018-10-04 11:51:44 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-10-04 11:51:44 -0700
commit12d4d8bcf857a5c290640ccb24cbf46dbf77c53d (patch)
treec3f987e532efe459e6484cff173c13531f947181
parente52cd2ac979a9aca60858e0420143dda7a8b926c (diff)
parent78b77df0ba9b9a4ed60b20d7eb4d7959e677ad5e (diff)
downloadplatform_external_grpc-grpc-java-12d4d8bcf857a5c290640ccb24cbf46dbf77c53d.tar.gz
platform_external_grpc-grpc-java-12d4d8bcf857a5c290640ccb24cbf46dbf77c53d.tar.bz2
platform_external_grpc-grpc-java-12d4d8bcf857a5c290640ccb24cbf46dbf77c53d.zip
Start adding Soong build files for grpc-grpc-java am: af14f34438
am: 78b77df0ba Change-Id: I7f7ddbfe7739cb1196fa88ba0efead9b5dcb48bb
-rw-r--r--context/Android.bp28
-rw-r--r--core/Android.bp31
-rw-r--r--protobuf-lite/Android.bp29
-rw-r--r--stub/Android.bp29
4 files changed, 117 insertions, 0 deletions
diff --git a/context/Android.bp b/context/Android.bp
new file mode 100644
index 000000000..d7a89b819
--- /dev/null
+++ b/context/Android.bp
@@ -0,0 +1,28 @@
+// 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_static {
+ name: "grpc-java-context",
+ host_supported: true,
+ srcs: [
+ "src/main/java/**/*.java",
+ ],
+ libs: [
+ "error_prone_annotations",
+ "guava",
+ "jsr305",
+ ],
+}
diff --git a/core/Android.bp b/core/Android.bp
new file mode 100644
index 000000000..32623fefa
--- /dev/null
+++ b/core/Android.bp
@@ -0,0 +1,31 @@
+// 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_static {
+ name: "grpc-java-core",
+ host_supported: true,
+ srcs: [
+ "src/main/java/io/grpc/*.java",
+ ],
+ java_resource_dirs: [
+ "core/src/main/resources",
+ ],
+ libs: [
+ "grpc-java-context",
+ "guava",
+ "jsr305",
+ ],
+}
diff --git a/protobuf-lite/Android.bp b/protobuf-lite/Android.bp
new file mode 100644
index 000000000..64ce02d2d
--- /dev/null
+++ b/protobuf-lite/Android.bp
@@ -0,0 +1,29 @@
+// 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 {
+ name: "grpc-java-protobuf-lite",
+ host_supported: true,
+ srcs: [
+ "src/main/java/**/*.java",
+ ],
+ libs: [
+ "grpc-java-core",
+ "guava",
+ "jsr305",
+ "libprotobuf-java-lite",
+ ],
+}
diff --git a/stub/Android.bp b/stub/Android.bp
new file mode 100644
index 000000000..7d8897109
--- /dev/null
+++ b/stub/Android.bp
@@ -0,0 +1,29 @@
+// 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_static {
+ name: "grpc-java-stub",
+ host_supported: true,
+ srcs: [
+ "src/main/java/**/*.java",
+ ],
+ libs: [
+ "grpc-java-context",
+ "grpc-java-core",
+ "guava",
+ "jsr305",
+ ],
+}