From ae88703df55dcd721ccd5c3cca4c02c7b541ca9d Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 23 Oct 2017 17:16:14 -0700 Subject: Move ModuleContext.ModuleBuild to ModuleContext.Build Now that android.ModuleContext does not include blueprint.ModuleContext we can rename android.ModuleContext.ModuleBuild to android.ModuleContext.Build without colliding with blueprint.ModuleContext.Build. Leave ModuleBuild as a wrapper around Build for now to avoid having to update all the users outside build/soong simultaneously. Test: m checkbuild Change-Id: I18eb8cc04faf002049a11d9aac97e9732ff5d638 --- python/builder.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/builder.go') diff --git a/python/builder.go b/python/builder.go index a459d3df5..f19435435 100644 --- a/python/builder.go +++ b/python/builder.go @@ -87,7 +87,7 @@ func registerBuildActionForModuleFileList(ctx android.ModuleContext, content = append(content, file.String()) } - ctx.ModuleBuild(pctx, android.ModuleBuildParams{ + ctx.Build(pctx, android.BuildParams{ Rule: android.WriteFile, Description: "generate " + fileList.Rel(), Output: fileList, @@ -140,7 +140,7 @@ func registerBuildActionForParFile(ctx android.ModuleContext, embedded_launcher // added stub file to the soong_zip args. parArgs = append(parArgs, `-P "" `+`-C `+strings.TrimSuffix(stub, mainFileName)+` -f `+stub) - ctx.ModuleBuild(pctx, android.ModuleBuildParams{ + ctx.Build(pctx, android.BuildParams{ Rule: host_par, Description: "host python archive", Output: binFile, @@ -169,7 +169,7 @@ func registerBuildActionForParFile(ctx android.ModuleContext, embedded_launcher parArgs = append(parArgs, `-P "" `+`-C `+fmt.Sprintf( "%q", strings.TrimSuffix(entryPoint, entryPointFile))+` -f `+entryPoint) - ctx.ModuleBuild(pctx, android.ModuleBuildParams{ + ctx.Build(pctx, android.BuildParams{ Rule: embedded_par, Description: "embedded python archive", Output: binFile, -- cgit v1.2.3-59-g8ed1b