Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 83) sorted by relevance

1234

/build/soong/rust/
Dandroidmk.go52 ret := android.AndroidMkEntries{
72 mod.SubAndroidMk(&ret, mod.compiler)
75 mod.SubAndroidMk(&ret, mod.sourceProvider)
79 mod.SubAndroidMk(&ret, mod.sanitize)
82 ret.SubName += mod.Properties.RustSubName
83 ret.SubName += mod.Properties.SubName
85 return []android.AndroidMkEntries{ret}
88 func (binary *binaryDecorator) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkEntries) {
89 ctx.SubAndroidMk(ret, binary.baseCompiler)
92 ret.DistFiles = android.MakeDefaultDistFiles(binary.distFile.Path())
[all …]
/build/soong/android/
Dpackaging.go123 var ret []string
125 ret = append(ret, p.properties.Deps...)
127 ret = append(ret, p.properties.Multilib.Lib32.Deps...)
129 ret = append(ret, p.properties.Multilib.Lib64.Deps...)
131 ret = append(ret, p.properties.Multilib.Common.Deps...)
136 ret = append(ret, p.properties.Deps...)
138 ret = append(ret, p.properties.Multilib.First.Deps...)
146 ret = append(ret, p.properties.Arch.Arm64.Deps...)
148 ret = append(ret, p.properties.Arch.Arm.Deps...)
150 ret = append(ret, p.properties.Arch.X86_64.Deps...)
[all …]
Dpaths.go70 ret, err := ctx.GlobWithDeps(globPattern, excludes)
74 return pathsForModuleSrcFromFullPath(ctx, ret, true)
80 ret, err := ctx.GlobWithDeps(globPattern, excludes)
84 return pathsForModuleSrcFromFullPath(ctx, ret, false)
330 ret := make(Paths, len(p))
332 ret[i] = path.RelativeToTop()
334 return ret
349 ret := make(Paths, len(paths))
351 ret[i] = PathForSource(ctx, path)
353 return ret
[all …]
Dpath_properties.go79 var ret []string
101 ret = append(ret, sv.String())
103 ret = append(ret, sv.Interface().([]string)...)
111 return ret
/build/soong/cc/config/
Dbp2build.go53 ret := "# GENERATED FOR BAZEL FROM SOONG. DO NOT EDIT.\n\n"
82 ret += fmt.Sprintf("_%s = %s\n", k, list)
83 ret += "\n"
87 ret += "constants = struct(\n"
89 ret += fmt.Sprintf(" %s = _%s,\n", k, k)
91 ret += ")"
92 return ret
109 var ret []string
141 ret = append(ret, expandVarInternal(unexpandedVar, newSeenVars)...)
144 return ret
Dclang.go238 ret := make([]string, 0, len(checks))
241 ret = append(ret, c)
243 ret = append(ret, "-"+c)
246 return ret
Darm64_linux_host.go79 ret := toolchainLinuxArm64{}
82 ret.toolchainArm64.ldflags = strings.Join([]string{
87 ret.toolchainArm64.lldflags = strings.Join([]string{
92 ret.toolchainArm64.toolchainClangCflags = strings.Join(toolchainClangCflags, " ")
93 return &ret
Dtidy.go127 ret := make([]PathBasedTidyCheck, len(in))
129 ret[len(in)-i-1] = check
131 return ret
/build/soong/scripts/
Dbuild_broken_logs.go214 ret := Branch{Logs: []ProductLog{}}
218 ret.Logs = append(ret.Logs, ParseProduct(ProductBranch{Branch: name, Name: product}))
221 ret.Settings = append(ret.Settings, buildBrokenSettings...)
222 if len(ret.Logs) > 0 {
223 for _, mtype := range ret.Logs[0].WarningModuleTypes {
227 ret.Settings = append(ret.Settings, Setting{
233 for _, mtype := range ret.Logs[0].ErrorModuleTypes {
237 ret.Settings = append(ret.Settings, Setting{
245 for _, productLog := range ret.Logs {
246 ScanProduct(ret.Settings, productLog)
[all …]
/build/soong/androidmk/parser/
Dmake_strings.go95 ret := unescape(ms.Strings[0])
97 ret += ms.Variables[i].Value(scope)
98 ret += unescape(ms.Strings[i+1])
100 return ret
108 ret := ms.Strings[0]
110 ret += ms.Variables[i].Dump()
111 ret += ms.Strings[i+1]
113 return ret
217 ret := []*MakeString{}
236 ret = append(ret, curMs)
[all …]
/build/soong/bp2build/
Dconfigurability.go88 ret := ""
92 return ret, err
95 ret += s
111 ret, err := appendSelects(archSelects, defaultSelectValue, ret)
116 ret, err = appendSelects(osSelects, defaultSelectValue, ret)
117 return ret, err
158 ret := "select({\n"
159 ret += selects
169 ret += fmt.Sprintf("%s\"%s\": %s,\n", makeIndent(indent+1), "//conditions:default", defaultValue)
172 ret += s
[all …]
Dbuild_conversion.go351 ret := map[string]string{}
364 ret[k] = v
373 return ret
397 var ret string
400 ret = fmt.Sprintf("\"%v\"", escapeString(propertyValue.String()))
402 ret = strings.Title(fmt.Sprintf("%v", propertyValue.Interface()))
404 ret = fmt.Sprintf("%v", propertyValue.Interface())
414 ret += "["
419 ret += indexedValue
420 ret += "]"
[all …]
/build/soong/cmd/diff_target_files/
Dtarget_files.go47 var ret []*ZipArtifactFile
77 ret = append(ret, f)
81 ret = append(ret, f)
85 return ret, nil
Dallow_list.go34 var ret []allowList
37 for _, x := range ret {
44 ret = append(ret, allowList{
70 return ret, nil
163 var ret []byte
175 ret = append(ret, "\n"...)
176 ret = append(ret, s.Bytes()...)
180 return ret, nil
/build/soong/ui/terminal/
Dformat.go106 var ret string
110 ret = fmt.Sprintf("FAILED: %s\n%s", targets, result.Output)
112 ret = fmt.Sprintf("FAILED: %s\n%s\n%s", targets, result.Command, result.Output)
115 ret = result.Output
118 if len(ret) > 0 && ret[len(ret)-1] != '\n' {
119 ret += "\n"
122 return ret
/build/soong/ui/build/
Dconfig.go126 ret := &configImpl{
131 ret.parallel = runtime.NumCPU() + 2
132 ret.keepGoing = 1
134 ret.totalRAM = detectTotalRAM(ctx)
136 ret.parseArgs(ctx, args)
139 if outDir, ok := ret.environ.Get("OUT_DIR"); ok {
140 ret.environ.Set("OUT_DIR", filepath.Clean(outDir))
143 if baseDir, ok := ret.environ.Get("OUT_DIR_COMMON_BASE"); ok {
150 ret.environ.Set("OUT_DIR", outDir)
153 if distDir, ok := ret.environ.Get("DIST_DIR"); ok {
[all …]
Ddumpvars.go55 var ret map[string]string
66 ret, err = dumpMakeVars(ctx, config, goals, makeVars, false, tmpDir)
68 return ret, err
71 ret = make(map[string]string)
76 ret[v] = f()
80 return ret, nil
114 ret := make(map[string]string, len(vars))
122 ret[key] = value
132 ctx.Metrics.SetMetadataMetrics(ret)
135 return ret, nil
Dexec.go43 ret := &Cmd{
53 return ret
145 ret, err := c.Output()
147 return ret
153 ret, err := c.CombinedOutput()
155 return ret
162 ret, err := c.CombinedOutput()
164 if len(ret) > 0 {
166 st.Error(string(ret))
168 st.Print(string(ret))
/build/blueprint/bootstrap/
Dglob.go134 ret := make([]byte, 0, n)
137 ret = append(ret, ' ')
139 ret = append(ret, prefix...)
140 ret = append(ret, '"')
141 ret = append(ret, s...)
142 ret = append(ret, '"')
144 return string(ret)
/build/blueprint/parser/
Dast.go66 ret := *m
67 ret.Properties = make([]*Property, len(m.Properties))
69 ret.Properties[i] = m.Properties[i].Copy()
71 return &ret
98 ret := *p
99 ret.Value = p.Value.Copy()
100 return &ret
197 ret := *x
198 ret.Args[0] = x.Args[0].Copy()
199 ret.Args[1] = x.Args[1].Copy()
[all …]
/build/soong/makedeps/
Ddeps.go45 ret := &Deps{}
61 ret.Output = outputs[0].Value(nil)
71 ret.Inputs = append(ret.Inputs, input.Value(nil))
78 return ret, nil
/build/blueprint/bootstrap/bpdoc/
Dproperties.go36 ret := *ps
37 ret.Properties = append([]Property(nil), ret.Properties...)
38 for i, prop := range ret.Properties {
39 ret.Properties[i] = prop.Clone()
42 return &ret
46 ret := *p
47 ret.Properties = append([]Property(nil), ret.Properties...)
48 for i, prop := range ret.Properties {
49 ret.Properties[i] = prop.Clone()
52 return ret
/build/make/tools/fs_config/
Dfs_config.go45 if ret := ctx.DeviceConfig().TargetFSConfigGen(); len(ret) != 0 {
46 t.paths = android.PathsForSource(ctx, ret)
/build/soong/ui/tracer/
Dtracer.go93 ret := &tracerImpl{
99 ret.startBuffer()
101 return ret
209 ret := Thread(t.nextTid)
212 t.defineThread(ret, name)
213 return ret
/build/soong/third_party/zip/
Dandroid.go98 ret := []byte{}
108 ret = append(ret, input[:4+size]...)
114 ret = append(ret, input...)
116 return ret

1234