diff --git a/cc/cc_test.go b/cc/cc_test.go index 14b424562..32cffe4e0 100644 --- a/cc/cc_test.go +++ b/cc/cc_test.go @@ -116,7 +116,7 @@ func testCc(t *testing.T, bp string) *android.TestContext { "bar.c": nil, }) - _, errs := ctx.ParseBlueprintsFiles("Android.bp") + _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) failIfErrored(t, errs) _, errs = ctx.PrepareBuildActions(config) failIfErrored(t, errs) diff --git a/java/java_test.go b/java/java_test.go index 82eff1e93..e1c90ee13 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -134,7 +134,7 @@ func testJavaWithEnv(t *testing.T, bp string, env map[string]string) *android.Te "prebuilts/sdk/test_current/framework.aidl": nil, }) - _, errs := ctx.ParseBlueprintsFiles("Android.bp") + _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) fail(t, errs) _, errs = ctx.PrepareBuildActions(config) fail(t, errs) diff --git a/ui/build/soong.go b/ui/build/soong.go index d3bcf876b..6dafd273c 100644 --- a/ui/build/soong.go +++ b/ui/build/soong.go @@ -36,6 +36,7 @@ func runSoong(ctx Context, config Config) { cmd.Environment.Set("BOOTSTRAP", "./build/blueprint/bootstrap.bash") cmd.Environment.Set("BUILDDIR", config.SoongOutDir()) cmd.Environment.Set("GOROOT", filepath.Join("./prebuilts/go", config.HostPrebuiltTag())) + cmd.Environment.Set("BLUEPRINT_LIST_FILE", filepath.Join(config.FileListDir(), "Android.bp.list")) cmd.Environment.Set("NINJA_BUILDDIR", config.OutDir()) cmd.Environment.Set("SRCDIR", ".") cmd.Environment.Set("TOPNAME", "Android.bp")