diff options
author | Colin Cross <ccross@android.com> | 2019-03-28 19:30:56 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-04-02 16:38:55 +0000 |
commit | fe17f6f0e825b42542b4527c19cdd7b520ca5133 (patch) | |
tree | 496b65489ee342024f22129edd4ad98e21ac1f33 /cc/compiler.go | |
parent | 19878da6a062ef474a1c905f48b1efb986862050 (diff) | |
download | build_soong-fe17f6f0e825b42542b4527c19cdd7b520ca5133.tar.gz build_soong-fe17f6f0e825b42542b4527c19cdd7b520ca5133.tar.bz2 build_soong-fe17f6f0e825b42542b4527c19cdd7b520ca5133.zip |
Add support for protoc plugins
Add a proto.plugin property to allow specifying a custom protoc
plugin to generate the code.
Fixes: 70706119
Test: m am StreamingProtoTest
Change-Id: I1ecdd346284b42bbcc8297019d98d2cd564eb94c
Diffstat (limited to 'cc/compiler.go')
-rw-r--r-- | cc/compiler.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/compiler.go b/cc/compiler.go index fe46a3c3..f9af4d82 100644 --- a/cc/compiler.go +++ b/cc/compiler.go @@ -221,6 +221,7 @@ func (compiler *baseCompiler) compilerDeps(ctx DepsContext, deps Deps) Deps { deps.GeneratedSources = append(deps.GeneratedSources, compiler.Properties.Generated_sources...) deps.GeneratedHeaders = append(deps.GeneratedHeaders, compiler.Properties.Generated_headers...) + android.ProtoDeps(ctx, &compiler.Proto) if compiler.hasSrcExt(".proto") { deps = protoDeps(ctx, deps, &compiler.Proto, Bool(compiler.Properties.Proto.Static)) } |