Fix builds outside of make am: e15ddaf4ae am: c9a8134399

am: eae19f6269

Change-Id: I2225b6b414e5f125389583bb57f4cea5c2414070
This commit is contained in:
Colin Cross 2017-12-04 21:21:18 +00:00 committed by android-build-merger
commit 1266743566

View file

@ -475,19 +475,19 @@ func (c *config) PlatformVersionCombinedCodenames() []string {
}
func (c *config) ProductAAPTConfig() []string {
return *c.ProductVariables.AAPTConfig
return stringSlice(c.ProductVariables.AAPTConfig)
}
func (c *config) ProductAAPTPreferredConfig() string {
return *c.ProductVariables.AAPTPreferredConfig
return String(c.ProductVariables.AAPTPreferredConfig)
}
func (c *config) ProductAAPTCharacteristics() string {
return *c.ProductVariables.AAPTCharacteristics
return String(c.ProductVariables.AAPTCharacteristics)
}
func (c *config) ProductAAPTPrebuiltDPI() []string {
return *c.ProductVariables.AAPTPrebuiltDPI
return stringSlice(c.ProductVariables.AAPTPrebuiltDPI)
}
func (c *config) DefaultAppCertificateDir(ctx PathContext) SourcePath {
@ -686,3 +686,11 @@ func (c *config) CFIEnabledForPath(path string) bool {
}
return prefixInList(path, *c.ProductVariables.CFIIncludePaths)
}
func stringSlice(s *[]string) []string {
if s != nil {
return *s
} else {
return nil
}
}