/build/soong/cc/ |
D | check.go | 31 flag = strings.TrimSpace(flag) 33 if !strings.HasPrefix(flag, "-") { 35 } else if strings.HasPrefix(flag, "-I") || strings.HasPrefix(flag, "-isystem") { 41 } else if strings.Contains(flag, " ") { 42 args := strings.Split(flag, " ") 48 if strings.HasPrefix("/", path) { 50 } else if strings.HasPrefix("../", path) { 53 } else if strings.HasPrefix(flag, "-D") && strings.Contains(flag, "=") { 69 flag = strings.TrimSpace(flag) 71 if !strings.HasPrefix(flag, "-") { [all …]
|
D | makevars.go | 51 return strings.Join(keys, " ") 60 return strings.Join(allProjects, "% ") + "%" 79 ctx.StrictSorted("CLANG_CONFIG_UNKNOWN_CFLAGS", strings.Join(config.ClangUnknownCflags, " ")) 92 ctx.Strict("NDK_PREBUILT_SHARED_LIBRARIES", strings.Join(ndkPrebuiltSharedLibs, " ")) 96 ctx.Strict("VNDK_CORE_LIBRARIES", strings.Join(vndkCoreLibraries, " ")) 97 ctx.Strict("VNDK_SAMEPROCESS_LIBRARIES", strings.Join(vndkSpLibraries, " ")) 98 ctx.Strict("LLNDK_LIBRARIES", strings.Join(llndkLibraries, " ")) 99 ctx.Strict("VNDK_PRIVATE_LIBRARIES", strings.Join(vndkPrivateLibraries, " ")) 100 ctx.Strict("VNDK_USING_CORE_VARIANT_LIBRARIES", strings.Join(vndkUsingCoreVariantLibraries, " ")) 115 ctx.Strict("VENDOR_PUBLIC_LIBRARIES", strings.Join(exportedVendorPublicLibraries, " ")) [all …]
|
D | util.go | 62 globalFlags: strings.Join(in.GlobalFlags, " "), 63 arFlags: strings.Join(in.ArFlags, " "), 64 asFlags: strings.Join(in.AsFlags, " "), 65 cFlags: strings.Join(in.CFlags, " "), 66 toolingCFlags: strings.Join(in.ToolingCFlags, " "), 67 toolingCppFlags: strings.Join(in.ToolingCppFlags, " "), 68 conlyFlags: strings.Join(in.ConlyFlags, " "), 69 cppFlags: strings.Join(in.CppFlags, " "), 70 yaccFlags: strings.Join(in.YaccFlags, " "), 71 aidlFlags: strings.Join(in.aidlFlags, " "), [all …]
|
D | cmakelists.go | 108 dst := strings.Replace(path, cLionAggregateProjectsDirectory, cLionOutputProjectsDirectory, 1) 191 return strings.Replace(s, "@", "-", -1) 288 if strings.HasPrefix(parameter, "-I") { 291 if strings.HasPrefix(parameter, "$") { 294 if strings.HasPrefix(parameter, "-isystem") { 297 if strings.HasPrefix(parameter, "-isysroot") { 300 if strings.HasPrefix(parameter, "--sysroot") { 303 if strings.HasPrefix(parameter, "-fsanitize-blacklist") { 325 append(compilerParameters.headerSearchPath, strings.TrimPrefix(param, "-I")) 332 paramsFromVar := parseCompilerParameters(strings.Split(evaluated, " "), ctx, f) [all …]
|
/build/soong/cc/config/ |
D | arm_device.go | 176 pctx.StaticVariable("ArmLdflags", strings.Join(armLdflags, " ")) 177 pctx.StaticVariable("ArmLldflags", strings.Join(armLldflags, " ")) 181 …pctx.StaticVariable("ArmToolchainClangCflags", strings.Join(ClangFilterUnknownCflags(armToolchainC… 182 pctx.StaticVariable("ArmClangCflags", strings.Join(ClangFilterUnknownCflags(armCflags), " ")) 183 pctx.StaticVariable("ArmClangLdflags", strings.Join(ClangFilterUnknownCflags(armLdflags), " ")) 184 pctx.StaticVariable("ArmClangLldflags", strings.Join(ClangFilterUnknownCflags(armLldflags), " ")) 185 pctx.StaticVariable("ArmClangCppflags", strings.Join(ClangFilterUnknownCflags(armCppflags), " ")) 188 pctx.StaticVariable("ArmClangArmCflags", strings.Join(ClangFilterUnknownCflags(armArmCflags), " ")) 189 …pctx.StaticVariable("ArmClangThumbCflags", strings.Join(ClangFilterUnknownCflags(armThumbCflags), … 193 strings.Join(armClangArchVariantCflags["armv7-a"], " ")) [all …]
|
D | arm64_device.go | 94 pctx.StaticVariable("Arm64Ldflags", strings.Join(arm64Ldflags, " ")) 95 pctx.StaticVariable("Arm64Lldflags", strings.Join(arm64Lldflags, " ")) 98 pctx.StaticVariable("Arm64ClangCflags", strings.Join(ClangFilterUnknownCflags(arm64Cflags), " ")) 99 pctx.StaticVariable("Arm64ClangLdflags", strings.Join(ClangFilterUnknownCflags(arm64Ldflags), " ")) 100 …pctx.StaticVariable("Arm64ClangLldflags", strings.Join(ClangFilterUnknownCflags(arm64Lldflags), " … 101 …pctx.StaticVariable("Arm64ClangCppflags", strings.Join(ClangFilterUnknownCflags(arm64Cppflags), " … 103 pctx.StaticVariable("Arm64ClangArmv8ACflags", strings.Join(arm64ArchVariantCflags["armv8-a"], " ")) 104 …pctx.StaticVariable("Arm64ClangArmv82ACflags", strings.Join(arm64ArchVariantCflags["armv8-2a"], " … 107 strings.Join(arm64ClangCpuVariantCflags["cortex-a53"], " ")) 110 strings.Join(arm64ClangCpuVariantCflags["cortex-a55"], " ")) [all …]
|
D | global.go | 145 pctx.StaticVariable("CommonGlobalConlyflags", strings.Join(commonGlobalConlyflags, " ")) 146 pctx.StaticVariable("DeviceGlobalCppflags", strings.Join(deviceGlobalCppflags, " ")) 147 pctx.StaticVariable("DeviceGlobalLdflags", strings.Join(deviceGlobalLdflags, " ")) 148 pctx.StaticVariable("DeviceGlobalLldflags", strings.Join(deviceGlobalLldflags, " ")) 149 pctx.StaticVariable("HostGlobalCppflags", strings.Join(hostGlobalCppflags, " ")) 150 pctx.StaticVariable("HostGlobalLdflags", strings.Join(hostGlobalLdflags, " ")) 151 pctx.StaticVariable("HostGlobalLldflags", strings.Join(hostGlobalLldflags, " ")) 154 strings.Join(append(ClangFilterUnknownCflags(commonGlobalCflags), "${ClangExtraCflags}"), " ")) 157 return strings.Join(ClangFilterUnknownCflags(deviceGlobalCflags), " ") 159 …return strings.Join(append(ClangFilterUnknownCflags(deviceGlobalCflags), "${ClangExtraTargetCflags… [all …]
|
D | x86_windows_host.go | 129 pctx.StaticVariable("WindowsClangCflags", strings.Join(windowsClangCflags, " ")) 130 pctx.StaticVariable("WindowsClangLdflags", strings.Join(windowsClangLdflags, " ")) 131 pctx.StaticVariable("WindowsClangLldflags", strings.Join(windowsClangLldflags, " ")) 132 pctx.StaticVariable("WindowsClangCppflags", strings.Join(windowsClangCppflags, " ")) 135 strings.Join(ClangFilterUnknownCflags(windowsX86Cflags), " ")) 137 strings.Join(ClangFilterUnknownCflags(windowsX8664Cflags), " ")) 138 pctx.StaticVariable("WindowsX86ClangLdflags", strings.Join(windowsX86ClangLdflags, " ")) 139 pctx.StaticVariable("WindowsX86ClangLldflags", strings.Join(windowsX86ClangLldflags, " ")) 140 pctx.StaticVariable("WindowsX8664ClangLdflags", strings.Join(windowsX8664ClangLdflags, " ")) 141 pctx.StaticVariable("WindowsX8664ClangLldflags", strings.Join(windowsX8664ClangLldflags, " ")) [all …]
|
D | x86_linux_host.go | 122 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 …]
|
D | x86_device.go | 108 pctx.StaticVariable("X86Ldflags", strings.Join(x86Ldflags, " ")) 109 pctx.StaticVariable("X86Lldflags", strings.Join(x86Lldflags, " ")) 113 pctx.StaticVariable("X86ClangCflags", strings.Join(ClangFilterUnknownCflags(x86ClangCflags), " ")) 114 pctx.StaticVariable("X86ClangLdflags", strings.Join(ClangFilterUnknownCflags(x86Ldflags), " ")) 115 pctx.StaticVariable("X86ClangLldflags", strings.Join(ClangFilterUnknownCflags(x86Lldflags), " ")) 116 pctx.StaticVariable("X86ClangCppflags", strings.Join(ClangFilterUnknownCflags(x86Cppflags), " ")) 126 strings.Join(ClangFilterUnknownCflags(cflags), " ")) 202 toolchainClangCflags: strings.Join(toolchainClangCflags, " "),
|
D | x86_64_device.go | 98 pctx.StaticVariable("X86_64Ldflags", strings.Join(x86_64Ldflags, " ")) 99 pctx.StaticVariable("X86_64Lldflags", strings.Join(x86_64Lldflags, " ")) 103 pctx.StaticVariable("X86_64ClangCflags", strings.Join(ClangFilterUnknownCflags(x86_64Cflags), " ")) 104 …pctx.StaticVariable("X86_64ClangLdflags", strings.Join(ClangFilterUnknownCflags(x86_64Ldflags), " … 105 …pctx.StaticVariable("X86_64ClangLldflags", strings.Join(ClangFilterUnknownCflags(x86_64Lldflags), … 106 …pctx.StaticVariable("X86_64ClangCppflags", strings.Join(ClangFilterUnknownCflags(x86_64Cppflags), … 116 strings.Join(ClangFilterUnknownCflags(cflags), " ")) 192 toolchainClangCflags: strings.Join(toolchainClangCflags, " "),
|
D | clang.go | 97 pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{ 141 pctx.StaticVariable("ClangExtraCppflags", strings.Join([]string{ 151 pctx.StaticVariable("ClangExtraTargetCflags", strings.Join([]string{ 155 pctx.StaticVariable("ClangExtraNoOverrideCflags", strings.Join([]string{ 180 pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{
|
D | mips_device.go | 97 pctx.StaticVariable("MipsToolchainLdflags", strings.Join(mipsToolchainLdflags, " ")) 101 …pctx.StaticVariable("MipsClangCflags", strings.Join(ClangFilterUnknownCflags(mipsClangCflags), " "… 102 pctx.StaticVariable("MipsClangLdflags", strings.Join(ClangFilterUnknownCflags(mipsLdflags), " ")) 103 pctx.StaticVariable("MipsClangCppflags", strings.Join(ClangFilterUnknownCflags(mipsCppflags), " ")) 110 strings.Join(ClangFilterUnknownCflags(cflags), " "))
|
D | x86_darwin_host.go | 97 return strings.TrimSpace(string(bytes)) 121 pctx.StaticVariable("DarwinClangCflags", strings.Join(darwinClangCflags, " ")) 122 pctx.StaticVariable("DarwinClangLdflags", strings.Join(darwinClangLdflags, " ")) 123 pctx.StaticVariable("DarwinClangLldflags", strings.Join(darwinClangLldflags, " ")) 134 return strings.TrimSpace(string(bytes)) 149 return strings.TrimSpace(string(bytes)) 155 return strings.TrimSpace(string(bytes))
|
D | tidy.go | 31 return strings.Join([]string{ 48 return strings.Join([]string{ 68 return strings.Join([]string{ 124 if strings.HasPrefix(dir, pathCheck.PathPrefix) {
|
D | mips64_device.go | 66 …pctx.StaticVariable("Mips64ClangCflags", strings.Join(ClangFilterUnknownCflags(mips64ClangCflags),… 67 …pctx.StaticVariable("Mips64ClangLdflags", strings.Join(ClangFilterUnknownCflags(mips64Ldflags), " … 68 …pctx.StaticVariable("Mips64ClangCppflags", strings.Join(ClangFilterUnknownCflags(mips64Cppflags), … 75 strings.Join(ClangFilterUnknownCflags(cflags), " "))
|
/build/blueprint/ |
D | ninja_strings.go | 26 defaultEscaper = strings.NewReplacer( 28 inputEscaper = strings.NewReplacer( 31 outputEscaper = strings.NewReplacer( 38 strings []string member 50 strings: []string{str}, 64 if len(ps.result.variables) == len(ps.result.strings) { 66 ps.result.strings = append(ps.result.strings, "") 75 if len(ps.result.strings) != len(ps.result.variables) { 78 ps.result.strings = append(ps.result.strings, ps.pendingStr+s) 89 n := strings.Count(str, "$") [all …]
|
/build/soong/android/ |
D | util.go | 80 if strings.HasPrefix(s, prefix) { 169 if funcName == "init" || strings.HasPrefix(funcName, "init·") || 170 strings.HasPrefix(funcName, "init.") { 200 if strings.Contains(v, "system_") { 201 return strings.Replace(v, "system_", "", 1) 208 ps := strings.SplitN(pat, "%", 2) 218 trimed = strings.TrimPrefix(in, ps[0]) 225 trimed = strings.TrimSuffix(in, ps[1]) 231 rs := strings.SplitN(repl, "%", 2) 240 i := strings.IndexByte(pat, '%') [all …]
|
/build/soong/java/ |
D | jacoco.go | 93 specs += strings.Join(includes, " ") 113 recursiveWildcard := strings.HasSuffix(filter, "**") 116 nonRecursiveWildcard = strings.HasSuffix(filter, "*") 117 filter = strings.TrimSuffix(filter, "*") 119 filter = strings.TrimSuffix(filter, "**") 122 if recursiveWildcard && !(strings.HasSuffix(filter, ".") || filter == "") { 126 if strings.ContainsRune(filter, '*') { 130 spec := strings.Replace(filter, ".", "/", -1)
|
D | support_libraries.go | 34 case strings.HasPrefix(dir, "prebuilts/sdk/current/extras"), 46 if strings.HasSuffix(name, "-nodeps") { 63 ctx.Strict("SUPPORT_LIBRARIES_AARS", strings.Join(supportAars, " ")) 64 ctx.Strict("SUPPORT_LIBRARIES_JARS", strings.Join(supportJars, " "))
|
/build/kati/ |
D | ninja.go | 92 …if (!strings.Contains(tss, " -MD ") && !strings.Contains(tss, " -MMD ")) || !strings.Contains(tss,… 96 mfIndex := strings.Index(ss, " -MF ") 99 if strings.Index(mf, " -MF ") >= 0 { 102 mfEndIndex := strings.IndexAny(mf, " \t\n") 110 outIndex := strings.Index(ss, " -o ") 115 if strings.Index(out, " -o ") >= 0 { 118 outEndIndex := strings.IndexAny(out, " \t\n") 128 if strings.Contains(cmdline, "bin/llvm-rs-cc ") { 139 if i := strings.LastIndex(cmdline, mvCmd); i >= 0 { 141 ei := strings.IndexByte(rest, ')') [all …]
|
/build/soong/cmd/diff_target_files/ |
D | target_files.go | 57 if strings.HasPrefix(f.Name, p) { 58 f.Name = strings.ToLower(p) + strings.TrimPrefix(f.Name, p) 63 if strings.HasPrefix(f.Name, filter) {
|
/build/soong/python/ |
D | builder.go | 106 "interp": strings.Replace(interpreter, "/", `\/`, -1), 107 "main": strings.Replace(main, "/", `\/`, -1), 110 "srcsZips": strings.Join(srcsZips.Strings(), " "), 124 "srcsZips": strings.Join(srcsZips.Strings(), " "), 135 "main": strings.Replace(strings.TrimSuffix(main, pyExt), "/", ".", -1), 136 "srcsZips": strings.Join(srcsZips.Strings(), " "),
|
/build/soong/cmd/sbox/ |
D | sbox.go | 141 if !strings.HasPrefix(filePath, "__SBOX_OUT_DIR__/") { 144 outputsVarEntries[i] = strings.TrimPrefix(filePath, "__SBOX_OUT_DIR__/") 155 if !strings.Contains(rawCommand, "__SBOX_DEPFILE__") { 158 …rawCommand = strings.Replace(rawCommand, "__SBOX_DEPFILE__", filepath.Join(tempDir, sandboxedDepfi… 176 if strings.Contains(rawCommand, "__SBOX_OUT_DIR__") { 177 rawCommand = strings.Replace(rawCommand, "__SBOX_OUT_DIR__", tempDir, -1) 180 if strings.Contains(rawCommand, "__SBOX_OUT_FILES__") { 187 pathsText := strings.Join(tempOutPaths, " ") 188 rawCommand = strings.Replace(rawCommand, "__SBOX_OUT_FILES__", pathsText, -1)
|
/build/soong/java/config/ |
D | makevars.go | 28 ctx.Strict("TARGET_DEFAULT_JAVA_LIBRARIES", strings.Join(DefaultLibraries, " ")) 29 …ctx.Strict("TARGET_DEFAULT_BOOTCLASSPATH_LIBRARIES", strings.Join(DefaultBootclasspathLibraries, "… 56 ctx.Strict("ERROR_PRONE_JARS", strings.Join(ErrorProneClasspath, " ")) 72 ctx.Strict("DEFAULT_JACOCO_EXCLUDE_FILTER", strings.Join(DefaultJacocoExcludeFilter, ","))
|