diff options
author | 2022-12-02 17:31:58 -0500 | |
---|---|---|
committer | 2022-12-13 14:32:19 -0500 | |
commit | eddd3c0ba4135dde8bedede3bfc1ae8c00a5af80 (patch) | |
tree | f998c10e71f525261822f6ee9f6f8c20a8711e89 /cc/proto.go | |
parent | b545f49f067ba5aaf274f56f225bc851b6fa6d03 (diff) |
add APEX transitive dependency validation
Bug: 218419109
Test: b build //packages/modules/adb/apex:com.android.adbd
Change-Id: I93b0c99d6521e419e52c63271646448f6d708c22
Diffstat (limited to 'cc/proto.go')
-rw-r--r-- | cc/proto.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/proto.go b/cc/proto.go index 27f37cbbd..97470e5ea 100644 --- a/cc/proto.go +++ b/cc/proto.go @@ -165,7 +165,8 @@ func protoFlags(ctx ModuleContext, flags Flags, p *android.ProtoProperties) Flag } type protoAttributes struct { - Deps bazel.LabelListAttribute + Deps bazel.LabelListAttribute + Min_sdk_version *string } type bp2buildProtoDeps struct { @@ -203,6 +204,7 @@ func bp2buildProto(ctx android.Bp2buildMutatorContext, m *Module, protoSrcs baze var protoAttrs protoAttributes protoAttrs.Deps.SetValue(protoInfo.Proto_libs) + protoAttrs.Min_sdk_version = m.Properties.Min_sdk_version name := m.Name() + suffix tags := android.ApexAvailableTags(m) |