/build/soong/cc/ |
D | compiler.go | 224 flags builderFlags member 247 func (compiler *baseCompiler) appendCflags(flags []string) { 248 compiler.Properties.Cflags = append(compiler.Properties.Cflags, flags...) 251 func (compiler *baseCompiler) appendAsflags(flags []string) { 252 compiler.Properties.Asflags = append(compiler.Properties.Asflags, flags...) 298 func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps PathDeps) Flags { 316 flags.Local.CFlags = append(flags.Local.CFlags, esc(compiler.Properties.Cflags)...) 317 flags.Local.CppFlags = append(flags.Local.CppFlags, esc(compiler.Properties.Cppflags)...) 318 flags.Local.ConlyFlags = append(flags.Local.ConlyFlags, esc(compiler.Properties.Conlyflags)...) 319 flags.Local.AsFlags = append(flags.Local.AsFlags, esc(compiler.Properties.Asflags)...) [all …]
|
D | proto.go | 25 func genProto(ctx android.ModuleContext, protoFile android.Path, flags builderFlags) (cc, header an… 29 if flags.protoC { 33 if flags.proto.CanonicalPathFromRoot { 42 protoDeps := flags.proto.Deps 43 if flags.protoOptionsFile { 49 outDir := flags.proto.Dir 55 android.ProtoRule(rule, protoFile, flags.proto, protoDeps, outDir, depFile, outputs) 116 func protoFlags(ctx ModuleContext, flags Flags, p *android.ProtoProperties) Flags { 117 flags.Local.CFlags = append(flags.Local.CFlags, "-DGOOGLE_PROTOBUF_NO_RTTI") 119 flags.proto = android.GetProtoFlags(ctx, p) [all …]
|
D | pgo.go | 90 func (props *PgoProperties) addInstrumentationProfileGatherFlags(ctx ModuleContext, flags Flags) Fl… 93 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...) 94 flags.Local.CFlags = append(flags.Local.CFlags, profileInstrumentFlag) 96 flags.Local.LdFlags = append(flags.Local.LdFlags, profileInstrumentFlag) 97 return flags 99 func (props *PgoProperties) addSamplingProfileGatherFlags(ctx ModuleContext, flags Flags) Flags { 100 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...) 101 return flags 153 flags := []string{props.profileUseFlag(ctx, file)} 154 flags = append(flags, profileUseOtherFlags...) [all …]
|
D | tidy.go | 105 flags.TidyFlags = append(flags.TidyFlags, headerFilter) 110 flags.TidyFlags = append(flags.TidyFlags, "-quiet") 111 flags.TidyFlags = append(flags.TidyFlags, "-extra-arg-before=-fno-caret-diagnostics") 127 flags.TidyFlags = append(flags.TidyFlags, "-extra-arg-before="+f) 156 flags.TidyFlags = append(flags.TidyFlags, tidyChecks) 164 for i, s := range flags.TidyFlags {
|
D | stl.go | 212 func (stl *stl) flags(ctx ModuleContext, flags Flags) Flags { func 223 flags.Local.CppFlags = append(flags.Local.CppFlags, 228 flags.Local.CppFlags = append(flags.Local.CppFlags, "-nostdinc++") 229 flags.extraLibFlags = append(flags.extraLibFlags, "-nostdlib++") 231 flags.Local.CppFlags = append(flags.Local.CppFlags, 244 flags.Local.CFlags = append(flags.Local.CFlags, "-isystem "+ndkSrcRoot.String()) 248 flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,--exclude-libs,libunwind.a") 253 flags.Local.CppFlags = append(flags.Local.CppFlags, "-nostdinc++") 254 flags.extraLibFlags = append(flags.extraLibFlags, "-nostdlib++") 260 return flags
|
D | strip.go | 63 flags StripFlags, isStaticLib bool) { 68 flags.StripKeepSymbols = true 70 flags.StripKeepSymbolsAndDebugFrame = true 72 flags.StripKeepSymbolsList = strings.Join(stripper.StripProperties.Strip.Keep_symbols_list, ",") 74 flags.StripKeepMiniDebugInfo = true 76 if actx.Config().Debuggable() && !flags.StripKeepMiniDebugInfo && !isStaticLib { 77 flags.StripAddGnuDebuglink = true 79 transformStrip(actx, in, out, flags) 87 out android.ModuleOutPath, flags StripFlags) { 88 stripper.strip(actx, in, out, flags, false) [all …]
|
D | builder.go | 441 flags builderFlags, pathDeps android.Paths, cFlagsDeps android.Paths) Objects { 446 if flags.tidy { 450 if flags.gcovCoverage { 454 if flags.emitXrefs { 460 toolingCflags := flags.globalCommonFlags + " " + 461 flags.globalToolingCFlags + " " + 462 flags.globalConlyFlags + " " + 463 flags.localCommonFlags + " " + 464 flags.localToolingCFlags + " " + 465 flags.localConlyFlags + " " + [all …]
|
D | sanitize.go | 510 func toDisableImplicitIntegerChange(flags []string) bool { 513 for _, f := range flags { 518 for _, f := range flags { 526 func toDisableUnsignedShiftBaseChange(flags []string) bool { 529 for _, f := range flags { 534 for _, f := range flags { 542 func (sanitize *sanitize) flags(ctx ModuleContext, flags Flags) Flags { func 549 flags.Local.LdFlags = append(flags.Local.LdFlags, 555 flags.libFlags = append([]string{builtinsRuntimePath}, flags.libFlags...) 559 return flags [all …]
|
D | linker.go | 218 func (linker *baseLinker) appendLdflags(flags []string) { 219 linker.Properties.Ldflags = append(linker.Properties.Ldflags, flags...) 410 func (linker *baseLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags { 419 …flags.Global.LdFlags = append(flags.Global.LdFlags, fmt.Sprintf("${config.%sGlobalLldflags}", hod)) 421 flags.Global.LdFlags = append(flags.Global.LdFlags, "-Wl,--pack-dyn-relocs=none") 428 flags.Global.LdFlags = append(flags.Global.LdFlags, "-Wl,--pack-dyn-relocs=android+relr") 430 flags.Global.LdFlags = append(flags.Global.LdFlags, 434 flags.Global.LdFlags = append(flags.Global.LdFlags, "-Wl,--pack-dyn-relocs=android") 438 flags.Global.LdFlags = append(flags.Global.LdFlags, fmt.Sprintf("${config.%sGlobalLdflags}", hod)) 443 flags.Global.LdFlags = append(flags.Global.LdFlags, "-Wl,-undefined,dynamic_lookup") [all …]
|
D | binary.go | 252 func (binary *binaryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags { 253 flags = binary.baseLinker.linkerFlags(ctx, flags) 258 flags.Global.LdFlags = append(flags.Global.LdFlags, "-pie") 266 flags.Global.CFlags = append(flags.Global.CFlags, "-fPIE") 275 if !inList("-shared", flags.Local.LdFlags) { 276 flags.Global.LdFlags = append(flags.Global.LdFlags, "-static") 279 flags.Global.LdFlags = append(flags.Global.LdFlags, 285 if flags.DynamicLinker == "" { 287 flags.DynamicLinker = binary.Properties.DynamicLinker 292 flags.DynamicLinker = "/system/bin/bootstrap/linker" [all …]
|
D | coverage.go | 80 func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags, PathDeps) { func 85 return flags, deps 92 flags.GcovCoverage = true 93 flags.Local.CommonFlags = append(flags.Local.CommonFlags, "--coverage", "-O0") 97 flags.Local.CFlags = append(flags.Local.CFlags, "-Wno-frame-larger-than=", "-O0") 99 flags.Local.CommonFlags = append(flags.Local.CommonFlags, profileInstrFlag, 144 flags.Local.LdFlags = append(flags.Local.LdFlags, "--coverage") 149 flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,--wrap,getenv") 151 flags.Local.LdFlags = append(flags.Local.LdFlags, profileInstrFlag) 155 flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,--wrap,open") [all …]
|
D | lto.go | 94 func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags { func 97 if inList("-fsanitize=fuzzer-no-link", flags.Local.CFlags) { 98 return flags 109 flags.Local.CFlags = append(flags.Local.CFlags, ltoFlag) 110 flags.Local.LdFlags = append(flags.Local.LdFlags, ltoFlag) 113 flags.Local.CFlags = append(flags.Local.CFlags, "-fwhole-program-vtables") 120 flags.Local.LdFlags = append(flags.Local.LdFlags, cacheDirFormat+cacheDir) 126 flags.Local.LdFlags = append(flags.Local.LdFlags, cachePolicyFormat+policy) 132 flags.Local.LdFlags = append(flags.Local.LdFlags, 136 return flags
|
/build/soong/scripts/hiddenapi/ |
D | generate_hiddenapi_lists_test.py | 25 flags = FlagsDict() 26 flags.parse_and_merge_csv(['A,' + FLAG_SDK, 'B,' + FLAG_SDK, 28 filter_set = flags.filter_apis(lambda api, flags: not flags) 34 flags = FlagsDict() 35 flags.parse_and_merge_csv(['A,' + FLAG_SDK, 'B', 'C']) 36 flags.assign_flag(FLAG_UNSUPPORTED, set(['C'])) 37 self.assertEqual(flags.generate_csv(), 45 flags.get_valid_subset_of_unassigned_apis(set(['A', 'B', 'D'])), set([ 'B' ])) 48 flags = FlagsDict() 51 self.assertEqual(flags.generate_csv(), []) [all …]
|
D | generate_hiddenapi_lists.py | 90 HAS_NO_API_LIST_ASSIGNED = lambda api, flags: not FLAGS_API_LIST_SET.intersection(flags) argument 91 IS_SERIALIZATION = lambda api, flags: SERIALIZATION_REGEX.match(api) argument 242 flags = sorted(self._dict[api]) 243 lines.append(",".join([api] + flags)) 273 flags = csv[1:] 274 if (FLAG_PUBLIC_API in flags) or (FLAG_SYSTEM_API in flags): 275 flags.append(FLAG_SDK) 276 self._dict[csv[0]].update(flags) 338 flags = FlagsDict() 346 flags.parse_and_merge_csv(read_lines(filename), filename) [all …]
|
/build/soong/zip/cmd/ |
D | main.go | 146 flags := flag.NewFlagSet("flags", flag.ExitOnError) 147 flags.Usage = func() { 149 flags.PrintDefaults() 153 out := flags.String("o", "", "file to write zip file to") 154 manifest := flags.String("m", "", "input jar manifest file name") 155 directories := flags.Bool("d", false, "include directories in zip") 156 compLevel := flags.Int("L", 5, "deflate compression level (0-9)") 157 emulateJar := flags.Bool("jar", false, "modify the resultant .zip to emulate the output of 'jar'") 158 …writeIfChanged := flags.Bool("write_if_changed", false, "only update resultant .zip if it has chan… 159 …ignoreMissingFiles := flags.Bool("ignore_missing_files", false, "continue if a requested file does… [all …]
|
/build/soong/rust/ |
D | compiler.go | 217 flags := []string{} 219 flags = append(flags, "--cfg '"+cfg+"'") 221 return flags 225 flags := []string{} 227 flags = append(flags, "--cfg 'feature=\""+feature+"\"'") 229 return flags 232 func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags) Flags { 238 flags.RustFlags = append(flags.RustFlags, lintFlags) 239 flags.RustFlags = append(flags.RustFlags, compiler.Properties.Flags...) 240 flags.RustFlags = append(flags.RustFlags, compiler.cfgsToFlags()...) [all …]
|
D | binary.go | 66 func (binary *binaryDecorator) compilerFlags(ctx ModuleContext, flags Flags) Flags { 67 flags = binary.baseCompiler.compilerFlags(ctx, flags) 72 flags.LinkFlags = append(flags.LinkFlags, 78 flags.LinkFlags = append(flags.LinkFlags, "-static") 79 flags.RustFlags = append(flags.RustFlags, "-C relocation-model=static") 83 return flags 116 func (binary *binaryDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) android.Path { 121 flags.RustFlags = append(flags.RustFlags, deps.depFlags...) 122 flags.LinkFlags = append(flags.LinkFlags, deps.depLinkFlags...) 123 flags.LinkFlags = append(flags.LinkFlags, deps.linkObjects...) [all …]
|
D | coverage.go | 48 func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags, PathDeps) { func 51 return flags, deps 55 flags.Coverage = true 57 flags.RustFlags = append(flags.RustFlags, 59 flags.LinkFlags = append(flags.LinkFlags, 64 return flags, deps
|
D | builder.go | 96 func TransformSrcToBinary(ctx ModuleContext, mainSrc android.Path, deps PathDeps, flags Flags, 98 flags.GlobalRustFlags = append(flags.GlobalRustFlags, "-C lto") 100 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "bin") 103 func TransformSrctoRlib(ctx ModuleContext, mainSrc android.Path, deps PathDeps, flags Flags, 105 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "rlib") 108 func TransformSrctoDylib(ctx ModuleContext, mainSrc android.Path, deps PathDeps, flags Flags, 110 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "dylib") 113 func TransformSrctoStatic(ctx ModuleContext, mainSrc android.Path, deps PathDeps, flags Flags, 115 flags.GlobalRustFlags = append(flags.GlobalRustFlags, "-C lto") 116 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "staticlib") [all …]
|
D | clippy.go | 40 func (c *clippy) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags, PathDeps) { func 45 flags.Clippy = enabled 46 flags.ClippyFlags = append(flags.ClippyFlags, lints) 47 return flags, deps
|
/build/make/tools/warn/ |
D | warn_common.py | 104 flags = parser.parse_args() 105 if not flags.log: 106 flags.log = flags.buildlog 107 if not use_google3 and not os.path.exists(flags.log): 108 sys.exit('Cannot find log file: ' + flags.log) 109 return flags 149 def generate_cs_link(warning_line, flags, android_root=None): argument 151 if flags.platform == 'chrome': 152 return generate_chrome_cs_link(warning_line, flags) 153 if flags.platform == 'android': [all …]
|
/build/soong/java/ |
D | proto.go | 24 func genProto(ctx android.ModuleContext, protoFiles android.Paths, flags android.ProtoFlags) androi… 45 android.ProtoRule(rule, protoFile, flags, flags.Deps, outDir, depFile, nil) 98 flags javaBuilderFlags) javaBuilderFlags { 100 flags.proto = android.GetProtoFlags(ctx, p) 106 flags.proto.OutTypeFlag = "--javamicro_out" 109 flags.proto.OutTypeFlag = "--javanano_out" 112 flags.proto.OutTypeFlag = "--java_out" 113 flags.proto.OutParams = append(flags.proto.OutParams, "lite") 115 flags.proto.OutTypeFlag = "--java_out" 123 flags.proto.Deps = append(flags.proto.Deps, hostTool) [all …]
|
D | builder.go | 271 srcFiles, srcJars android.Paths, flags javaBuilderFlags, deps android.Paths) { 279 transformJavaToClasses(ctx, outputFile, shardIdx, srcFiles, srcJars, flags, deps, "javac", desc) 283 srcFiles, srcJars android.Paths, flags javaBuilderFlags) { 285 flags.processorPath = append(flags.errorProneProcessorPath, flags.processorPath...) 287 if len(flags.errorProneExtraJavacFlags) > 0 { 288 if len(flags.javacFlags) > 0 { 289 flags.javacFlags += " " + flags.errorProneExtraJavacFlags 291 flags.javacFlags = flags.errorProneExtraJavacFlags 295 transformJavaToClasses(ctx, outputFile, -1, srcFiles, srcJars, flags, nil, 303 flags javaBuilderFlags, deps android.Paths) { [all …]
|
/build/soong/android/ |
D | proto.go | 61 var flags []string 66 flags = append(flags, JoinWithPrefix(localProtoIncludeDirs.Strings(), "-I")) 70 flags = append(flags, JoinWithPrefix(rootProtoIncludeDirs.Strings(), "-I")) 80 flags = append(flags, "--plugin=protoc-gen-"+plugin+"="+hostTool.HostToolPath().String()) 90 Flags: flags, 125 func ProtoRule(rule *RuleBuilder, protoFile Path, flags ProtoFlags, deps Paths, 129 if flags.CanonicalPathFromRoot { 138 FlagWithArg(flags.OutTypeFlag+"=", strings.Join(flags.OutParams, ",")+":"+outDir.String()). 141 Flags(flags.Flags).
|
/build/soong/cc/config/ |
D | global.go | 189 flags := ClangFilterUnknownCflags(commonGlobalCflags) 190 flags = append(flags, "${ClangExtraCflags}") 196 …flags = append(flags, "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-… 198 flags = append(flags, "-ftrivial-auto-var-init=pattern") 200 flags = append(flags, "-ftrivial-auto-var-init=uninitialized") 203 …flags = append(flags, "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-… 205 return strings.Join(flags, " ")
|