cc: Make export_include_dirs configurable

Bug: 325444956
Test: m
Test: m [custom cc_library_headers with select]
Change-Id: Iebd66bb3f322276ff0f16dc7765257ea309b081f
This commit is contained in:
Aleks Todorov
2024-06-10 12:51:53 +01:00
parent 739b09eddf
commit c9becde031
3 changed files with 29 additions and 12 deletions

View File

@@ -507,7 +507,7 @@ func getIncludeDirs(ctx android.ModuleContext, m *Module) []string {
moduleDir := ctx.OtherModuleDir(m) + string(filepath.Separator)
switch decorator := m.compiler.(type) {
case *libraryDecorator:
return sliceWithPrefix(moduleDir, decorator.flagExporter.Properties.Export_include_dirs)
return sliceWithPrefix(moduleDir, decorator.flagExporter.Properties.Export_include_dirs.GetOrDefault(ctx, nil))
}
return nil
}