Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 29) sorted by relevance

12

/build/hb/resolver/
Dargs_factory.py29 def genetic_add_option(parser: argparse.ArgumentParser, arg: dict) -> argparse.ArgumentParser:
30 if arg['arg_type'] == 'bool':
31 return _add_bool_option(parser, arg)
32 elif arg['arg_type'] == 'str':
33 return _add_str_option(parser, arg)
34 elif arg['arg_type'] == 'list':
35 return _add_list_option(parser, arg)
36 elif arg['arg_type'] == 'subparsers':
37 return _add_list_option(parser, arg)
40 .format(arg['arg_type'], arg['arg_name']), "0003")
[all …]
Dtool_args_resolver.py19 from containers.arg import Arg
37 for arg in target_arg.arg_value:
38 if '-' not in arg and len(out_dir) == 0:
39 out_dir = arg
41 args_list.append(arg)
49 for arg in target_arg.arg_value:
50 if ':' in arg:
52 component_name, module_name = arg.split(':')
57 'Invalid desc args: {} ,need <component:module>'.format(arg))
58 elif '-' not in arg and len(out_dir) == 0:
[all …]
Dset_args_resolver.py21 from containers.arg import Arg
22 from containers.arg import ModuleType
Dclean_args_resolver.py22 from containers.arg import Arg
Denv_args_resolver.py22 from containers.arg import Arg
/build/hb/services/
Dgn.py28 from containers.arg import Arg, ModuleType
192 for arg in kwargs.get('args_list'):
193 if arg.startswith('-'):
194 self._check_options_validity(arg, args_file)
195 gn_path_cmd.append(arg)
217 for arg in kwargs.get('args_list'):
218 if arg.startswith('-'):
219 self._check_options_validity(arg, args_file)
220 gn_desc_cmd.append(arg)
241 for arg in kwargs.get('args_list'):
[all …]
Dmenu.py39 from containers.arg import Arg, ModuleType
51 for arg in all_build_args.values():
52 if isinstance(arg, Arg) and arg.arg_attribute.get("optional"):
53 if arg.arg_name != 'target_cpu':
57 'value': arg.arg_name
58 } for choice in arg.arg_attribute.get("optional")
66 'value': arg.arg_name,
72 'value': arg.arg_name,
79 'value': arg.arg_name,
83 result = self._list_promt(arg.arg_name, 'select {} value'.format(
[all …]
/build/toolchain/mac/
Dlinker_driver.py69 for arg in args[1:]:
70 if arg.startswith(_LINKER_DRIVER_ARG_PREFIX):
72 driver_action = process_linker_driver_arg(arg)
76 compiler_driver_args.append(arg)
98 def process_linker_driver_arg(arg): argument
113 if not arg.startswith(_LINKER_DRIVER_ARG_PREFIX):
114 raise ValueError('%s is not a linker driver argument' % (arg,))
116 sub_arg = arg[len(_LINKER_DRIVER_ARG_PREFIX):]
124 raise ValueError('Unknown linker driver argument: %s' % (arg,))
/build/toolchain/ohos/
Dohos_toolchain.gni86 …target} -Clinker=$cxx -Clink-arg=-lunwind -Clink-arg=-fuse-ld=lld -Clink-arg=-v -Clink-arg=--targe…
88 …target} -Clinker=$cxx -Clink-arg=-lunwind -Clink-arg=-fuse-ld=lld -Clink-arg=-v -Clink-arg=--targe…
90 …rgs = "--target=${rust_abi_target} -Clinker=$cxx -Clink-arg=-fuse-ld=lld -Clink-arg=-v -Clink-arg=…
/build/hb/modules/
Dohos_clean_module.py18 from containers.arg import CleanPhase
52 for phase_arg in [arg for arg in self.args_dict.values()if arg.arg_phase == phase]:
Dohos_build_module.py26 from containers.arg import BuildPhase
117 for phase_arg in [arg for arg in self.args_dict.values()if arg.arg_phase == phase]:
/build/scripts/
Dcargo2gn.py230 arg = args[num]
231 if arg == '--crate-name':
234 elif arg == '--crate-type':
237 elif arg == '--cfg':
240 elif arg == '-C':
243 elif arg.startswith('-C'):
244 self.add_ignore_options_flag(arg[2:])
245 elif arg == '--cap-lints':
248 elif arg.startswith('--edition='):
249 self.edition = arg.replace('--edition=', '')
[all …]
/build/toolchain/
Dgcc_solink_wrapper.py78 for arg in rspcontent.split(" "):
79 if naflag and arg.endswith(".lib"):
80 implibs.append(arg)
82 result.append(arg)
83 if arg == "-Wl,--whole-archive":
86 if arg == "-Wl,--no-whole-archive":
Drustc_wrapper.py46 rustc_args.extend(["-Clink-arg=%s" % arg for arg in ldflags])
/build/docs/
Dhow-to-add-a-build-parameter.md27 PRE_TARGET_COMPILATION # ninja前置设置参数,如--ninja-arg
63 """resolve '--ccache' arg
64 :param target_arg: arg object which is used to get arg value.
/build/hb/containers/
Darg.py218 for arg in all_args.values():
219 arg = dict(arg)
220 ArgsFactory.genetic_add_option(parser, arg)
233 for arg in all_args.values():
234 arg = dict(arg)
235 ArgsFactory.genetic_add_option(parser, arg)
236 oh_arg = Arg.create_instance_by_dict(arg)
/build/config/clang/
DBUILD.gn40 "-plugin-arg-find-bad-constructs",
47 "-plugin-arg-find-bad-constructs",
55 "-plugin-arg-find-bad-constructs",
/build/hb/modules/interface/
Dtool_module_interface.py22 from containers.arg import ModuleType
23 from containers.arg import Arg
/build/scripts/util/
Dbuild_utils.py111 for arg in gn_lists:
112 ret.extend(parse_gn_list(arg))
628 for i, arg in enumerate(args):
629 match = r.search(arg)
633 if match.end() != len(arg):
635 'Unexpected characters after FileArg: {}'.format(arg))
654 new_args[i] = arg[:match.start()] + gn_helpers.ToGNString(
657 new_args[i] = arg[:match.start()] + str(expansion)
/build/rust/tests/test_bin_cargo_crate/crate/
Dbuild.rs52 let output = match Command::new(rustc_bin).arg("--version").output() { in rustc_minor_version()
/build/hb/resolver/interface/
Dargs_resolver_interface.py20 from containers.arg import Arg
/build/ohos/images/
Dbuild_image.py110 for arg in default_build_args.values():
111 sources_file = arg.get('source_file')
112 dest_file = arg.get('dest_file')
/build/config/
Dv8_target_cpu.gni8 # This arg is used when we want to tell the JIT-generating v8 code
14 # This arg is defined here rather than in the v8 project because we want
/build/rust/tests/test_rlib_cargo_crate/crate/
Dbuild.rs81 let output = match Command::new(rustc_bin).arg("--version").output() { in rustc_minor_version()
/build/
Dprebuilts_download.py286 for arg in args:
287 for key in arg.keys():
288 cmd = '{} --{}={}'.format(cmd, key, arg[key])

12