Merge "Pass results of Finder into Blueprint"

This commit is contained in:
Jeff Gaston 2017-11-09 03:07:36 +00:00 committed by Gerrit Code Review
commit 99a5635733
3 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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")