Rename export_headers of cc_api_variant
Rename export_headers of cc_api_variant as export_include_dirs, because the property only supports header directory. Bug: 244244438 Test: Cuttlefish vendor build succeeded Change-Id: I6e1468f51694150c70d3b0def2917f0ba74f7ea0
This commit is contained in:
@@ -172,7 +172,7 @@ func (d *apiLibraryDecorator) link(ctx ModuleContext, flags Flags, deps PathDeps
|
||||
// Copy LLDNK properties to cc_api_library module
|
||||
d.libraryDecorator.flagExporter.Properties.Export_include_dirs = append(
|
||||
d.libraryDecorator.flagExporter.Properties.Export_include_dirs,
|
||||
variantMod.exportProperties.Export_headers...)
|
||||
variantMod.exportProperties.Export_include_dirs...)
|
||||
|
||||
// Export headers as system include dirs if specified. Mostly for libc
|
||||
if Bool(variantMod.exportProperties.Export_headers_as_system) {
|
||||
@@ -203,7 +203,7 @@ func (d *apiLibraryDecorator) link(ctx ModuleContext, flags Flags, deps PathDeps
|
||||
// Copy NDK properties to cc_api_library module
|
||||
d.libraryDecorator.flagExporter.Properties.Export_include_dirs = append(
|
||||
d.libraryDecorator.flagExporter.Properties.Export_include_dirs,
|
||||
variantMod.exportProperties.Export_headers...)
|
||||
variantMod.exportProperties.Export_include_dirs...)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -362,7 +362,7 @@ type ccApiexportProperties struct {
|
||||
|
||||
type variantExporterProperties struct {
|
||||
// Header directory to export
|
||||
Export_headers []string `android:"arch_variant"`
|
||||
Export_include_dirs []string `android:"arch_variant"`
|
||||
|
||||
// Export all headers as system include
|
||||
Export_headers_as_system *bool
|
||||
|
Reference in New Issue
Block a user