Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 557b3d22 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Do not add bootstrap libs as providing from apex" am: 57014746 am: 40f77095

Change-Id: I46eae7087249fd87dea8e54242e6e94f3ea59c8a
parents fd74d2ad 40f77095
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2054,11 +2054,12 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
			}
			switch depTag {
			case sharedLibTag:
				if cc, ok := child.(*cc.Module); ok {
					if cc.HasStubsVariants() {
						provideNativeLibs = append(provideNativeLibs, cc.OutputFile().Path().Base())
				if c, ok := child.(*cc.Module); ok {
					// bootstrap bionic libs are treated as provided by system
					if c.HasStubsVariants() && !cc.InstallToBootstrap(c.BaseModuleName(), ctx.Config()) {
						provideNativeLibs = append(provideNativeLibs, c.OutputFile().Path().Base())
					}
					filesInfo = append(filesInfo, apexFileForNativeLibrary(ctx, cc, handleSpecialLibs))
					filesInfo = append(filesInfo, apexFileForNativeLibrary(ctx, c, handleSpecialLibs))
					return true // track transitive dependencies
				} else {
					ctx.PropertyErrorf("native_shared_libs", "%q is not a cc_library or cc_library_shared module", depName)