summaryrefslogtreecommitdiff
path: root/android/module.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2024-11-05 18:22:20 +0000
committer Yu Liu <yudiliu@google.com> 2024-11-06 01:06:24 +0000
commitec7043df13f376cc52c3c35f42d9955f4f11c3d6 (patch)
tree28acd1cae0d7ec53f2f3f483b312e264807d0de5 /android/module.go
parent42f9ff8606680079489e8812095a5acc86cdd2fd (diff)
Collect kythe, obj and tidy files using ModuleProxy.
Bug: 358427516 Test: Manually compare the generated mk and ninja files. Change-Id: Ibee605372b1fae48ee9fbd8872b4ea0f6b1d5a7d
Diffstat (limited to 'android/module.go')
-rw-r--r--android/module.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go
index a918d6ea3..72c8b94c2 100644
--- a/android/module.go
+++ b/android/module.go
@@ -1822,6 +1822,8 @@ type CommonPropertiesProviderData struct {
Enabled bool
// Whether the module has been replaced by a prebuilt
ReplacedByPrebuilt bool
+ // The Target of artifacts that this module variant is responsible for creating.
+ CompileTarget Target
}
var CommonPropertiesProviderKey = blueprint.NewProvider[CommonPropertiesProviderData]()
@@ -2086,6 +2088,7 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext)
commonData := CommonPropertiesProviderData{
ReplacedByPrebuilt: m.commonProperties.ReplacedByPrebuilt,
+ CompileTarget: m.commonProperties.CompileTarget,
}
if m.commonProperties.ForcedDisabled {
commonData.Enabled = false