aboutsummaryrefslogtreecommitdiffstats
path: root/cc/cc.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-10-20 16:11:43 -0700
committerColin Cross <ccross@android.com>2016-10-27 15:28:09 -0700
commit0c461f1f6e2a1663b426eec2247e5a26f2822970 (patch)
tree394e04c7672fc47f46e40d9447717aa381b3b541 /cc/cc.go
parent4f6fc9c1d81687914cc77bf06b10af8022f64198 (diff)
downloadbuild_soong-0c461f1f6e2a1663b426eec2247e5a26f2822970.tar.gz
build_soong-0c461f1f6e2a1663b426eec2247e5a26f2822970.tar.bz2
build_soong-0c461f1f6e2a1663b426eec2247e5a26f2822970.zip
Add support for .proto files
.proto files are translated to .pb.cc and .pb.h files, which are then compiled normally. Bug: 32286026 Test: mmma -j system/extras/perfprofd Change-Id: I538071424d667aacf35b4b8bfebe217f5f092726
Diffstat (limited to 'cc/cc.go')
-rw-r--r--cc/cc.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 529a3297..33c9611c 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -97,6 +97,7 @@ type Flags struct {
ConlyFlags []string // Flags that apply to C source files
CppFlags []string // Flags that apply to C++ source files
YaccFlags []string // Flags that apply to Yacc source files
+ protoFlags []string // Flags that apply to proto source files
LdFlags []string // Flags that apply to linker command lines
libFlags []string // Flags to add libraries early to the link order