Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 61) sorted by relevance

123

/build/templates/metadata/
Dwrite_meta_data.py66 def write_meta_data(options, direct_deps): argument
69 'type': options.type,
70 'metadata_path': options.output,
75 if options.type == 'app_profile':
76 root[options.type] = options.app_profile
77 root['resources'] = options.resources
78 if options.type == 'js_assets':
79 root[options.type] = options.js_assets
80 if options.js_forms:
81 root['js_forms'] = options.js_forms
[all …]
/build/scripts/
Dbuild_js_assets.py56 options, _ = parser.parse_args(args)
57 options.js_assets_dir = build_utils.parse_gn_list(options.js_assets_dir)
58 options.ets_assets_dir = build_utils.parse_gn_list(options.ets_assets_dir)
59 options.js_forms_dir = build_utils.parse_gn_list(options.js_forms_dir)
60 options.testrunner_dir = build_utils.parse_gn_list(options.testrunner_dir)
61 return options
64 def make_my_env(options, js2abc): argument
65 out_dir = os.path.abspath(os.path.dirname(options.output))
68 if options.app_profile:
75 "buildMode": options.build_mode,
[all …]
Dhapbuilder.py26 def sign_hap(options, unsigned_hap_path, signed_hap_path): argument
27 cmd = ['python3', options.sign_hap_py_path]
28 cmd.extend(['--hapsigner', options.hapsigner])
29 cmd.extend(['--sign-algo', options.sign_algo])
30 cmd.extend(['--keyalias', options.keyalias])
33 cmd.extend(['--profileFile', options.certificate_profile])
34 cmd.extend(['--keystoreFile', options.keystore_path])
35 cmd.extend(['--keystorePwd', options.keystorepasswd])
36 cmd.extend(['--keyPwd', options.private_key_path])
37 cmd.extend(['--certificate-file', options.certificate_file])
[all …]
Dcompile_resources.py41 options, _ = parser.parse_args(args)
42 options.resources_dir = build_utils.parse_gn_list(options.resources_dir)
43 return options
46 def get_package_name_from_profile(options): argument
47 with open(options.hap_profile) as fp:
48 if not options.app_profile:
54 def compile_resources(options): argument
57 gen_dir = os.path.join(os.path.dirname(options.output_header_file), "gen")
66 cmd = [options.restool_path]
67 for directory in options.resources_dir:
[all …]
Dapp_sign.py46 options = parser.parse_args(args)
47 return options
50 def sign_app(options, unsigned_hap_path, signed_hap_path): argument
51 cmd = ['java', '-jar', options.hapsigner, 'sign-app']
53 cmd.extend(['-signAlg', options.sign_algo])
54 cmd.extend(['-keyAlias', options.keyalias])
57 cmd.extend(['-profileFile', options.profileFile])
58 cmd.extend(['-keystoreFile', options.keystoreFile])
59 cmd.extend(['-keystorePwd', options.keystorePwd])
60 cmd.extend(['-keyPwd', options.keyPwd])
[all …]
Didl.py44 options, paths = parser.parse_args(args)
45 return options, paths
48 def idl_compile(options, paths, cmd): argument
50 ld_library = os.path.dirname(options.libcxx_path)
62 build_utils.zip_dir(options.output_archive_path, tmp_dir)
63 os.makedirs(options.generated_src_directory, exist_ok=True)
64 build_utils.extract_all(options.output_archive_path,
65 options.generated_src_directory)
70 options, paths = parse_args(args)
71 cmd = [options.idl_path]
[all …]
Dmerge_profile.py36 options, _ = parser.parse_args(args)
37 options.resources_dir = build_utils.parse_gn_list(options.resources_dir)
38 return options
41 def merge_profile(options): argument
43 with open(options.hap_profile) as f0:
44 if len(options.app_profile) == 0:
48 with open(options.app_profile) as f1:
54 all_data["app"]["apiReleaseType"] = options.release_type
55 f3 = open(options.generated_profile, "w")
61 options = parse_args(args)
[all …]
Dbpf.py32 options = parser.parse_args(args)
33 return options
35 def bpf_compile(options, cmd): argument
37 for f in options.input_file:
39 cmd.extend(['-o', options.output_file])
43 options = parse_args(args)
44 cmd = [options.clang_path]
46 for include_dir in options.include_dirs:
49 outputs = [options.output_file]
52 lambda: bpf_compile(options, cmd),
[all …]
Dfind.py25 options, directories = parser.parse_args(argv)
32 if options.return_relpath:
33 if options.base_dir is not None:
34 if fnmatch.filter(d, options.pattern):
35 print(os.path.relpath(d, options.base_dir))
40 if fnmatch.filter(d, options.pattern):
47 for root, _, files in os.walk(d, followlinks=options.follow_symlinks):
48 for f in fnmatch.filter(files, options.pattern):
49 if options.return_relpath:
50 if options.base_dir is not None:
[all …]
Dcopy_ex.py134 def do_copy(options, deps): argument
138 build_utils.parse_gn_list(f) for f in options.files))
141 if not options.ignore_stale:
142 if os.path.isdir(f) and not options.clear:
147 options.dest,
149 follow_all_symlinks=options.follow_all_symlinks,
150 follow_outside_symlinks=options.follow_outside_symlinks)
153 def do_renaming(options, deps): argument
159 build_utils.parse_gn_list(f) for f in options.renaming_sources))
164 for f in options.renaming_destinations))
[all …]
Dcompile_app.py49 options = parser.parse_args(args)
50 return options
101 def gen_unsigned_hap_path_json(build_profile, cwd, options): argument
115 if options.test_hap:
125 file_utils.write_json_file(options.output_file, unsigned_hap_path_json)
148 def hvigor_build(cwd, options): argument
155 if options.test_hap:
160 options.build_level, '-p', 'product=default', options.assemble_type]
161 if options.enable_debug:
166 sdk_dir = options.sdk_home
[all …]
/build/ohos/ndk/
Dcreate_ndk_docs_portal.py43 options, _ = parser.parse_args(args)
44 return options
47 def write_portal_and_archive(options): argument
50 if not os.path.exists(options.doxygen_output):
54 PORTAL_CONTENTS % os.path.relpath(options.doxygen_output,
55 os.path.dirname(options.portal_path))
57 with open(options.portal_path, 'w') as f:
60 if options.archive_doc:
61 os.makedirs(os.path.dirname(options.docs_archive), exist_ok=True)
63 options.docs_archive,
[all …]
Dgenerate_ndk_docs.py42 options, _ = parser.parse_args(args)
43 return options
46 def generate_ndk_docs(options, html_output_dir): argument
49 suffix=os.path.basename(options.doxygen_file)) as doxygen_file:
50 shutil.copyfile(options.doxygen_file, doxygen_file.name)
54 raise Exception('Failed to read %s' % options.doxygen_file)
58 options.version,
60 os.path.relpath(html_output_dir, options.working_dir)
72 if os.path.exists(options.working_dir) is not True:
75 os.chdir(options.working_dir)
[all …]
Dgenerate_version_script.py43 options, _ = parser.parse_args(args)
44 return options
47 def generate_version_script(options): argument
49 with open(options.ndk_description_file, 'r') as f:
54 with open(options.output, 'w') as f:
56 (options.shlib_name.upper(), '\n'.join(contents)))
60 options = parse_args(args)
62 depfile_deps = ([options.ndk_description_file])
65 lambda: generate_version_script(options),
66 options,
[all …]
Dcheck_ndk_header_signature.py45 options, _ = parser.parse_args(args)
47 return options
72 options = parse_args(args)
75 if options.check_signature:
76 depfile_deps.add(options.saved_signature)
79 options.output, options.headers, options.root_build_dir, options.
80 saved_signature, options.generated_signature, options.check_signature),
81 options,
84 output_paths=([options.output
Dgenerate_ndk_stub_file.py41 options, _ = parser.parse_args(args)
42 return options
45 def generate_stub_file(options): argument
47 with open(options.ndk_description_file, 'r') as f:
55 with open(options.output, 'w') as f:
60 options = parse_args(args)
62 depfile_deps = ([options.ndk_description_file])
65 lambda: generate_stub_file(options),
66 options,
69 output_paths=([options.output]),
/build/config/linux/
Dpkg-config.py44 def SetConfigPath(options): argument
51 sysroot = options.sysroot
55 arch = options.arch
60 libdir = sysroot + '/usr/' + options.system_libdir + '/pkgconfig'
66 def GetPkgConfigPrefixToStrip(options, args): argument
79 prefix = subprocess.check_output([options.pkg_config,
130 (options, args) = parser.parse_args()
134 if options.strip_out is not None:
135 for regexp in options.strip_out:
138 if options.sysroot:
[all …]
/build/
Dprint_python_deps.py48 def _normalize_command_line(options): argument
51 root = os.path.relpath(options.root, _SRC_ROOT)
54 if options.output:
55 args.extend(('--output', os.path.relpath(options.output, _SRC_ROOT)))
56 if options.gn_paths:
58 for allowlist in sorted(options.allowlists):
60 args.append(os.path.relpath(options.module, _SRC_ROOT))
100 options = parser.parse_args()
103 sys.path[0] = os.path.dirname(options.module)
104 imp.load_source('NAME', options.module)
[all …]
Dzip.py27 options, _ = parser.parse_args()
29 inputs = ast.literal_eval(options.inputs)
30 output = options.output
31 base_dir = options.base_dir
36 if options.depfile:
37 build_utils.write_depfile(options.depfile, output)
/build/lite/testfwk/
Dgen_module_list_files.py40 options = parser.parse_args(args)
41 return options
45 options = get_args(args)
47 format(os.path.dirname(options.module_list_file)))
48 if not os.path.exists(os.path.dirname(options.module_list_file)):
49 makedirs(os.path.dirname(options.module_list_file))
51 with os.fdopen(os.open(options.module_list_file,
55 'target': options.target,
56 'label': options.target_label,
57 'source_directory': options.source_dir,
[all …]
/build/ohos/testfwk/
Dgen_module_list_files.py35 options, _ = parser.parse_args(args)
36 build_utils.check_options(options,
40 return options, parser
44 options, _ = _parse_args(args)
45 if not os.path.exists(os.path.dirname(options.module_list_file)):
46 os.makedirs(os.path.dirname(options.module_list_file), exist_ok=True)
47 with open(options.module_list_file, 'w') as f:
49 'target': options.target,
50 'label': options.target_label,
51 'source_directory': options.source_dir,
[all …]
/build/ohos/sdk/
Dgenerate_all_types_sdk.py51 options = parser.parse_args()
138 ohos_sdk_modules=options.sdk_modules,
139 sdk_types=options.sdk_types,
140 current_dir=options.current_dir,
141 sdk_systems=options.sdk_systems,
142 display_name=read_display_name(options.type2displayname),
143 api_version=options.api_version,
144 release_type=options.release_type,
145 meta_version=options.meta_version,
146 generated_sdk_modules_gni=options.generated_sdk_modules_gni)
[all …]
Dparse_sdk_description.py129 def variant_to_product(variant, options): argument
130 relations = read_json_file(options.variant_to_product)
135 variant, options.variant_to_product))
138 def expand_platform_targets(options, label, install_dir): argument
139 base = options.base_platform
140 platforms = options.platforms
148 variant_to_product(c, options))
153 install_dir.replace('${variant}', variant_to_product(c, options))
160 def parse_description_file(options): argument
161 data = read_json_file(options.sdk_description_file)
[all …]
Dcopy_sdk_modules.py38 def do_copy_and_stamp(copy_infos, options, depfile_deps): argument
72 build_utils.zip_dir(options.sdk_output_archive,
73 options.archive_dir,
75 zip_prefix_path=options.zip_prefix_path)
76 with zipfile.ZipFile(options.notice_output_archive, 'w') as outfile:
82 build_utils.write_depfile(options.depfile,
83 options.sdk_output_archive,
100 options = parser.parse_args()
102 sdk_modules_desc_file = options.sdk_modules_desc_file
103 sdk_out_dir = options.dest_dir
[all …]
/build/templates/bpf/
Dgen_bpf_uapi.py29 options = parser.parse_args()
30 make_tools_inc_dir = os.path.join(options.kernel_out_dir, 'bpf')
32 shutil.copytree(options.kernel_tools_dir, make_tools_inc_dir)
33 make_uapi_cmd = ['make', '-C', options.kernel_dir, '-sj', 'headers',
34 'O={}'.format(options.kernel_out_dir),
35 'ARCH={}'.format(options.target_cpu)]
36 make_tools_uapi_cmd = ['make', '-C', options.kernel_tools_dir,
38 'ARCH={}'.format(options.target_cpu)]

123