Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 25 of 56) sorted by relevance

123

/build/soong/cc/
Dcheck.go30 for _, flag := range flags {
31 flag = strings.TrimSpace(flag)
33 if !strings.HasPrefix(flag, "-") {
34 ctx.PropertyErrorf(prop, "Flag `%s` must start with `-`", flag)
35 } else if strings.HasPrefix(flag, "-I") || strings.HasPrefix(flag, "-isystem") {
36 ctx.PropertyErrorf(prop, "Bad flag `%s`, use local_include_dirs or include_dirs instead", flag)
37 } else if inList(flag, config.IllegalFlags) {
38 ctx.PropertyErrorf(prop, "Illegal flag `%s`", flag)
39 } else if flag == "--coverage" {
40 ctx.PropertyErrorf(prop, "Bad flag: `%s`, use native_coverage instead", flag)
[all …]
Dcflag_artifacts.go47 func (s *cflagArtifactsText) genFlagFilename(flag string) string {
48 return fmt.Sprintf("module_cflags%s.txt", flag)
55 flag string, part int) (string, android.OutputPath) {
57 filename := fmt.Sprintf("%s.%d", s.genFlagFilename(flag), part)
59 s.interOutputs[flag] = append(s.interOutputs[flag], filepath)
67 flag string, using bool, modules []string, part int) int {
69 cleanedName := strings.Replace(flag, "=", "_", -1)
76 Textf("echo '# Modules using %s'", flag).
80 Textf("echo '# Modules not using %s'", flag).
121 for _, flag := range TrackedCFlags {
[all …]
/build/soong/rust/
Dcoverage_test.go60 for _, flag := range rustcCoverageFlags {
64 if !strings.Contains(fizzCov.Args["rustcFlags"], flag) {
65 t.Fatalf(missingErrorStr, flag, "fizz_cov", fizzCov.Args["rustcFlags"])
67 if !strings.Contains(libfooCov.Args["rustcFlags"], flag) {
68 t.Fatalf(missingErrorStr, flag, "libfoo_cov dylib", libfooCov.Args["rustcFlags"])
70 if strings.Contains(buzzNoCov.Args["rustcFlags"], flag) {
71 t.Fatalf(containsErrorStr, flag, "buzzNoCov", buzzNoCov.Args["rustcFlags"])
73 if strings.Contains(libbarNoCov.Args["rustcFlags"], flag) {
74 t.Fatalf(containsErrorStr, flag, "libbar_cov", libbarNoCov.Args["rustcFlags"])
79 for _, flag := range linkCoverageFlags {
[all …]
/build/soong/cmd/dep_fixer/
Dmain.go33 flag.Usage = func() {
35 flag.PrintDefaults()
37 output := flag.String("o", "", "Optional output file (defaults to rewriting source if necessary)")
38 flag.Parse()
40 if flag.NArg() < 1 {
47 for i, arg := range flag.Args() {
68 if *output == "" || *output == flag.Arg(0) {
70 err := ioutil.WriteFile(flag.Arg(0), new, 0666)
/build/blueprint/bootstrap/
Dcommand.go54 flag.StringVar(&outFile, "o", "build.ninja", "the Ninja file to output")
55 flag.StringVar(&globFile, "globFile", "build-globs.ninja", "the Ninja file of globs to output")
56 flag.StringVar(&BuildDir, "b", ".", "the build output directory")
57 flag.StringVar(&NinjaBuildDir, "n", "", "the ninja builddir directory")
58 flag.StringVar(&depFile, "d", "", "the dependency file to output")
59 flag.StringVar(&docFile, "docs", "", "build documentation file to output")
60 flag.StringVar(&cpuprofile, "cpuprofile", "", "write cpu profile to file")
61 flag.StringVar(&traceFile, "trace", "", "write trace to file")
62 flag.StringVar(&memprofile, "memprofile", "", "write memory profile to file")
63 flag.BoolVar(&noGC, "nogc", false, "turn off GC for debugging")
[all …]
/build/soong/finder/cmd/
Dfinder.go48 flag.StringVar(&cpuprofile, "cpuprofile", "",
50 flag.BoolVar(&verbose, "v", false, "log additional information")
51 flag.StringVar(&dbPath, "db", "", "filepath of cache db")
53 flag.StringVar(&excludeDirs, "exclude-dirs", "",
55 flag.StringVar(&filenamesToFind, "names", "",
57 flag.StringVar(&pruneFiles, "prune-files", "",
60 flag.IntVar(&numIterations, "count", 1,
67 flag.PrintDefaults()
84 flag.Parse()
108 rootPaths := flag.Args()
/build/soong/cmd/extract_jar_packages/
Dextract_jar_packages.go30 outputFile = flag.String("o", "", "output file")
31 prefix = flag.String("prefix", "", "prefix for each entry in the output file")
32 inputFile = flag.String("i", "", "input jar or srcjar")
47 flag.Usage = func() {
49 flag.PrintDefaults()
52 flag.Parse()
55 flag.Usage()
/build/soong/symbol_inject/cmd/
Dsymbol_inject.go26 input = flag.String("i", "", "input file")
27 output = flag.String("o", "", "output file")
28 symbol = flag.String("s", "", "symbol to inject into")
29 from = flag.String("from", "", "optional existing value of the symbol for verification")
30 value = flag.String("v", "", "value to inject into symbol")
32 dump = flag.Bool("dump", false, "dump the symbol table for copying into a test")
36 flag.Parse()
40 flag.Usage()
/build/soong/cmd/zipsync/
Dzipsync.go30 outputDir = flag.String("d", "", "output dir")
31 outputFile = flag.String("l", "", "output list file")
32 filter = flag.String("f", "", "optional filter pattern")
33 …zipPrefix = flag.String("zip-prefix", "", "optional prefix within the zip file to extract, stripp…
57 flag.Usage = func() {
59 flag.PrintDefaults()
62 flag.Parse()
65 flag.Usage()
69 inputs := flag.Args()
/build/blueprint/bootstrap/bpglob/
Dbpglob.go32 out = flag.String("o", "", "file to write list of files that match glob")
38 flag.Var(&excludes, "e", "pattern to exclude from results")
58 flag.PrintDefaults()
63 flag.Parse()
70 if flag.NArg() != 1 {
74 _, err := pathtools.GlobWithDepFile(flag.Arg(0), *out, *out+".d", excludes)
/build/blueprint/bpfmt/
Dbpfmt.go23 list = flag.Bool("l", false, "list files whose formatting differs from bpfmt's")
24 overwriteSourceFile = flag.Bool("w", false, "write result to (source) file")
25 writeToStout = flag.Bool("o", false, "write result to stdout")
26 doDiff = flag.Bool("d", false, "display diffs instead of rewriting files")
27 sortLists = flag.Bool("s", false, "sort arrays")
46 flag.PrintDefaults()
128 flag.Usage = usage
129 flag.Parse()
135 if flag.NArg() == 0 {
147 for i := 0; i < flag.NArg(); i++ {
[all …]
/build/soong/cmd/diff_target_files/
Ddiff_target_files.go33 flag.Var(&f, name, usage)
43 flag.Parse()
45 if flag.NArg() != 2 {
56 priZip, err := NewLocalZipArtifact(flag.Arg(0))
58 fmt.Fprintf(os.Stderr, "Error opening zip file %v: %v\n", flag.Arg(0), err)
63 refZip, err := NewLocalZipArtifact(flag.Arg(1))
65 fmt.Fprintf(os.Stderr, "Error opening zip file %v: %v\n", flag.Arg(1), err)
/build/blueprint/loadplugins/
Dloadplugins.go28 output = flag.String("o", "", "output filename")
29 pkg = flag.String("p", "main", "package name")
33 flag.Parse()
35 if flag.NArg() == 0 {
47 flag.Args(),
/build/soong/androidmk/cmd/
Dandroidmk.go30 flag.PrintDefaults()
35 flag.Usage = usage
36 flag.Parse()
37 if len(flag.Args()) != 1 {
40 filePathToRead := flag.Arg(0)
/build/soong/partner/androidmk/
Dandroidmk.go32 flag.PrintDefaults()
37 flag.Usage = usage
38 flag.Parse()
39 if len(flag.Args()) != 1 {
42 filePathToRead := flag.Arg(0)
/build/blueprint/bpmodify/
Dbpmodify.go25 list = flag.Bool("l", false, "list files that would be modified by bpmodify")
26 write = flag.Bool("w", false, "write result to (source) file instead of stdout")
27 doDiff = flag.Bool("d", false, "display diffs instead of rewriting files")
28 sortLists = flag.Bool("s", false, "sort touched lists, even if they were unsorted")
29 parameter = flag.String("parameter", "deps", "name of parameter to modify on each module")
36 flag.Var(targetedModules, "m", "comma or whitespace separated list of modules on which to operate")
37 flag.Var(addIdents, "a", "comma or whitespace separated list of identifiers to add")
38 flag.Var(removeIdents, "r", "comma or whitespace separated list of identifiers to remove")
39 flag.Usage = usage
52 fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s [flags] [path ...]\n", os.Args[0])
[all …]
/build/soong/cmd/soong_env/
Dsoong_env.go33 flag.PrintDefaults()
38 flag.Parse()
40 if flag.NArg() != 1 {
44 stale, err := env.StaleEnvFile(flag.Arg(0))
/build/soong/cmd/zip2zip/
Dzip2zip.go35 input = flag.String("i", "", "zip file to read from")
36 output = flag.String("o", "", "output file")
37 …sortGlobs = flag.Bool("s", false, "sort matches from each glob (defaults to the order from the inp…
38 …sortJava = flag.Bool("j", false, "sort using jar ordering within each glob (META-INF/MANIFEST.MF …
39 setTime = flag.Bool("t", false, "set timestamps to 2009-01-01 00:00:00")
49 flag.Var(&excludes, "x", "exclude a filespec from the output")
50 flag.Var(&includes, "X", "include a filespec in the output that was previously excluded")
51 flag.Var(&uncompress, "0", "convert a filespec to uncompressed in the output")
55 flag.Usage = func() {
57 flag.PrintDefaults()
[all …]
/build/blueprint/gotestrunner/
Dgotestrunner.go32 chdir = flag.String("p", "", "Change to a path before executing test")
33 touch = flag.String("f", "", "Write a file on success")
51 flag.Parse()
53 if flag.NArg() == 0 {
58 test, err := filepath.Abs(flag.Arg(0))
63 cmd := exec.Command(test, flag.Args()[1:]...)
/build/soong/cmd/sbox/
Dsbox.go43 flag.StringVar(&sandboxesRoot, "sandbox-path", "",
45 flag.StringVar(&rawCommand, "c", "",
47 flag.StringVar(&outputRoot, "output-root", "",
49 flag.BoolVar(&keepOutDir, "keep-out-dir", false,
52 flag.StringVar(&depfileOut, "depfile-out", "",
55 flag.StringVar(&inputHash, "input-hash", "",
71 flag.PrintDefaults()
77 flag.Usage = func() {
80 flag.Parse()
122 outputsVarEntries := flag.Args()
/build/soong/android/
Drule_builder.go548 func (c *RuleBuilderCommand) Flag(flag string) *RuleBuilderCommand {
549 return c.Text(flag)
554 func (c *RuleBuilderCommand) OptionalFlag(flag *string) *RuleBuilderCommand {
555 if flag != nil {
556 c.Text(*flag)
565 for _, flag := range flags {
566 c.Text(flag)
574 func (c *RuleBuilderCommand) FlagWithArg(flag, arg string) *RuleBuilderCommand {
575 return c.Text(flag + arg)
580 func (c *RuleBuilderCommand) FlagForEachArg(flag string, args []string) *RuleBuilderCommand {
[all …]
/build/soong/scripts/
Dtransitive-deps.sh211 flag=$(expr "${1}" : '^-*\(.*\)$')
230 sep=$(expr "${flag}" : '^sep=\(.*\)$');;
249 nofollow=$(expr "${flag}" : '^nofollow=\(.*\)$');;
251 nofollow="${nofollow}|"$(expr "${flag}" : '^nofollow=\(.*\)$');;
257 container_types="${container_types}|"$(expr "${flag}" : '^container=\(.*\)$');;
263 projects_out=$(expr "${flag}" : '^.*=\(.*\)$');;
269 directories_out=$(expr "${flag}" : '^.*=\(.*\)$');;
275 targets_out=$(expr "${flag}" : '^.*=\(.*\)$');;
281 notices_out=$(expr "${flag}" : '^.*=\(.*\)$');;
/build/soong/dexpreopt/dexpreopt_gen/
Ddexpreopt_gen.go34 dexpreoptScriptPath = flag.String("dexpreopt_script", "", "path to output dexpreopt script")
35 …globalSoongConfigPath = flag.String("global_soong", "", "path to global configuration file for set…
36 globalConfigPath = flag.String("global", "", "path to global configuration file")
37 moduleConfigPath = flag.String("module", "", "path to module configuration file")
38 outDir = flag.String("out_dir", "", "path to output directory")
49 flag.Parse()
54 flag.Usage()
59 if flag.NArg() > 0 {
60 usage("unrecognized argument " + flag.Arg(0))
/build/soong/cmd/soong_ui/
Dmain.go39 flag string member
65 flag: makeModeFlagName,
73 flag: "--dumpvar-mode",
81 flag: "--dumpvars-mode",
89 flag: "--build-mode",
234 flags := flag.NewFlagSet("dumpvar", flag.ExitOnError)
284 flags := flag.NewFlagSet("dumpvars", flag.ExitOnError)
365 flags := flag.NewFlagSet("build-mode", flag.ContinueOnError)
408 for i, flag := range buildActionFlags {
409 flags.BoolVar(&buildActionFlags[i].set, flag.name, false, flag.description)
[all …]
/build/soong/bpfix/cmd_lib/
Dbpfix.go38 list = flag.Bool("l", false, "list files whose formatting differs from bpfmt's")
39 write = flag.Bool("w", false, "write result to (source) file instead of stdout")
40 doDiff = flag.Bool("d", false, "display diffs instead of rewriting files")
132 flag.Parse()
136 if flag.NArg() == 0 {
148 for i := 0; i < flag.NArg(); i++ {
149 path := flag.Arg(i)

123