diff options
author | 2025-02-07 00:23:34 +0000 | |
---|---|---|
committer | 2025-02-13 02:09:19 +0000 | |
commit | f1806039ea089186042c01df1141633fc3cf7f5a (patch) | |
tree | d53e67139a2eff3c796a5a1c7eb75eda5b4bb698 /apex/prebuilt.go | |
parent | b58ccb466ea61f076fb71ce03a64b4ae660f7406 (diff) |
Support DepIsInSameApex using provider.
Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: I8ec5e8a3a06d078602ebaa902cacb70987f1deda
Diffstat (limited to 'apex/prebuilt.go')
-rw-r--r-- | apex/prebuilt.go | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/apex/prebuilt.go b/apex/prebuilt.go index e7d92c3a4..3daa4f81a 100644 --- a/apex/prebuilt.go +++ b/apex/prebuilt.go @@ -301,13 +301,17 @@ func (p *prebuiltCommon) prebuiltApexContentsDeps(ctx android.BottomUpMutatorCon } // Implements android.DepInInSameApex -func (p *prebuiltCommon) OutgoingDepIsInSameApex(tag blueprint.DependencyTag) bool { - _, ok := tag.(exportedDependencyTag) - return ok +func (m *prebuiltCommon) GetDepInSameApexChecker() android.DepInSameApexChecker { + return ApexPrebuiltDepInSameApexChecker{} +} + +type ApexPrebuiltDepInSameApexChecker struct { + android.BaseDepInSameApexChecker } -func (p *prebuiltCommon) IncomingDepIsInSameApex(tag blueprint.DependencyTag) bool { - return true +func (m ApexPrebuiltDepInSameApexChecker) OutgoingDepIsInSameApex(tag blueprint.DependencyTag) bool { + _, ok := tag.(exportedDependencyTag) + return ok } func (p *prebuiltCommon) checkExportedDependenciesArePrebuilts(ctx android.ModuleContext) { |