Merge "Use correct includes for mixed build gen headers" am: 012ae1f4e0 am: 349bd6a36b am: 5002f7beba

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1660760

Change-Id: I73b863ce8cc06cccf8efffb6cd4893db8cc8cb6a
This commit is contained in:
Christopher Parsons 2021-04-05 20:53:08 +00:00 committed by Automerger Merge Worker
commit 1d1d206874
2 changed files with 5 additions and 1 deletions

View File

@ -174,7 +174,6 @@ var (
"liblinker_debuggerd_stub", // ruperts@, cc_library_static, depends on //system/libbase
"libbionic_tests_headers_posix", // ruperts@, cc_library_static
"libc_dns", // ruperts@, cc_library_static
"generated_android_ids", // cparsons@, genrule
"note_memtag_heap_async", // cparsons@, cc_library_static
"note_memtag_heap_sync", // cparsons@, cc_library_static
}

View File

@ -229,11 +229,16 @@ func (c *Module) generateBazelBuildActions(ctx android.ModuleContext, label stri
filePaths, ok := bazelCtx.GetOutputFiles(label, ctx.Arch().ArchType)
if ok {
var bazelOutputFiles android.Paths
exportIncludeDirs := map[string]bool{}
for _, bazelOutputFile := range filePaths {
bazelOutputFiles = append(bazelOutputFiles, android.PathForBazelOut(ctx, bazelOutputFile))
exportIncludeDirs[filepath.Dir(bazelOutputFile)] = true
}
c.outputFiles = bazelOutputFiles
c.outputDeps = bazelOutputFiles
for includePath, _ := range exportIncludeDirs {
c.exportedIncludeDirs = append(c.exportedIncludeDirs, android.PathForBazelOut(ctx, includePath))
}
}
return ok
}