Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21999951 authored by Jingwen Chen's avatar Jingwen Chen
Browse files

bp2build: export CommonGlobalIncludes to @soong_injection.

Test: TH
Fixes: 186035856
Change-Id: Iff336427694289c8913b58674e67fc0f792ad851
parent c6d21226
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -225,8 +225,7 @@ 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{
	commonGlobalIncludes := []string{
		"system/core/include",
		"system/logging/liblog/include",
		"system/media/audio/include",
@@ -236,7 +235,9 @@ func init() {
		"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 {