Searched refs:arg (Results 1 – 25 of 29) sorted by relevance
12
/build/hb/resolver/ |
D | args_factory.py | 29 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 …]
|
D | tool_args_resolver.py | 19 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 …]
|
D | set_args_resolver.py | 21 from containers.arg import Arg 22 from containers.arg import ModuleType
|
D | clean_args_resolver.py | 22 from containers.arg import Arg
|
D | env_args_resolver.py | 22 from containers.arg import Arg
|
/build/hb/services/ |
D | gn.py | 28 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 …]
|
D | menu.py | 39 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/ |
D | linker_driver.py | 69 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/ |
D | ohos_toolchain.gni | 86 …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/ |
D | ohos_clean_module.py | 18 from containers.arg import CleanPhase 52 for phase_arg in [arg for arg in self.args_dict.values()if arg.arg_phase == phase]:
|
D | ohos_build_module.py | 26 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/ |
D | cargo2gn.py | 230 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/ |
D | gcc_solink_wrapper.py | 78 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":
|
D | rustc_wrapper.py | 46 rustc_args.extend(["-Clink-arg=%s" % arg for arg in ldflags])
|
/build/docs/ |
D | how-to-add-a-build-parameter.md | 27 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/ |
D | arg.py | 218 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/ |
D | BUILD.gn | 40 "-plugin-arg-find-bad-constructs", 47 "-plugin-arg-find-bad-constructs", 55 "-plugin-arg-find-bad-constructs",
|
/build/hb/modules/interface/ |
D | tool_module_interface.py | 22 from containers.arg import ModuleType 23 from containers.arg import Arg
|
/build/scripts/util/ |
D | build_utils.py | 111 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/ |
D | build.rs | 52 let output = match Command::new(rustc_bin).arg("--version").output() { in rustc_minor_version()
|
/build/hb/resolver/interface/ |
D | args_resolver_interface.py | 20 from containers.arg import Arg
|
/build/ohos/images/ |
D | build_image.py | 110 for arg in default_build_args.values(): 111 sources_file = arg.get('source_file') 112 dest_file = arg.get('dest_file')
|
/build/config/ |
D | v8_target_cpu.gni | 8 # 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/ |
D | build.rs | 81 let output = match Command::new(rustc_bin).arg("--version").output() { in rustc_minor_version()
|
/build/ |
D | prebuilts_download.py | 286 for arg in args: 287 for key in arg.keys(): 288 cmd = '{} --{}={}'.format(cmd, key, arg[key])
|
12