Home
last modified time | relevance | path

Searched refs:Environment (Results 1 – 22 of 22) sorted by relevance

/build/soong/ui/build/
Denvironment.go28 type Environment []string type
31 func OsEnvironment() *Environment {
32 env := Environment(os.Environ())
39 func (e *Environment) Get(key string) (string, bool) {
50 func (e *Environment) GetInt(key string) (int, bool) {
61 func (e *Environment) Set(key, value string) {
67 func (e *Environment) Unset(keys ...string) {
79 func (e *Environment) UnsetWithPrefix(prefix string) {
91 func (e *Environment) Allow(keys ...string) {
102 func (e *Environment) Environ() []string {
[all …]
Dninja.go69 cmd.Environment.AppendFromKati(config.KatiEnvFile())
74 if extra, ok := cmd.Environment.Get("NINJA_ARGS"); ok {
77 if extra, ok := cmd.Environment.Get("NINJA_EXTRA_ARGS"); ok {
83 if overrideText, ok := cmd.Environment.Get("NINJA_HEARTBEAT_INTERVAL"); ok {
99 if cmd.Environment.IsEnvTrue("ALLOW_NINJA_ENV") {
102 cmd.Environment.Allow(append([]string{
162 cmd.Environment.Set("DIST_DIR", config.DistDir())
163 cmd.Environment.Set("SHELL", "/bin/bash")
166 envVars := cmd.Environment.Environ()
Denvironment_test.go24 initial := &Environment{"TEST=1", "TEST2=0"}
33 initial := &Environment{"TEST2=0"}
42 initial := &Environment{}
51 initial := &Environment{"TEST=1"}
60 initial := &Environment{"TEST=1", "TEST2=0", "TEST3=2"}
76 initial := &Environment{"CLANG=/usr/bin/clang", "TEST=0"}
Dkati.go63 …unKati(ctx Context, config Config, extraSuffix string, args []string, envFunc func(*Environment)) { argument
89 if config.Environment().IsEnvTrue("EMPTY_NINJA_FILE") {
105 envFunc(cmd.Environment)
107 if _, ok := cmd.Environment.Get("BUILD_USERNAME"); !ok {
114 cmd.Environment.Set("BUILD_USERNAME", username)
117 if _, ok := cmd.Environment.Get("BUILD_HOSTNAME"); !ok {
123 cmd.Environment.Set("BUILD_HOSTNAME", hostname)
157 runKati(ctx, config, katiBuildSuffix, args, func(env *Environment) {})
208 if v, ok := config.Environment().Get("SANITIZE_TARGET"); ok {
231 runKati(ctx, config, katiPackageSuffix, args, func(env *Environment) {
[all …]
Dsoong.go42 cmd.Environment.Set("BLUEPRINTDIR", "./build/blueprint")
43 cmd.Environment.Set("BOOTSTRAP", "./build/blueprint/bootstrap.bash")
44 cmd.Environment.Set("BUILDDIR", config.SoongOutDir())
45 cmd.Environment.Set("GOROOT", "./"+filepath.Join("prebuilts/go", config.HostPrebuiltTag()))
46 cmd.Environment.Set("BLUEPRINT_LIST_FILE", filepath.Join(config.FileListDir(), "Android.bp.list"))
47 cmd.Environment.Set("NINJA_BUILDDIR", config.OutDir())
48 cmd.Environment.Set("SRCDIR", ".")
49 cmd.Environment.Set("TOPNAME", "Android.bp")
131 cmd.Environment.Set("SOONG_SANDBOX_SOONG_BUILD", "true")
Dpath.go68 origPath, _ := config.Environment().Get("PATH")
71 tmpDir, _ = config.Environment().Get("TMPDIR")
102 config.Environment().Set("PATH", myPath)
114 origPath, _ := config.Environment().Get("PATH")
184 if config.Environment().IsEnvTrue("TEMPORARY_DISABLE_PATH_RESTRICTIONS") {
208 config.Environment().Set("PATH", myPath)
Ddumpvars.go94 cmd.Environment.Set("CALLED_FROM_SETUP", "true")
96 cmd.Environment.Set("WRITE_SOONG_VARIABLES", "true")
98 cmd.Environment.Set("DUMP_MANY_VARS", strings.Join(vars, " "))
100 cmd.Environment.Set("TMPDIR", tmpDir)
264 env := config.Environment()
Dgoma.go66 if gomaDir, ok := config.Environment().Get("GOMA_DIR"); ok {
68 } else if home, ok := config.Environment().Get("HOME"); ok {
75 cmd.Environment.Set("DIST_DIR", config.DistDir())
Dexec.go32 Environment *Environment member
45 Environment: config.Environment().Copy(),
58 c.Env = c.Environment.Environ()
Dsandbox_linux.go118 cmd.Env = c.config.Environment().Environ()
210 } else if dlv, _ := c.config.Environment().Get("SOONG_DELVE"); dlv != "" {
222 env := Environment(c.Env)
Drbe.go40 if rbeDir, ok := config.Environment().Get("RBE_DIR"); ok {
42 } else if home, ok := config.Environment().Get("HOME"); ok {
Drbe_test.go56 env := Environment(tt.env)
122 env := &Environment{}
Dupload_test.go93 environ: &Environment{
149 environ: &Environment{
Dsandbox_darwin.go51 homeDir, _ := c.Environment.Get("HOME")
Dconfig.go34 environ *Environment
636 func (c *configImpl) Environment() *Environment { func
Dcleanbuild.go170 if disable, _ := config.Environment().Get("DISABLE_AUTO_INSTALLCLEAN"); disable == "true" {
Dbuild.go143 ctx.Verboseln("Environment:", config.Environment().Environ())
Dconfig_test.go162 e := Environment(tc.env)
/build/soong/cmd/multiproduct_kati/
Dmain.go208 config.Environment().Set("OUT_DIR", *outDir)
416 config.Environment().Set("OUT_DIR", outDir)
418 config.Environment().Set("EMPTY_NINJA_FILE", "true")
/build/soong/cmd/soong_ui/
Dmain.go461 if _, ok := config.Environment().Get("ONE_SHOT_MAKEFILE"); ok {
/build/
Denvsetup.sh38 Environment options:
/build/make/
Denvsetup.sh38 Environment options: