aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpandan Das <spandandas@google.com>2023-08-30 18:30:15 +0000
committerSpandan Das <spandandas@google.com>2023-08-30 18:37:13 +0000
commit157c01d82a7b873cf3d3a4f726a31511ecb74deb (patch)
tree5b7959f35fac0db99e59c08fe296abedf56f866c
parentaf1fed95c5a64222a4d2d5b3ccbe0448c9dc601d (diff)
downloadprotobuf-157c01d82a7b873cf3d3a4f726a31511ecb74deb.tar.gz
Add a sentinel Android.bp in external/protobuf/java
bp2build will create a proto_library target in the generated BUILD.bazel file so that we can build bazel equivalents of soong modules that use external/protobuf/java as proto.include_dir The alternative would have been to reuse the checked-in external/protobuf/java/BUILD.bazel file, but that would require addressing the following issues - Converting this project to an external workspace for android builds. (e.g. the BUILD files in this directory refer //java/util which is relative to this workspace and not relative to the primary android bazel workspace) - Forking some BUILD.bazel files (we will need export_files for the top-level external/protobuf/Android.bp files) - Importing (or creating shims of) transtive deps like rules_pkg Test: Allowlisted an internal soong module that uses .proto from this dir and verified that a proto_library is created in out/soong/workspace/external/protobuf/java/BUILD.bazel Bug: 290345526 Change-Id: Ic70763ff3583a9c43357c45baac2687c68e6d66d
-rw-r--r--java/Android.bp17
1 files changed, 17 insertions, 0 deletions
diff --git a/java/Android.bp b/java/Android.bp
new file mode 100644
index 000000000..877467e6b
--- /dev/null
+++ b/java/Android.bp
@@ -0,0 +1,17 @@
+// Copyright (C) 2023 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: ["external_protobuf_license"],
+}