Merge "Prohibit dependencies outside of uses_sdks"
This commit is contained in:
10
cc/cc.go
10
cc/cc.go
@@ -2194,6 +2194,16 @@ func (c *Module) AndroidMkWriteAdditionalDependenciesForSourceAbiDiff(w io.Write
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool {
|
||||
if depTag, ok := ctx.OtherModuleDependencyTag(dep).(dependencyTag); ok {
|
||||
if cc, ok := dep.(*Module); ok && cc.IsStubs() && depTag.shared {
|
||||
// dynamic dep to a stubs lib crosses APEX boundary
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
//
|
||||
// Defaults
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user