diff options
| author | Dan Willemsen <dwillemsen@google.com> | 2019-07-29 23:39:30 -0700 |
|---|---|---|
| committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2019-09-04 15:36:47 +0200 |
| commit | f9ec928be28916d21913f002eb98aa843ce1c63c (patch) | |
| tree | 218296ecba776201079883b3204c1bad836915cc /cmd/soong_ui/main.go | |
| parent | 6e203f3e3a7fdeb1ad7b1599652e411fe4e35ec4 (diff) | |
| download | build_soong-f9ec928be28916d21913f002eb98aa843ce1c63c.tar.gz build_soong-f9ec928be28916d21913f002eb98aa843ce1c63c.tar.bz2 build_soong-f9ec928be28916d21913f002eb98aa843ce1c63c.zip | |
Remove support for ONE_SHOT_MAKEFILE
Test: treehugger
Change-Id: Icdbe62bcb7bc4717228c5d974962b939d8eafee6
Diffstat (limited to 'cmd/soong_ui/main.go')
| -rw-r--r-- | cmd/soong_ui/main.go | 68 |
1 files changed, 28 insertions, 40 deletions
diff --git a/cmd/soong_ui/main.go b/cmd/soong_ui/main.go index 6bd08dd4..1659b24d 100644 --- a/cmd/soong_ui/main.go +++ b/cmd/soong_ui/main.go @@ -349,42 +349,36 @@ func buildActionConfig(ctx build.Context, args ...string) build.Config { } buildActionFlags := []struct { - name string - description string - action build.BuildAction - buildDependencies bool - set bool + name string + description string + action build.BuildAction + set bool }{{ - name: "all-modules", - description: "Build action: build from the top of the source tree.", - action: build.BUILD_MODULES, - buildDependencies: true, + name: "all-modules", + description: "Build action: build from the top of the source tree.", + action: build.BUILD_MODULES, }, { - // buildDependencies is set to true as mm is being deprecated. This is redirecting to mma build - // command behaviour. Once it has soaked for a while, the build command is deleted from here once - // it has been removed from the envsetup.sh. - name: "modules-in-a-dir-no-deps", - description: "Build action: builds all of the modules in the current directory without their dependencies.", - action: build.BUILD_MODULES_IN_A_DIRECTORY, - buildDependencies: true, + // This is redirecting to mma build command behaviour. Once it has soaked for a + // while, the build command is deleted from here once it has been removed from the + // envsetup.sh. + name: "modules-in-a-dir-no-deps", + description: "Build action: builds all of the modules in the current directory without their dependencies.", + action: build.BUILD_MODULES_IN_A_DIRECTORY, }, { - // buildDependencies is set to true as mmm is being deprecated. This is redirecting to mmma build - // command behaviour. Once it has soaked for a while, the build command is deleted from here once - // it has been removed from the envsetup.sh. - name: "modules-in-dirs-no-deps", - description: "Build action: builds all of the modules in the supplied directories without their dependencies.", - action: build.BUILD_MODULES_IN_DIRECTORIES, - buildDependencies: true, + // This is redirecting to mmma build command behaviour. Once it has soaked for a + // while, the build command is deleted from here once it has been removed from the + // envsetup.sh. + name: "modules-in-dirs-no-deps", + description: "Build action: builds all of the modules in the supplied directories without their dependencies.", + action: build.BUILD_MODULES_IN_DIRECTORIES, }, { - name: "modules-in-a-dir", - description: "Build action: builds all of the modules in the current directory and their dependencies.", - action: build.BUILD_MODULES_IN_A_DIRECTORY, - buildDependencies: true, + name: "modules-in-a-dir", + description: "Build action: builds all of the modules in the current directory and their dependencies.", + action: build.BUILD_MODULES_IN_A_DIRECTORY, }, { - name: "modules-in-dirs", - description: "Build action: builds all of the modules in the supplied directories and their dependencies.", - action: build.BUILD_MODULES_IN_DIRECTORIES, - buildDependencies: true, + name: "modules-in-dirs", + description: "Build action: builds all of the modules in the supplied directories and their dependencies.", + action: build.BUILD_MODULES_IN_DIRECTORIES, }} for i, flag := range buildActionFlags { flags.BoolVar(&buildActionFlags[i].set, flag.name, false, flag.description) @@ -404,12 +398,10 @@ func buildActionConfig(ctx build.Context, args ...string) build.Config { // is specified. buildActionCount := 0 var buildAction build.BuildAction - buildDependency := false for _, flag := range buildActionFlags { if flag.set { buildActionCount++ buildAction = flag.action - buildDependency = flag.buildDependencies } } if buildActionCount != 1 { @@ -421,7 +413,7 @@ func buildActionConfig(ctx build.Context, args ...string) build.Config { // Remove the build action flags from the args as they are not recognized by the config. args = args[numBuildActionFlags:] - return build.NewBuildActionConfig(buildAction, *dir, buildDependency, ctx, args...) + return build.NewBuildActionConfig(buildAction, *dir, ctx, args...) } func make(ctx build.Context, config build.Config, _ []string, logsDir string) { @@ -443,17 +435,13 @@ func make(ctx build.Context, config build.Config, _ []string, logsDir string) { if _, ok := config.Environment().Get("ONE_SHOT_MAKEFILE"); ok { writer := ctx.Writer - fmt.Fprintln(writer, "! The variable `ONE_SHOT_MAKEFILE` is deprecated, and will be removed shortly.") + fmt.Fprintln(writer, "! The variable `ONE_SHOT_MAKEFILE` is obsolete.") fmt.Fprintln(writer, "!") fmt.Fprintln(writer, "! If you're using `mm`, you'll need to run `source build/envsetup.sh` to update.") fmt.Fprintln(writer, "!") fmt.Fprintln(writer, "! Otherwise, either specify a module name with m, or use mma / MODULES-IN-...") fmt.Fprintln(writer, "") - select { - case <-time.After(30 * time.Second): - case <-ctx.Done(): - return - } + ctx.Fatal("done") } toBuild := build.BuildAll |
