aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Boutier <charliebout@google.com>2022-09-14 23:42:33 +0000
committerDavid Duarte <licorne@google.com>2022-09-29 12:15:42 +0000
commitc48dad394f4a9a5ff12e4050bdc93a8f2d1a9318 (patch)
tree532d063f1e10a9d29f8897b5528472a7085ba174
parent4eb697f7e406415170eeaf960b4947f51dca0f9f (diff)
downloadbt-test-interfaces-c48dad394f4a9a5ff12e4050bdc93a8f2d1a9318.tar.gz
Soong was reading the content of the symbolic link instead of the target of it. Thus instead of reading the content of protoc-gen-custom_grpc it was reading the content of protoc-gen-custom_grpc.py, which was a symbolic link to protoc-gen-custom_grpc. Bug: 245747653 Test: manual Ignore-AOSP-First: cherry-pick Change-Id: I37c0af2ffa6803ad1114fccbff4fdcf6914c54c1 Merged-In: I37c0af2ffa6803ad1114fccbff4fdcf6914c54c1
-rw-r--r--Android.bp11
l---------python/_build/protoc-gen-custom_grpc.py1
2 files changed, 9 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index 0239d6a..c15b5c7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -17,10 +17,17 @@ license {
],
}
+genrule {
+ name: "protoc-gen-mmi2grpc-python-src-interfaces",
+ srcs: ["python/_build/protoc-gen-custom_grpc"],
+ cmd: "cp $(in) $(out)",
+ out: ["protoc-gen-custom_grpc.py"],
+}
+
python_binary_host {
name: "protoc-gen-custom_grpc",
- main: "python/_build/protoc-gen-custom_grpc.py",
- srcs: ["python/_build/protoc-gen-custom_grpc.py"],
+ main: "protoc-gen-custom_grpc.py",
+ srcs: [":protoc-gen-mmi2grpc-python-src-interfaces"],
libs: ["libprotobuf-python"],
}
diff --git a/python/_build/protoc-gen-custom_grpc.py b/python/_build/protoc-gen-custom_grpc.py
deleted file mode 120000
index 88d6a75..0000000
--- a/python/_build/protoc-gen-custom_grpc.py
+++ /dev/null
@@ -1 +0,0 @@
-protoc-gen-custom_grpc \ No newline at end of file