aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryike <yikezh@google.com>2024-04-26 22:11:02 +0000
committeryike <yikezh@google.com>2024-04-26 22:11:02 +0000
commit4c36890ed9652e25946c94b67f910b77bc01b359 (patch)
tree32d95a7fa1642f393cfde0e48ddadbe7a89c39c7
parentcb1b006b822d0a38941fdc06121a4e2bf6a3f442 (diff)
downloadbazelbuild-remote-apis-4c36890ed9652e25946c94b67f910b77bc01b359.tar.gz
Add Android.bp for remote_execution.proto
Downstream tooling wants to use remote_execution.proto to facilitate caching. Test: m remote-execution-java-proto remote-execution-java-grpc Bug: 335918437 Change-Id: Ie872713cd575b31d023b01dd7ec806cd0c2f935c
-rw-r--r--build/bazel/remote/execution/v2/Android.bp63
-rw-r--r--build/bazel/semver/Android.bp34
2 files changed, 97 insertions, 0 deletions
diff --git a/build/bazel/remote/execution/v2/Android.bp b/build/bazel/remote/execution/v2/Android.bp
new file mode 100644
index 0000000..5d6f900
--- /dev/null
+++ b/build/bazel/remote/execution/v2/Android.bp
@@ -0,0 +1,63 @@
+// Copyright 2024 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.
+
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+java_library_host {
+ name: "remote-execution-java-proto",
+ srcs: [
+ "remote_execution.proto",
+ ],
+ static_libs: [
+ "googleapis-annotations-java-proto",
+ "googleapis-operations-java-proto",
+ "googleapis-status-java-proto",
+ "semver-java-proto",
+ ],
+ libs: [
+ "libprotobuf-java-full",
+ ],
+ proto: {
+ include_dirs: [
+ "external/bazelbuild-remote-apis/",
+ "external/googleapis",
+ "external/protobuf/src",
+ ],
+ type: "full",
+ },
+}
+
+java_library_host {
+ name: "remote-execution-java-grpc",
+ srcs: [
+ "remote_execution.proto",
+ ],
+ proto: {
+ include_dirs: [
+ "external/bazelbuild-remote-apis/",
+ "external/googleapis",
+ "external/protobuf/src",
+ ],
+ plugin: "grpc-java-plugin",
+ },
+ libs: [
+ "grpc-java",
+ "guava",
+ "javax-annotation-api-prebuilt-host-jar",
+ "libprotobuf-java-full",
+ "remote-execution-java-proto",
+ ],
+}
diff --git a/build/bazel/semver/Android.bp b/build/bazel/semver/Android.bp
new file mode 100644
index 0000000..2302503
--- /dev/null
+++ b/build/bazel/semver/Android.bp
@@ -0,0 +1,34 @@
+// Copyright 2024 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.
+
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+java_library_host {
+ name: "semver-java-proto",
+ srcs: [
+ "semver.proto",
+ ],
+ libs: [
+ "libprotobuf-java-full",
+ ],
+ proto: {
+ include_dirs: [
+ "external/protobuf/src",
+ "external/bazelbuild-remote-apis/",
+ ],
+ type: "full",
+ },
+}