Home
last modified time | relevance | path

Searched refs:strings (Results 1 – 25 of 258) sorted by relevance

1234567891011

/build/soong/cc/
Dcheck.go31 flag = strings.TrimSpace(flag)
33 if !strings.HasPrefix(flag, "-") {
35 } else if strings.HasPrefix(flag, "-I") || strings.HasPrefix(flag, "-isystem") {
46 } else if strings.Contains(flag, " ") {
47 args := strings.Split(flag, " ")
53 if strings.HasPrefix("/", path) {
55 } else if strings.HasPrefix("../", path) {
58 } else if strings.HasPrefix(flag, "-D") && strings.Contains(flag, "=") {
74 flag = strings.TrimSpace(flag)
76 if !strings.HasPrefix(flag, "-") {
[all …]
Dutil.go58 globalCommonFlags: strings.Join(in.Global.CommonFlags, " "),
59 globalAsFlags: strings.Join(in.Global.AsFlags, " "),
60 globalYasmFlags: strings.Join(in.Global.YasmFlags, " "),
61 globalCFlags: strings.Join(in.Global.CFlags, " "),
62 globalToolingCFlags: strings.Join(in.Global.ToolingCFlags, " "),
63 globalToolingCppFlags: strings.Join(in.Global.ToolingCppFlags, " "),
64 globalConlyFlags: strings.Join(in.Global.ConlyFlags, " "),
65 globalCppFlags: strings.Join(in.Global.CppFlags, " "),
66 globalLdFlags: strings.Join(in.Global.LdFlags, " "),
68 localCommonFlags: strings.Join(in.Local.CommonFlags, " "),
[all …]
Dmakevars.go51 return strings.Join(keys, " ")
60 return strings.Join(allProjects, "% ") + "%"
87 ctx.StrictSorted("CLANG_CONFIG_UNKNOWN_CFLAGS", strings.Join(config.ClangUnknownCflags, " "))
116 ctx.Strict("VENDOR_PUBLIC_LIBRARIES", strings.Join(exportedVendorPublicLibraries, " "))
119 ctx.Strict("LSDUMP_PATHS", strings.Join(lsdumpPaths, " "))
126 ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS", strings.Join(asanCflags, " "))
127 ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_LDFLAGS", strings.Join(asanLdflags, " "))
129 ctx.Strict("HWADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS", strings.Join(hwasanCflags, " "))
130 ctx.Strict("HWADDRESS_SANITIZER_GLOBAL_OPTIONS", strings.Join(hwasanGlobalOptions, ","))
132 ctx.Strict("CFI_EXTRA_CFLAGS", strings.Join(cfiCflags, " "))
[all …]
Dcmakelists.go108 dst := strings.Replace(path, cLionAggregateProjectsDirectory, cLionOutputProjectsDirectory, 1)
207 return strings.Replace(s, "@", "-", -1)
304 if strings.HasPrefix(parameter, "-I") {
307 if strings.HasPrefix(parameter, "$") {
310 if strings.HasPrefix(parameter, "-isystem") {
313 if strings.HasPrefix(parameter, "-isysroot") {
316 if strings.HasPrefix(parameter, "--sysroot") {
319 if strings.HasPrefix(parameter, "-fsanitize-blacklist") {
330 s = strings.Trim(s, " ")
334 flatParams = append(flatParams, strings.Split(s, " ")...)
[all …]
/build/soong/cc/config/
Darm_device.go176 pctx.StaticVariable("ArmLdflags", strings.Join(armLdflags, " "))
177 pctx.StaticVariable("ArmLldflags", strings.Join(armLldflags, " "))
180 …pctx.StaticVariable("ArmToolchainClangCflags", strings.Join(ClangFilterUnknownCflags(armToolchainC…
181 pctx.StaticVariable("ArmClangCflags", strings.Join(ClangFilterUnknownCflags(armCflags), " "))
182 pctx.StaticVariable("ArmClangLdflags", strings.Join(ClangFilterUnknownCflags(armLdflags), " "))
183 pctx.StaticVariable("ArmClangLldflags", strings.Join(ClangFilterUnknownCflags(armLldflags), " "))
184 pctx.StaticVariable("ArmClangCppflags", strings.Join(ClangFilterUnknownCflags(armCppflags), " "))
187 pctx.StaticVariable("ArmClangArmCflags", strings.Join(ClangFilterUnknownCflags(armArmCflags), " "))
188 …pctx.StaticVariable("ArmClangThumbCflags", strings.Join(ClangFilterUnknownCflags(armThumbCflags), …
192 strings.Join(armClangArchVariantCflags["armv7-a"], " "))
[all …]
Darm64_device.go93 pctx.StaticVariable("Arm64Ldflags", strings.Join(arm64Ldflags, " "))
94 pctx.StaticVariable("Arm64Lldflags", strings.Join(arm64Lldflags, " "))
96 pctx.StaticVariable("Arm64ClangCflags", strings.Join(ClangFilterUnknownCflags(arm64Cflags), " "))
97 pctx.StaticVariable("Arm64ClangLdflags", strings.Join(ClangFilterUnknownCflags(arm64Ldflags), " "))
98 …pctx.StaticVariable("Arm64ClangLldflags", strings.Join(ClangFilterUnknownCflags(arm64Lldflags), " …
99 …pctx.StaticVariable("Arm64ClangCppflags", strings.Join(ClangFilterUnknownCflags(arm64Cppflags), " …
101 pctx.StaticVariable("Arm64ClangArmv8ACflags", strings.Join(arm64ArchVariantCflags["armv8-a"], " "))
102 …pctx.StaticVariable("Arm64ClangArmv82ACflags", strings.Join(arm64ArchVariantCflags["armv8-2a"], " …
105 strings.Join(arm64ClangCpuVariantCflags["cortex-a53"], " "))
108 strings.Join(arm64ClangCpuVariantCflags["cortex-a55"], " "))
[all …]
Dx86_windows_host.go134 pctx.StaticVariable("WindowsClangCflags", strings.Join(windowsClangCflags, " "))
135 pctx.StaticVariable("WindowsClangLdflags", strings.Join(windowsClangLdflags, " "))
136 pctx.StaticVariable("WindowsClangLldflags", strings.Join(windowsClangLldflags, " "))
137 pctx.StaticVariable("WindowsClangCppflags", strings.Join(windowsClangCppflags, " "))
140 strings.Join(ClangFilterUnknownCflags(windowsX86Cflags), " "))
142 strings.Join(ClangFilterUnknownCflags(windowsX8664Cflags), " "))
143 pctx.StaticVariable("WindowsX86ClangLdflags", strings.Join(windowsX86ClangLdflags, " "))
144 pctx.StaticVariable("WindowsX86ClangLldflags", strings.Join(windowsX86ClangLldflags, " "))
145 pctx.StaticVariable("WindowsX8664ClangLdflags", strings.Join(windowsX8664ClangLdflags, " "))
146 pctx.StaticVariable("WindowsX8664ClangLldflags", strings.Join(windowsX8664ClangLldflags, " "))
[all …]
Dglobal.go153 pctx.StaticVariable("CommonGlobalConlyflags", strings.Join(commonGlobalConlyflags, " "))
154 pctx.StaticVariable("DeviceGlobalCppflags", strings.Join(deviceGlobalCppflags, " "))
155 pctx.StaticVariable("DeviceGlobalLdflags", strings.Join(deviceGlobalLdflags, " "))
156 pctx.StaticVariable("DeviceGlobalLldflags", strings.Join(deviceGlobalLldflags, " "))
157 pctx.StaticVariable("HostGlobalCppflags", strings.Join(hostGlobalCppflags, " "))
158 pctx.StaticVariable("HostGlobalLdflags", strings.Join(hostGlobalLdflags, " "))
159 pctx.StaticVariable("HostGlobalLldflags", strings.Join(hostGlobalLldflags, " "))
179 return strings.Join(flags, " ")
184 return strings.Join(ClangFilterUnknownCflags(deviceGlobalCflags), " ")
186 …return strings.Join(append(ClangFilterUnknownCflags(deviceGlobalCflags), "${ClangExtraTargetCflags…
[all …]
Dx86_linux_host.go122 if p := strings.Split(linuxGccVersion, "."); len(p) > 2 {
123 pctx.StaticVariable("ShortLinuxGccVersion", strings.Join(p[:2], "."))
133 pctx.StaticVariable("LinuxClangCflags", strings.Join(linuxClangCflags, " "))
134 pctx.StaticVariable("LinuxClangLdflags", strings.Join(linuxClangLdflags, " "))
135 pctx.StaticVariable("LinuxClangLldflags", strings.Join(linuxClangLldflags, " "))
138 strings.Join(ClangFilterUnknownCflags(linuxX86Cflags), " "))
140 strings.Join(ClangFilterUnknownCflags(linuxX8664Cflags), " "))
141 pctx.StaticVariable("LinuxX86ClangLdflags", strings.Join(linuxX86ClangLdflags, " "))
142 pctx.StaticVariable("LinuxX86ClangLldflags", strings.Join(linuxX86ClangLldflags, " "))
143 pctx.StaticVariable("LinuxX8664ClangLdflags", strings.Join(linuxX8664ClangLdflags, " "))
[all …]
Dx86_device.go115 pctx.StaticVariable("X86Ldflags", strings.Join(x86Ldflags, " "))
116 pctx.StaticVariable("X86Lldflags", strings.Join(x86Lldflags, " "))
119 pctx.StaticVariable("X86ClangCflags", strings.Join(ClangFilterUnknownCflags(x86ClangCflags), " "))
120 pctx.StaticVariable("X86ClangLdflags", strings.Join(ClangFilterUnknownCflags(x86Ldflags), " "))
121 pctx.StaticVariable("X86ClangLldflags", strings.Join(ClangFilterUnknownCflags(x86Lldflags), " "))
122 pctx.StaticVariable("X86ClangCppflags", strings.Join(ClangFilterUnknownCflags(x86Cppflags), " "))
132 strings.Join(ClangFilterUnknownCflags(cflags), " "))
208 toolchainClangCflags: strings.Join(toolchainClangCflags, " "),
Dx86_64_device.go104 pctx.StaticVariable("X86_64Ldflags", strings.Join(x86_64Ldflags, " "))
105 pctx.StaticVariable("X86_64Lldflags", strings.Join(x86_64Lldflags, " "))
108 pctx.StaticVariable("X86_64ClangCflags", strings.Join(ClangFilterUnknownCflags(x86_64Cflags), " "))
109 …pctx.StaticVariable("X86_64ClangLdflags", strings.Join(ClangFilterUnknownCflags(x86_64Ldflags), " …
110 …pctx.StaticVariable("X86_64ClangLldflags", strings.Join(ClangFilterUnknownCflags(x86_64Lldflags), …
111 …pctx.StaticVariable("X86_64ClangCppflags", strings.Join(ClangFilterUnknownCflags(x86_64Cppflags), …
121 strings.Join(ClangFilterUnknownCflags(cflags), " "))
197 toolchainClangCflags: strings.Join(toolchainClangCflags, " "),
Dclang.go92 pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{
133 pctx.StaticVariable("ClangExtraCppflags", strings.Join([]string{
144 pctx.StaticVariable("ClangExtraTargetCflags", strings.Join([]string{
148 pctx.StaticVariable("ClangExtraNoOverrideCflags", strings.Join([]string{
183 pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{
/build/blueprint/
Dninja_strings.go26 defaultEscaper = strings.NewReplacer(
28 inputEscaper = strings.NewReplacer(
31 outputEscaper = strings.NewReplacer(
39 ValueWithEscaper(pkgNames map[*packageContext]string, escaper *strings.Replacer) string
45 strings []string member
71 if len(ps.result.variables) == len(ps.result.strings) {
73 ps.result.strings = append(ps.result.strings, "")
82 if len(ps.result.strings) != len(ps.result.variables) {
85 ps.result.strings = append(ps.result.strings, ps.pendingStr+s)
96 n := strings.Count(str, "$")
[all …]
/build/soong/rust/config/
Dlints.go80 return strings.Join(defaultRustcLints, " ")
86 return strings.Join(defaultClippyLints, " ")
94 return strings.Join(defaultRustcVendorLints, " ")
100 return strings.Join(defaultClippyVendorLints, " ")
102 pctx.StaticVariable("RustAllowAllLints", strings.Join(allowAllLints, " "))
135 if strings.HasPrefix(dir, pathCheck.PathPrefix) {
145 if strings.HasPrefix(dir, pathCheck.PathPrefix) {
Dx86_linux_host.go39 pctx.StaticVariable("LinuxToolchainRustFlags", strings.Join(LinuxRustFlags, " "))
40 pctx.StaticVariable("LinuxToolchainLinkFlags", strings.Join(LinuxRustLinkFlags, " "))
41 pctx.StaticVariable("LinuxToolchainX86RustFlags", strings.Join(linuxX86Rustflags, " "))
42 pctx.StaticVariable("LinuxToolchainX86LinkFlags", strings.Join(linuxX86Linkflags, " "))
43 pctx.StaticVariable("LinuxToolchainX8664RustFlags", strings.Join(linuxX8664Rustflags, " "))
44 pctx.StaticVariable("LinuxToolchainX8664LinkFlags", strings.Join(linuxX8664Linkflags, " "))
/build/soong/remoteexec/
Dremoteexec.go122 args += " --labels=" + strings.Join(kvs, ",")
136 args += " --platform=\"" + strings.Join(platform, ",") + "\""
146 args += " --inputs=" + strings.Join(r.Inputs, ",")
154 args += " --output_files=" + strings.Join(r.OutputFiles, ",")
158 args += " --output_directories=" + strings.Join(r.OutputDirectories, ",")
162 args += " --toolchain_inputs=" + strings.Join(r.ToolchainInputs, ",")
174 ruleParams.Command = strings.ReplaceAll(ruleParams.Command, "$reTemplate", "")
175 ruleParamsRE.Command = strings.ReplaceAll(ruleParamsRE.Command, "$reTemplate", reParams.Template())
189 ruleParams.Command = strings.ReplaceAll(ruleParams.Command, k, "")
190 ruleParamsRE.Command = strings.ReplaceAll(ruleParamsRE.Command, k, v.Template())
/build/soong/java/
Djacoco.go95 specs += strings.Join(includes, " ")
115 recursiveWildcard := strings.HasSuffix(filter, "**")
118 nonRecursiveWildcard = strings.HasSuffix(filter, "*")
119 filter = strings.TrimSuffix(filter, "*")
121 filter = strings.TrimSuffix(filter, "**")
124 if recursiveWildcard && !(strings.HasSuffix(filter, ".") || filter == "") {
128 if strings.ContainsRune(filter, '*') {
132 spec := strings.Replace(filter, ".", "/", -1)
Dsupport_libraries.go34 case strings.HasPrefix(dir, "prebuilts/sdk/current/extras"),
46 if strings.HasSuffix(name, "-nodeps") {
61 ctx.Strict("SUPPORT_LIBRARIES_AARS", strings.Join(supportAars, " "))
62 ctx.Strict("SUPPORT_LIBRARIES_JARS", strings.Join(supportJars, " "))
/build/soong/android/
Dutil.go127 if strings.HasPrefix(s, prefix) {
137 if strings.HasPrefix(s, prefix) {
147 if strings.HasSuffix(s, suffix) {
276 if funcName == "init" || strings.HasPrefix(funcName, "init·") ||
277 strings.HasPrefix(funcName, "init.") {
307 if strings.Contains(v, "system_") {
308 return strings.Replace(v, "system_", "", 1)
315 ps := strings.SplitN(pat, "%", 2)
325 trimed = strings.TrimPrefix(in, ps[0])
332 trimed = strings.TrimSuffix(in, ps[1])
[all …]
/build/soong/rust/
Dcoverage_test.go64 if !strings.Contains(fizzCov.Args["rustcFlags"], flag) {
67 if !strings.Contains(libfooCov.Args["rustcFlags"], flag) {
70 if strings.Contains(buzzNoCov.Args["rustcFlags"], flag) {
73 if strings.Contains(libbarNoCov.Args["rustcFlags"], flag) {
83 if !strings.Contains(fizzCov.Args["linkFlags"], flag) {
86 if !strings.Contains(libfooCov.Args["linkFlags"], flag) {
89 if strings.Contains(buzzNoCov.Args["linkFlags"], flag) {
92 if strings.Contains(libbarNoCov.Args["linkFlags"], flag) {
184 if !strings.Contains(fizz.Args["linkFlags"], "libprofile-extras.a") {
Dbinary_test.go41 if strings.Contains(flags, "--test") {
44 if !strings.Contains(flags, "prefer-dynamic") {
49 if strings.Contains(flags, "--test") {
52 if strings.Contains(flags, "prefer-dynamic") {
Dbindgen_test.go44 if !strings.Contains(libbindgen.Args["flags"], "--bindgen-flag") {
47 if !strings.Contains(libbindgen.Args["cflags"], "--clang-flag") {
50 if !strings.Contains(libbindgen.Args["cflags"], "-Ishared_include") {
53 if !strings.Contains(libbindgen.Args["cflags"], "-Istatic_include") {
Dcompiler_test.go37 if !strings.Contains(libfooDylib.Args["rustcFlags"], "cfg 'feature=\"fizz\"'") ||
38 !strings.Contains(libfooDylib.Args["rustcFlags"], "cfg 'feature=\"buzz\"'") {
97 if !strings.HasSuffix(install_path_lib64, "system/lib64/libfoo.dylib.so") {
100 if !strings.HasSuffix(install_path_lib32, "system/lib/libfoo.dylib.so") {
103 if !strings.HasSuffix(install_path_bin, "system/bin/fizzbuzz") {
/build/soong/apex/
Dandroidmk.go54 if strings.HasPrefix(apexName, "com.android.gki.") && apexType != flattenedApex {
122 fmt.Fprintln(w, "LOCAL_MODULE_SYMLINKS :=", strings.Join(fi.symlinks, " "))
133 fmt.Fprintln(w, "LOCAL_TEST_DATA :=", strings.Join(cc.AndroidMkDataPaths(newDataPaths), " "))
137 fmt.Fprintln(w, "LOCAL_NOTICE_FILE :=", strings.Join(fi.module.NoticeFiles().Strings(), " "))
186 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", strings.TrimSuffix(fi.Stem(), ".jar"))
202 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", strings.TrimSuffix(fi.Stem(), ".apk"))
205 …fmt.Fprintln(w, "LOCAL_PREBUILT_COVERAGE_ARCHIVE :=", strings.Join(jniCoverageOutputs.Strings(), "…
243 fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES :=", strings.Join(patterns, " "))
251 fmt.Fprintln(w, "LOCAL_POST_INSTALL_CMD :=", strings.Join(postInstallCommands, " && "))
277 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES +=", strings.Join(required, " "))
[all …]
/build/soong/cmd/diff_target_files/
Dtarget_files.go57 if strings.HasPrefix(f.Name, p) {
58 f.Name = strings.ToLower(p) + strings.TrimPrefix(f.Name, p)
63 if strings.HasPrefix(f.Name, filter) {

1234567891011