Merge "bp2build: export CommonGlobalIncludes to @soong_injection." am: 4ca2ca5413 am: fef72cb7da

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

Change-Id: I1659c7def751bd620de8922dbdccaa2a16c3d4b4
This commit is contained in:
Jingwen Chen
2021-05-19 11:01:39 +00:00
committed by Automerger Merge Worker

View File

@@ -225,18 +225,19 @@ func init() {
// Everything in these lists is a crime against abstraction and dependency tracking.
// Do not add anything to this list.
pctx.PrefixedExistentPathsForSourcesVariable("CommonGlobalIncludes", "-I",
[]string{
"system/core/include",
"system/logging/liblog/include",
"system/media/audio/include",
"hardware/libhardware/include",
"hardware/libhardware_legacy/include",
"hardware/ril/include",
"frameworks/native/include",
"frameworks/native/opengl/include",
"frameworks/av/include",
})
commonGlobalIncludes := []string{
"system/core/include",
"system/logging/liblog/include",
"system/media/audio/include",
"hardware/libhardware/include",
"hardware/libhardware_legacy/include",
"hardware/ril/include",
"frameworks/native/include",
"frameworks/native/opengl/include",
"frameworks/av/include",
}
exportedVars.Set("CommonGlobalIncludes", commonGlobalIncludes)
pctx.PrefixedExistentPathsForSourcesVariable("CommonGlobalIncludes", "-I", commonGlobalIncludes)
pctx.SourcePathVariable("ClangDefaultBase", ClangDefaultBase)
pctx.VariableFunc("ClangBase", func(ctx android.PackageVarContext) string {