/build/templates/metadata/ |
D | write_meta_data.py | 66 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/ |
D | build_js_assets.py | 56 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: bool) -> dict: argument 65 out_dir = os.path.abspath(os.path.dirname(options.output)) 68 if options.app_profile: 75 "buildMode": options.build_mode, [all …]
|
D | hapbuilder.py | 26 def sign_hap(options, unsigned_hap_path: str, signed_hap_path: str): 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 …]
|
D | compile_resources.py | 41 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 …]
|
D | app_sign.py | 46 options = parser.parse_args(args) 47 return options 50 def sign_app(options, unsigned_hap_path: str, signed_hap_path: str): 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 …]
|
D | ohos_abc.py | 32 options = parser.parse_args(args) 33 return options 36 def gen_abc(options): argument 37 cmd = [os.path.join(options.es2abc, 'es2abc'), '--output', options.outputs] 38 if options.merge_abc: 40 if options.module: 42 cmd.extend(options.sources) 47 options = parse_args(args) 49 outputs = [options.outputs] 51 es2abc_path = os.path.join(options.es2abc, 'es2abc') [all …]
|
D | idl.py | 44 options, paths = parser.parse_args(args) 45 return options, paths 48 def idl_compile(options, paths: list, cmd: str): 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 …]
|
D | merge_profile.py | 37 options, _ = parser.parse_args(args) 38 options.resources_dir = build_utils.parse_gn_list(options.resources_dir) 39 return options 42 def merge_profile(options): argument 44 with open(options.hap_profile) as f0: 45 if len(options.app_profile) == 0: 49 with open(options.app_profile) as f1: 55 if str(all_data.get('app').get('targetAPIVersion')) == options.api_version: 56 all_data["app"]["apiReleaseType"] = options.release_type 59 f3 = open(options.generated_profile, "w") [all …]
|
D | bpf.py | 32 options = parser.parse_args(args) 33 return options 35 def bpf_compile(options, cmd: str): 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 …]
|
D | find.py | 25 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 …]
|
D | compile_app.py | 52 options = parser.parse_args(args) 53 return options 56 def make_env(build_profile: str, cwd: str, ohpm_registry: str, options): argument 73 'NODE_HOME': os.path.dirname(os.path.abspath(options.nodejs)), 110 def gen_unsigned_hap_path_json(build_profile: str, cwd: str, options): argument 124 if options.test_hap: 137 file_utils.write_json_file(options.output_file, unsigned_hap_path_json) 160 def hvigor_build(cwd: str, options): argument 167 if options.test_hap: 170 elif options.build_modules: [all …]
|
D | copy_ex.py | 134 def do_copy(options, deps: list): 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: list): argument 159 build_utils.parse_gn_list(f) for f in options.renaming_sources)) 164 for f in options.renaming_destinations)) [all …]
|
/build/ohos/ndk/ |
D | create_ndk_docs_portal.py | 43 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 …]
|
D | generate_ndk_docs.py | 42 options, _ = parser.parse_args(args) 43 return options 46 def generate_ndk_docs(options, html_output_dir: str): 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 …]
|
D | generate_version_script.py | 43 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 …]
|
D | check_ndk_header_signature.py | 45 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
|
D | generate_ndk_stub_file.py | 41 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/ |
D | print_python_deps.py | 48 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 …]
|
/build/lite/testfwk/ |
D | gen_module_list_files.py | 40 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/config/linux/ |
D | pkg-config.py | 44 def SetConfigPath(options: OptionParser) -> str: 51 sysroot = options.sysroot 55 arch = options.arch 60 libdir = sysroot + '/usr/' + options.system_libdir + '/pkgconfig' 66 def GetPkgConfigPrefixToStrip(options: OptionParser, args) -> str: 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/ohos/testfwk/ |
D | gen_module_list_files.py | 35 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/ |
D | generate_all_types_sdk.py | 51 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 …]
|
D | parse_sdk_description.py | 129 def variant_to_product(variant: dict, options: dict): 130 relations = read_json_file(options.variant_to_product) 135 variant, options.variant_to_product)) 138 def expand_platform_targets(options, label: str, install_dir: str): 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 …]
|
/build/templates/bpf/ |
D | gen_bpf_uapi.py | 29 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)]
|
/build/ohos/notice/ |
D | collect_module_notice_file.py | 82 def do_collect_notice_files(options, depfiles: str): argument 85 notice_file = options.license_file 87 opensource_file = find_opensource_recursively(os.path.abspath(options.module_source_dir)) 94 readme_path = os.path.join(options.module_source_dir, 97 readme_path = find_opensource_recursively(os.path.abspath(options.module_source_dir)) 105 notice_file = find_license_recursively(options.module_source_dir, 106 options.default_license) 107 opensource_file = find_opensource_recursively(os.path.abspath(options.module_source_dir)) 114 module_notice_info['Path'] = "/{}".format(options.module_source_dir[5:]) 118 for output in options.output: [all …]
|