summaryrefslogtreecommitdiff
path: root/python/builder.go
diff options
context:
space:
mode:
author Nan Zhang <nanzhang@google.com> 2017-12-22 16:12:00 -0800
committer Nan Zhang <nanzhang@google.com> 2018-03-22 15:56:51 -0700
commitb8fa197878bd27a16017b238a9ed1c3a85fcaf10 (patch)
tree87ab5207c8654f294f74ef65788e8bbb5ff4c755 /python/builder.go
parent628d55d7efcb633b4c01d29fcdf9afcc6e7b5811 (diff)
Add Python protobuf support.
Python protobuf std libs will be wrapped in final binary/test par file. Bug: b/70568913 Test: manually create real examples. Change-Id: I7376ec9175f3e03d1adbd20858a7f74e826387ad
Diffstat (limited to 'python/builder.go')
-rw-r--r--python/builder.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/builder.go b/python/builder.go
index 353054d96..969f9efde 100644
--- a/python/builder.go
+++ b/python/builder.go
@@ -35,6 +35,13 @@ var (
},
"args")
+ combineZip = pctx.AndroidStaticRule("combineZip",
+ blueprint.RuleParams{
+ Command: `$mergeParCmd $out $in`,
+ CommandDeps: []string{"$mergeParCmd"},
+ },
+ )
+
hostPar = pctx.AndroidStaticRule("hostPar",
blueprint.RuleParams{
Command: `sed -e 's/%interpreter%/$interp/g' -e 's/%main%/$main/g' $template > $stub && ` +