/build/scripts/ |
H A D | sign_sdk.py | 5 # you may not use this file except in compliance with the License. 41 for file in files: 42 file = os.path.join(root, file) 43 need_sign_files.append(file) 44 for file in need_sign_files: 45 if file.split('/')[-1] in sign_list or file.endswith('.so') or file.endswith('.dylib') \ 46 or file [all...] |
H A D | kernel_permission_handler.py | 5 # you may not use this file except in compliance with the License. 42 with open(file_path, 'r') as file: 43 json_data = json.load(file)
|
/build/ohos/notice/ |
H A D | collect_system_notice_files.py | 5 # you may not use this file except in compliance with the License. 30 with open(options.install_info_file, 'r') as file: 31 install_info = json.load(file) 38 with open(subsystem_info, 'r') as file: 39 subsystem_info = json.load(file) 45 with open(module_info, 'r') as file: 46 module_info = json.load(file) 64 for file in notice_files: 66 os.path.relpath(file, options.notice_root_dir)) 68 shutil.copyfile(file, des [all...] |
H A D | merge_notice_files.py | 5 # you may not use this file except in compliance with the License. 49 for file in files: 50 if os.stat(file).st_size == 0: 52 if not file.endswith('.a.txt'): 54 notice_file_name = os.path.basename(file) 55 if file not in basenames: 57 valid_notices.append(file) 58 depfiles.append(file) 60 for file in valid_notices: 75 os.path.basename(file)) [all...] |
H A D | collect_module_notice_file.py | 5 # you may not use this file except in compliance with the License. 48 for file in LICENSE_CANDIDATES: 49 license_path = os.path.join(license_dir, file) 50 if os.path.isfile(license_path) and file != license_file and \ 54 for file in ['COPYRIGHT', 'Copyright', 'COPYING', 'Copying']: 55 license_file = os.path.join(license_file_path, file) 64 for file in target_files: 65 candidate = os.path.join(current_dir, file) 89 raise Exception("Error: value of notice file is empty in {}.".format( 92 raise Exception("Error: Name of notice file i [all...] |
/build/tools/component_tools/ |
H A D | full_components_generator.py | 6 you may not use this file except in compliance with the License. 45 for file in os.listdir(folder): 46 abs_file = os.path.join(folder, file) 47 if str(file) == name: 52 for file in files: 53 if len(file) > 0 and os.path.exists(file): 54 ret.append(file) 58 def read_component_from_ohos_build(file: str): 60 with open(file, "r [all...] |
H A D | components_dependence_analysis.py | 6 you may not use this file except in compliance with the License. 69 with open(file_path, 'r') as file: 70 file_data = file.read() 86 for file in os.listdir(root_path): 87 file_path = os.path.join(root_path, file) 88 if file == 'BUILD.gn': 95 for file in os.listdir(root_path): 96 file_path = os.path.join(root_path, file) 97 if file != 'out' and os.path.isdir(file_path):
|
/build/ |
H A D | prebuilts_config.sh | 4 # you may not use this file except in compliance with the License. 48 for file in $(ls ${libcxx_dir}) 50 if [ ! -d "${libcxx_dir}/${file}/c++" ];then 52 $(cp -r ${libcxx_dir}/${file}/* ${libcxx_dir}/c++) 53 $(mv ${libcxx_dir}/c++ ${libcxx_dir}/${file}/c++) 71 for file in $(find "$rust_dir" -path "$rust_dir/x86_64-unknown-linux-gnu" -prune -o -name "lib*.*") 73 dir_name=${file%/*} 74 file_name=${file##*/} 100 mv $file "$dir_name/$newfile_name"
|
H A D | prebuilts_download.sh | 4 # you may not use this file except in compliance with the License. 229 for file in $(ls ${libcxx_dir}) 231 if [ ! -d "${libcxx_dir}/${file}/c++" ];then 233 $(cp -r ${libcxx_dir}/${file}/* ${libcxx_dir}/c++) 234 $(mv ${libcxx_dir}/c++ ${libcxx_dir}/${file}/c++)
|
/build/misc/mac/ |
H A D | find_sdk.py | 5 # found in the LICENSE file. 62 print(out, file=sys.stderr) 63 print(err, file=sys.stderr) 88 print('', file=sys.stderr) 90 file=sys.stderr) 91 print('', file=sys.stderr) 94 % min_sdk_version, file=sys.stderr) 97 file=sys.stderr) 98 print('', file=sys.stderr) 100 file [all...] |
/build/ohos/packages/ |
H A D | check_seccomp_library_name.py | 7 # you may not use this file except in compliance with the License. 32 Load the cfg file in JSON format 43 raise ValidateError('cfg error,please use json file replace xml process name: ' + field['name']) 51 for file in os.listdir(cfg_dir): 52 if file.endswith(".cfg"): 53 services_name |= parse_cfg_file("{}/{}".format(cfg_dir, file)) 62 for file in os.listdir(lib_dir): 63 if not file.startswith('lib') or not file.endswith('_filter.z.so'): 66 front_pos = file [all...] |
H A D | fs_process.py | 7 # you may not use this file except in compliance with the License. 58 def chmod(cls, file, mode): 60 if os.path.exists(file): 61 os.chmod(file, mode) 68 for file in files: 71 if file.startswith(ignore) or file.endswith(ignore): 75 filter_files.append(file) 136 LogUtil.hb_warning(f'Target file: {tfile} already exists!') 150 for file i [all...] |
/build/hb/util/post_build/ |
H A D | part_rom_statistics.py | 6 you may not use this file except in compliance with the License.
82 with open(file_path, 'rb') as file:
83 file_json = json.load(file)
97 with open(part_info_path, 'rb') as file:
98 file_json = json.load(file)
115 with open(module_info_path, 'rb') as file:
116 file_json = json.load(file)
135 for file in os.listdir(image_path):
136 if file.endswith(".img"):
138 img_path = os.path.join(image_path, file)
[all...] |
/build/hb/util/preloader/ |
H A D | parse_lite_subsystems_config.py | 5 # you may not use this file except in compliance with the License. 23 def _read_lite_component_configs(file): 24 subsystem_name = os.path.basename(file)[:-5] 27 with open(file, 'rb') as fin: 62 for file in files: 63 if file[-5:] == '.json': 65 root, file))
|
/build/ohos/sa_profile/sa_info_process/ |
H A D | merge_sa_info.py | 5 # you may not use this file except in compliance with the License. 45 Write all pieces of sa info shared with same process to a new file 65 def parse_json_file(self, file: str): 66 with open(file, 'r') as json_files: 71 raise json_err.BadFormatJsonError('provide a valid value for process', file) 82 raise json_err.BadFormatJsonError('provide a valid value for systemability', file) 85 raise json_err.BadFormatJsonError(_format.format('systemabiltiy', sys_count), file) 88 raise json_err.BadFormatJsonError('systemability must have name and libpath', file) 99 for file in sa_info_filelist: 100 self.parse_json_file(file) [all...] |
/build/ohos/ |
H A D | write_kits_description.py | 5 # you may not use this file except in compliance with the License. 29 with open(build_config, 'r') as file: 30 data = json.load(file) 44 with open(options.input, 'r') as file: 45 kits_info = json.load(file)
|
/build/hb/util/post_gn/ |
H A D | check_compilation_parameters.py | 6 you may not use this file except in compliance with the License. 46 with open(ninja_file, 'r') as file: 47 for line in file: 72 with open(file_path, 'r') as file: 73 file_json = json.load(file) 80 with open(file_path, 'r') as file: 81 file_json = json.load(file)
|
/build/ohos/ndk/ |
H A D | scan_ndk_targets.py | 5 # you may not use this file except in compliance with the License. 41 def remove_comment(file: str): 43 with open(file, 'r') as in_file: 45 # Strip comments in gn file. 73 'Error: Something is wrong with {}, please check file encoding or format' 77 def get_ndk_targets(file: str, options): 80 gn_file = os.path.join(tmp, os.path.basename(file)) 81 do_dos2unix(file, gn_file) 82 do_gn_format(gn_file, file) 89 os.path.relpath(os.path.dirname(file), option [all...] |
H A D | check_ndk_header.py | 5 # you may not use this file except in compliance with the License. 30 parser.add_option('--output', help='generated ndk stub file') 45 for file in headers: 46 command = cmd_list + [file]
|
/build/tools/component_tools/static_check/gn_check/ |
H A D | gn_common_tools.py | 5 # you may not use this file except in compliance with the License. 54 for file in output: 55 if GnCommon.contains_keywords(black_keywords, file): 57 result_set.add(file.strip())
|
/build/ohos/statistics/ |
H A D | build_overlap_statistics.py | 5 # you may not use this file except in compliance with the License. 49 def get_subsystem_paths(file: str, root_dir: str): 56 with open(file, 'r') as jfile: 77 for file in fnmatch.filter(files, pattern): 79 splits = os.path.join(root, file).split('/obj/') 88 sources_file = get_sources_file(os.path.join(root, file)) 147 '--subsystem-config-file', help='path to subsystem java targets.') 149 '--subsystem-config-overlay-file', help='path to subsystem overlay java targets.')
|
/build/lite/ndk/doc/ |
H A D | gen_doc.py | 7 # you may not use this file except in compliance with the License. 37 with open(doxygen_file.name, 'r') as file: 38 contents = file.read() 56 'w', encoding='utf-8') as file: 57 file.write(contents) 90 parser.add_argument('--doxygen-file', help='doxygen config file')
|
/build/tools/component_tools/static_check/bundle_check/ |
H A D | get_subsystem_with_component.py | 5 # you may not use this file except in compliance with the License. 33 with open(subsystem_json_path, 'rb') as file: 34 subsystem_json = json.load(file) 94 with os.fdopen(os.open(out_abs_path, flags, modes), 'w') as file: 95 file.write(subsystem_item_json)
|
/build/templates/common/ |
H A D | include_relative_path_check.py | 5 # you may not use this file except in compliance with the License. 52 for file in files: 54 cls.scan_each_file(component, file, proj_path, results) 56 print("scan file {} with unicode decode error: {}".format(file, e)) 60 def scan_each_file(cls, component, file, project_path, results): 61 with open(file, 'r', encoding='ISO-8859-1') as f: 68 result = {'line_num': line_num, 'file_path': file.replace(project_path, "/"),
|
/build/tools/component_tools/static_check/ |
H A D | csct_online_entry.py | 5 # you may not use this file except in compliance with the License. 42 file = "%scsct_online.py" % csct_project_path 44 ["/usr/bin/python3", file, pr_list],
|