aboutsummaryrefslogtreecommitdiff
path: root/cc/library_headers.go
diff options
context:
space:
mode:
authorSam Delmerico <delmerico@google.com>2022-12-02 17:31:58 -0500
committerSam Delmerico <delmerico@google.com>2022-12-13 14:32:19 -0500
commiteddd3c0ba4135dde8bedede3bfc1ae8c00a5af80 (patch)
treef998c10e71f525261822f6ee9f6f8c20a8711e89 /cc/library_headers.go
parentb545f49f067ba5aaf274f56f225bc851b6fa6d03 (diff)
downloadsoong-eddd3c0ba4135dde8bedede3bfc1ae8c00a5af80.tar.gz
add APEX transitive dependency validation
Bug: 218419109 Test: b build //packages/modules/adb/apex:com.android.adbd Change-Id: I93b0c99d6521e419e52c63271646448f6d708c22
Diffstat (limited to 'cc/library_headers.go')
-rw-r--r--cc/library_headers.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cc/library_headers.go b/cc/library_headers.go
index 1c4f35403..4d38068fd 100644
--- a/cc/library_headers.go
+++ b/cc/library_headers.go
@@ -145,7 +145,12 @@ func libraryHeadersBp2Build(ctx android.TopDownMutatorContext, module *Module) {
Bzl_load_location: "//build/bazel/rules/cc:cc_library_headers.bzl",
}
- ctx.CreateBazelTargetModule(props, android.CommonAttributes{Name: module.Name()}, attrs)
+ tags := android.ApexAvailableTags(module)
+
+ ctx.CreateBazelTargetModule(props, android.CommonAttributes{
+ Name: module.Name(),
+ Tags: tags,
+ }, attrs)
}
// Append .contribution suffix to input labels