Merge "Add apex stub lib to LOCAL_SHARED_LIBRARIES"
This commit is contained in:
commit
6cf8ff918a
1 changed files with 1 additions and 4 deletions
5
cc/cc.go
5
cc/cc.go
|
@ -1652,17 +1652,14 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
|||
// Export the shared libs to Make.
|
||||
switch depTag {
|
||||
case sharedDepTag, sharedExportDepTag, lateSharedDepTag:
|
||||
// Dependency to the stubs lib which is already included in an APEX
|
||||
// is not added to the androidmk dependency
|
||||
if dependentLibrary, ok := ccDep.linker.(*libraryDecorator); ok {
|
||||
if dependentLibrary.buildStubs() && android.InAnyApex(depName) {
|
||||
// Also add the dependency to the APEX(es) providing the library so that
|
||||
// Add the dependency to the APEX(es) providing the library so that
|
||||
// m <module> can trigger building the APEXes as well.
|
||||
for _, an := range android.GetApexesForModule(depName) {
|
||||
c.Properties.ApexesProvidingSharedLibs = append(
|
||||
c.Properties.ApexesProvidingSharedLibs, an)
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue