From e472c1dce304ca1e156e3270d104c552cc46ca2a Mon Sep 17 00:00:00 2001 From: Yu Liu Date: Wed, 26 Feb 2025 20:13:04 +0000 Subject: Make EqualModules a free function. Bug: 377723687 Test: Unit tests and compare the ninja and mk files generated. Change-Id: I7e00f09a15f2857f58bea70bcedc4798630a40bc --- apex/apex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apex/apex.go') diff --git a/apex/apex.go b/apex/apex.go index 4dd3d4cc0..0e4416b4f 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -1849,7 +1849,7 @@ func (a *apexBundle) depVisitor(vctx *visitorContext, ctx android.ModuleContext, return false } depName := ctx.OtherModuleName(child) - if ctx.EqualModules(parent, ctx.Module()) { + if android.EqualModules(parent, ctx.Module()) { switch depTag { case sharedLibTag, jniLibTag: isJniLib := depTag == jniLibTag @@ -2891,7 +2891,7 @@ func (a *apexBundle) verifyNativeImplementationLibs(ctx android.ModuleContext) { tag := ctx.OtherModuleDependencyTag(child) - if ctx.EqualModules(parent, ctx.Module()) { + if android.EqualModules(parent, ctx.Module()) { if !checkApexTag(tag) { return false } -- cgit v1.2.3-59-g8ed1b