summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Luca Farsi <lucafarsi@google.com> 2024-10-30 12:41:31 -0700
committer Luca Farsi <lucafarsi@google.com> 2024-11-06 14:17:23 -0800
commit27d3be03582d88cdd2c63a26e82106c163cf41ca (patch)
tree63fdf0d5381912223207e1665f285e1f64efc5af
parent840880cf7627d2342f78c9b25419eaf059b43799 (diff)
Add python library build rule
Add a build rule for a python library for soong-metrics so that it can be used for build_test_suites and the tests for it. Test: N/A Bug: 372973116 Change-Id: I9b092807511bf34b98e6f921cfd627b719935971
-rw-r--r--ui/metrics/metrics_proto/Android.bp16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/metrics/metrics_proto/Android.bp b/ui/metrics/metrics_proto/Android.bp
new file mode 100644
index 000000000..aae5266d0
--- /dev/null
+++ b/ui/metrics/metrics_proto/Android.bp
@@ -0,0 +1,16 @@
+python_library_host {
+ name: "soong-metrics-proto-py",
+ srcs: [
+ "metrics.proto",
+ ],
+ visibility: [
+ "//build/make/ci",
+ ],
+ libs: [
+ "libprotobuf-python",
+ ],
+ proto: {
+ include_dirs: ["external/protobuf/src"],
+ canonical_path_from_root: false,
+ },
+}