Make include_dirs and local_include_dirs configurable
Requested by a user. Fixes: 377540448 Test: m nothing --no-skip-soong-tests Change-Id: I59e49c68e1d47ee0914677714cedcddf624903e6
This commit is contained in:
@@ -250,7 +250,7 @@ func (b *bindgenDecorator) GenerateSource(ctx ModuleContext, deps PathDeps) andr
|
||||
|
||||
// Module defined clang flags and include paths
|
||||
cflags = append(cflags, esc(cflagsProp)...)
|
||||
for _, include := range b.ClangProperties.Local_include_dirs {
|
||||
for _, include := range b.ClangProperties.Local_include_dirs.GetOrDefault(ctx, nil) {
|
||||
cflags = append(cflags, "-I"+android.PathForModuleSrc(ctx, include).String())
|
||||
implicits = append(implicits, android.PathForModuleSrc(ctx, include))
|
||||
}
|
||||
|
Reference in New Issue
Block a user