aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-03-28 14:45:07 -0700
committerColin Cross <ccross@android.com>2019-04-02 16:38:47 +0000
commit19878da6a062ef474a1c905f48b1efb986862050 (patch)
tree389a8ac830a6bc2cee797f0daa70677450b98957 /Android.bp
parent6e1c3faed54db8db15ad46cbcb220f334fdff5f2 (diff)
downloadbuild_soong-19878da6a062ef474a1c905f48b1efb986862050.tar.gz
build_soong-19878da6a062ef474a1c905f48b1efb986862050.tar.bz2
build_soong-19878da6a062ef474a1c905f48b1efb986862050.zip
Move proto compilation to RuleBuilder
Using blueprint.Rule for protoc commands was causing code duplication because there was no good way to run the same protoc for cc, java and python but then run custom source packaging steps for java and python. Move most of the code into a common function that returns a RuleBuilder, and then let java and python add their own commands at the end of the rule. Bug: 70706119 Test: All Soong tests Test: m checkbuild Change-Id: Ic692136775d273bcc4f4de99620ab4878667c83a
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 7465341b..a4e6e7d7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -193,6 +193,7 @@ bootstrap_go_package {
"cc/gen_test.go",
"cc/genrule_test.go",
"cc/library_test.go",
+ "cc/proto_test.go",
"cc/test_data_test.go",
"cc/util_test.go",
],