Merge "Apply EnforceRROExemptedTargets in Soong" am: 4726b9c8a0
Change-Id: I8eb75b995bf47473c09059bf230e6e1821d7066a
This commit is contained in:
@@ -872,6 +872,13 @@ func (c *config) ArtUseReadBarrier() bool {
|
||||
|
||||
func (c *config) EnforceRROForModule(name string) bool {
|
||||
enforceList := c.productVariables.EnforceRROTargets
|
||||
// TODO(b/150820813) Some modules depend on static overlay, remove this after eliminating the dependency.
|
||||
exemptedList := c.productVariables.EnforceRROExemptedTargets
|
||||
if exemptedList != nil {
|
||||
if InList(name, exemptedList) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
if enforceList != nil {
|
||||
if InList("*", enforceList) {
|
||||
return true
|
||||
|
@@ -188,9 +188,11 @@ type productVariables struct {
|
||||
CrossHostArch *string `json:",omitempty"`
|
||||
CrossHostSecondaryArch *string `json:",omitempty"`
|
||||
|
||||
DeviceResourceOverlays []string `json:",omitempty"`
|
||||
ProductResourceOverlays []string `json:",omitempty"`
|
||||
EnforceRROTargets []string `json:",omitempty"`
|
||||
DeviceResourceOverlays []string `json:",omitempty"`
|
||||
ProductResourceOverlays []string `json:",omitempty"`
|
||||
EnforceRROTargets []string `json:",omitempty"`
|
||||
// TODO(b/150820813) Some modules depend on static overlay, remove this after eliminating the dependency.
|
||||
EnforceRROExemptedTargets []string `json:",omitempty"`
|
||||
EnforceRROExcludedOverlays []string `json:",omitempty"`
|
||||
|
||||
AAPTCharacteristics *string `json:",omitempty"`
|
||||
|
Reference in New Issue
Block a user