Home
last modified time | relevance | path

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

12

/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 …]
Dcmakelists.go245 flag string member
250 for _, flag := range relativeFilePathFlags {
251 …f.WriteString(fmt.Sprintf("set(%s \"${%s} %s=%s\")\n", tag, tag, flag.flag, buildCMakePath(flag.re…
256 for _, flag := range flags {
257 f.WriteString(fmt.Sprintf("set(%s \"${%s} %s\")\n", tag, tag, flag))
267 flag const
306 return flag
348 case flag:
362 …flagStruct := relativeFilePathFlagType{flag: flagComponents[0], relativeFilePath: flagComponents[1…
/build/kati/cmd/kati/
Dmain.go65 flag.StringVar(&makefileFlag, "f", "", "Use it as a makefile")
66 flag.IntVar(&jobsFlag, "j", 1, "Allow N jobs at once.")
68 flag.StringVar(&loadGOB, "load", "", "")
69 flag.StringVar(&saveGOB, "save", "", "")
70 flag.StringVar(&loadJSON, "load_json", "", "")
71 flag.StringVar(&saveJSON, "save_json", "", "")
72 flag.BoolVar(&useCache, "use_cache", false, "Use cache.")
74 flag.BoolVar(&m2n, "m2n", false, "m2n mode")
75 flag.BoolVar(&goma, "goma", false, "ensure goma start")
77 flag.StringVar(&cpuprofile, "kati_cpuprofile", "", "write cpu profile to `file`")
[all …]
/build/soong/cmd/dep_fixer/
Dmain.go31 flag.Usage = func() {
33 flag.PrintDefaults()
35 output := flag.String("o", "", "Optional output file (defaults to rewriting source if necessary)")
36 flag.Parse()
38 if flag.NArg() < 1 {
45 for i, arg := range flag.Args() {
66 if *output == "" || *output == flag.Arg(0) {
68 err := ioutil.WriteFile(flag.Arg(0), new, 0666)
/build/blueprint/bootstrap/
Dcommand.go53 flag.StringVar(&outFile, "o", "build.ninja", "the Ninja file to output")
54 flag.StringVar(&globFile, "globFile", "build-globs.ninja", "the Ninja file of globs to output")
55 flag.StringVar(&BuildDir, "b", ".", "the build output directory")
56 flag.StringVar(&NinjaBuildDir, "n", "", "the ninja builddir directory")
57 flag.StringVar(&depFile, "d", "", "the dependency file to output")
58 flag.StringVar(&docFile, "docs", "", "build documentation file to output")
59 flag.StringVar(&cpuprofile, "cpuprofile", "", "write cpu profile to file")
60 flag.StringVar(&traceFile, "trace", "", "write trace to file")
61 flag.StringVar(&memprofile, "memprofile", "", "write memory profile to file")
62 flag.BoolVar(&noGC, "nogc", false, "turn off GC for debugging")
[all …]
/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/blueprint/bootstrap/bpglob/
Dbpglob.go30 out = flag.String("o", "", "file to write list of files that match glob")
36 flag.Var(&excludes, "e", "pattern to exclude from results")
56 flag.PrintDefaults()
61 flag.Parse()
68 if flag.NArg() != 1 {
72 _, err := pathtools.GlobWithDepFile(flag.Arg(0), *out, *out+".d", excludes)
/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/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/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/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/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")
56 flag.Usage = func() {
58 flag.PrintDefaults()
61 flag.Parse()
64 flag.Usage()
68 inputs := flag.Args()
/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.Parse()
134 if flag.NArg() == 0 {
147 for i := 0; i < flag.NArg(); i++ {
148 path := flag.Arg(i)
/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/android/
Drule_builder.go335 func (c *RuleBuilderCommand) Flag(flag string) *RuleBuilderCommand {
336 return c.Text(flag)
342 for _, flag := range flags {
343 c.Text(flag)
351 func (c *RuleBuilderCommand) FlagWithArg(flag, arg string) *RuleBuilderCommand {
352 return c.Text(flag + arg)
357 func (c *RuleBuilderCommand) FlagForEachArg(flag string, args []string) *RuleBuilderCommand {
359 c.FlagWithArg(flag, arg)
367 func (c *RuleBuilderCommand) FlagWithList(flag string, list []string, sep string) *RuleBuilderComma…
368 return c.Text(flag + strings.Join(list, sep))
[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/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/soong/dexpreopt/dexpreopt_gen/
Ddexpreopt_gen.go33 dexpreoptScriptPath = flag.String("dexpreopt_script", "", "path to output dexpreopt script")
34 stripScriptPath = flag.String("strip_script", "", "path to output strip script")
35 globalConfigPath = flag.String("global", "", "path to global configuration file")
36 moduleConfigPath = flag.String("module", "", "path to module configuration file")
37 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/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")
52 flag.PrintDefaults()
226 flag.Parse()
[all …]
/build/soong/cmd/merge_zips/
Dmerge_zips.go60 …sortEntries = flag.Bool("s", false, "sort entries (defaults to the order from the input zip f…
61 emulateJar = flag.Bool("j", false, "sort zip entries using jar ordering (META-INF first)")
62 emulatePar = flag.Bool("p", false, "merge zip entries based on par format")
66 stripDirEntries = flag.Bool("D", false, "strip directory entries from the output zip file")
67 manifest = flag.String("m", "", "manifest file to insert in jar")
68 pyMain = flag.String("pm", "", "__main__.py file to insert in par")
69 prefix = flag.String("prefix", "", "A file to prefix to the zip file")
70 …ignoreDuplicates = flag.Bool("ignore-duplicates", false, "take each entry from the first zip it ex…
74flag.Var(&stripDirs, "stripDir", "directories to be excluded from the output zip, accepts wildcard…
75 flag.Var(&stripFiles, "stripFile", "files to be excluded from the output zip, accepts wildcards")
[all …]
/build/soong/cmd/sbox/
Dsbox.go39 flag.StringVar(&sandboxesRoot, "sandbox-path", "",
41 flag.StringVar(&rawCommand, "c", "",
43 flag.StringVar(&outputRoot, "output-root", "",
45 flag.BoolVar(&keepOutDir, "keep-out-dir", false,
48 flag.StringVar(&depfileOut, "depfile-out", "",
65 flag.PrintDefaults()
71 flag.Usage = func() {
74 flag.Parse()
116 outputsVarEntries := flag.Args()
/build/soong/bpfix/cmd/
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)
/build/soong/cmd/extract_linker/
Dmain.go36 flag.StringVar(&asmPath, "s", "", "Path to save the assembly file")
37 flag.StringVar(&flagsPath, "f", "", "Path to save the linker flags")
38 flag.Parse()
40 f, err := os.Open(flag.Arg(0))
42 log.Fatalf("Error opening %q: %v", flag.Arg(0), err)
/build/make/tools/acp/
DREADME6 - Uses the BSD cp, not the fancy GNU cp. It lacks the "-u" flag, which
9 - Doesn't take the "-d" flag, which causes symlinks to be copied as
24 rounded up. This foils the "-u" flag if you also supply the "-p" flag
28 stamp is essential, so simply turning the "-p" flag off doesn't work.
35 conventions. It adds a "-e" flag, used when copying executables around.
39 the "-e" flag, avoiding potential ambiguity.
/build/soong/cmd/host_bionic_inject/
Dhost_bionic_inject.go32 flag.StringVar(&inputFile, "i", "", "Input file")
33 flag.StringVar(&linkerFile, "l", "", "Linker file")
34 flag.StringVar(&outputFile, "o", "", "Output file")
35 flag.Parse()
37 if inputFile == "" || linkerFile == "" || outputFile == "" || flag.NArg() != 0 {
38 flag.Usage()

12