Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 25 of 66) 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/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/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/make/tools/rbcrun/cmd/
Drbcrun.go27 execprog = flag.String("c", "", "execute program `prog`")
28 rootdir = flag.String("d", ".", "the value of // for load paths")
29 file = flag.String("f", "", "file to execute")
30 perfFile = flag.String("perf", "", "save performance data")
34 flag.Parse()
40 for _, arg := range flag.Args() {
61 flag.Usage()
/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/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/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/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…
67 flag.Usage = func() {
69 flag.PrintDefaults()
72 flag.Parse()
75 flag.Usage()
79 inputs := flag.Args()
/build/soong/scripts/hiddenapi/
Dgenerate_hiddenapi_lists.py116 for flag in ALL_FLAGS:
117 parser.add_argument('--' + flag, dest='ordered_flags', metavar='TXT_FILE',
118 action=StoreOrderedOptions, help='lists of entries with flag "' + flag + '"')
278 def assign_flag(self, flag, apis, source="<unknown>", tag = None): argument
293 self._check_flags_set(set([ flag ]), source)
297 self._dict[api].add(flag)
308 flag, value = flag_value[0], flag_value[1]
309 if flag in ALL_FLAGS_SET:
313 currentflag = flag
318 flag, ' '.join(['--%s' % f for f in ALL_FLAGS_SET])))
[all …]
/build/blueprint/bootstrap/
Dcommand.go63 flag.StringVar(&CmdlineArgs.OutFile, "o", "build.ninja", "the Ninja file to output")
64flag.StringVar(&CmdlineArgs.GlobFile, "globFile", "build-globs.ninja", "the Ninja file of globs to…
65 flag.StringVar(&CmdlineArgs.BuildDir, "b", ".", "the build output directory")
66 flag.StringVar(&CmdlineArgs.NinjaBuildDir, "n", "", "the ninja builddir directory")
67 flag.StringVar(&CmdlineArgs.DepFile, "d", "", "the dependency file to output")
68 flag.StringVar(&CmdlineArgs.DocFile, "docs", "", "build documentation file to output")
69 flag.StringVar(&CmdlineArgs.Cpuprofile, "cpuprofile", "", "write cpu profile to file")
70 flag.StringVar(&CmdlineArgs.TraceFile, "trace", "", "write trace to file")
71 flag.StringVar(&CmdlineArgs.Memprofile, "memprofile", "", "write memory profile to file")
72 flag.BoolVar(&CmdlineArgs.NoGC, "nogc", false, "turn off GC for debugging")
[all …]
/build/soong/cmd/run_with_timeout/
Drun_with_timeout.go32 timeout = flag.Duration("timeout", 0, "time after which to kill command (example: 60s)")
33 …onTimeoutCmd = flag.String("on_timeout", "", "command to run with `PID=<pid> sh -c` after timeout.…
38 flag.PrintDefaults()
46 flag.Usage = usage
47 flag.Parse()
49 if flag.NArg() < 1 {
54 err := runWithTimeout(flag.Arg(0), flag.Args()[1:], *timeout, *onTimeoutCmd,
/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/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")
38 flag.Var(targetedModules, "m", "comma or whitespace separated list of modules on which to operate")
39 flag.Var(targetedProperty, "parameter", "alias to -property=`name`")
40flag.Var(targetedProperty, "property", "fully qualified `name` of property to modify (default \"de…
41 flag.Var(addIdents, "a", "comma or whitespace separated list of identifiers to add")
42 flag.Var(removeIdents, "r", "comma or whitespace separated list of identifiers to remove")
43 flag.Var(stringPtrFlag{&setString}, "str", "set a string property")
[all …]
/build/soong/dexpreopt/dexpreopt_gen/
Ddexpreopt_gen.go35 dexpreoptScriptPath = flag.String("dexpreopt_script", "", "path to output dexpreopt script")
36 …globalSoongConfigPath = flag.String("global_soong", "", "path to global configuration file for set…
37 globalConfigPath = flag.String("global", "", "path to global configuration file")
38 moduleConfigPath = flag.String("module", "", "path to module configuration file")
39 outDir = flag.String("out_dir", "", "path to output directory")
43 …usesTargetFiles = flag.Bool("uses_target_files", false, "whether or not dexpreopt is running on ta…
45 basePath = flag.String("base_path", ".", "base path where images and tools are extracted")
60 flag.Parse()
65 flag.Usage()
70 if flag.NArg() > 0 {
[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/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)
/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.

123