/build/scripts/ |
D | entry.py | 23 def check_output(cmd, **kwargs): argument 24 process = subprocess.Popen(cmd, 42 cmd = [ 52 cmd.extend(['--target-cpu', ''.join(args.target_cpu)]) 55 cmd.extend(['--compile-config', ''.join(args.compile_config)]) 63 cmd.append('--build-only-gn') 74 cmd.append('-T') 76 cmd.append(target) 79 cmd.extend(['--gn-args', ' '.join(gn_args)]) 84 cmd.append('-v') [all …]
|
D | app_sign.py | 51 cmd = ['java', '-jar', options.hapsigner, 'sign-app'] 52 cmd.extend(['-mode', 'localsign']) 53 cmd.extend(['-signAlg', options.sign_algo]) 54 cmd.extend(['-keyAlias', options.keyalias]) 55 cmd.extend(['-inFile', unsigned_hap_path]) 56 cmd.extend(['-outFile', signed_hap_path]) 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 | bpf.py | 35 def bpf_compile(options, cmd): argument 38 cmd.extend(['-c', f]) 39 cmd.extend(['-o', options.output_file]) 40 build_utils.check_output(cmd, env=my_env) 44 cmd = [options.clang_path] 45 cmd.extend(['-v', '-g', '-c', '-O2', '-target', 'bpf']) 47 cmd.extend(['-I', include_dir]) 52 lambda: bpf_compile(options, cmd), 57 input_strings=cmd,
|
D | idl.py | 48 def idl_compile(options, paths, cmd): argument 60 cmd.extend(['-c', f, '-d', tmp_dir]) 61 build_utils.check_output(cmd, env=my_env) 71 cmd = [options.idl_path] 73 cmd.extend(['-gen-cpp']) 75 cmd.extend(['-gen-ts']) 77 cmd.extend(['-gen-rust']) 84 lambda: idl_compile(options, paths, cmd), 89 input_strings=cmd,
|
D | summary_ccache_hitrate.py | 31 cmd = "grep -c \'{}\' {}".format(hit_dir_str, ccache_log) 33 subprocess.Popen(cmd, shell=True, 35 cmd = "grep -c \'{}\' {}".format(hit_pre_str, ccache_log) 37 subprocess.Popen(cmd, shell=True, 39 cmd = "grep -c \'{}\' {}".format(mis_str, ccache_log) 41 subprocess.Popen(cmd, shell=True,
|
D | hapbuilder.py | 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]) 31 cmd.extend(['--inFile', unsigned_hap_path]) 32 cmd.extend(['--outFile', signed_hap_path]) 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]) [all …]
|
D | tools_checker.py | 32 def run_command(cmd, verbose=None): argument 40 print("Running: {}".format(' '.join(cmd))) 41 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) 54 cmd = ['dpkg', '-s', pkg_name] 55 _, r = run_command(cmd)
|
D | compile_resources.py | 66 cmd = [options.restool_path] 70 cmd.extend(['-i', dest_res_dir]) 71 cmd.extend(['-j', options.hap_profile]) 78 cmd.extend( 80 build_utils.check_output(cmd)
|
D | check_mac_system_and_cpu.py | 21 def run_cmd(cmd): argument 22 res = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE,
|
D | compile_app.py | 156 cmd = ['bash', './hvigorw', '--mode', 'module', '-p', 159 cmd = ['bash', './hvigorw', '--mode', 162 cmd.extend(['-p', 'debuggable=true']) 164 cmd.extend(['-p', 'debuggable=false']) 165 cmd.extend(['--no-daemon']) 177 proc = subprocess.Popen(cmd,
|
D | build_js_assets.py | 114 def build_ace(cmd, options, js2abc, loader_home, assets_dir, assets_name): argument 166 build_utils.check_output(cmd, cwd=loader_home, env=my_env) 227 cmd = [ 235 cmd.extend(['--env', 'buildMode={}'.format(options.build_mode), 'compilerType=ark', 238 cmd.extend(['--env', 'compilerType=ark', 241 lambda: build_ace(cmd, options, js2abc, loader_home, assets_dir, assets_name), 245 input_strings=cmd + [options.build_mode],
|
/build/tools/component_tools/static_check/gn_check/ |
D | gn_common_tools.py | 47 cmd = "find {}".format(project_path) 48 cmd += " -name {}".format(target_filename[0]) 52 cmd += " -o -path '{}' -prune".format(bd_path) 53 output = os.popen(cmd) 75 cmd = "grep -{} -s '{}' {}".format(grep_parameter, 78 cmd += " --include={}".format(include) 80 cmd += " --exclude-dir={}".format(exclude) 82 cmd += " | grep -Ev '{}'".format("|".join(black_keyword)) 83 logging.info(cmd) 85 output = os.popen(cmd).read().strip()
|
/build/config/linux/ |
D | pkg-config.py | 158 cmd = [options.pkg_config, "--modversion"] + args 160 version_string = subprocess.check_output(cmd) 168 cmd = [options.pkg_config, "--variable=libdir"] + args 170 sys.stderr.write('Running: %s\n' % cmd) 172 libdir = subprocess.check_output(cmd) 180 cmd = [options.pkg_config, "--variable=dridriverdir"] + args 182 sys.stderr.write('Running: %s\n' % cmd) 184 dridriverdir = subprocess.check_output(cmd) 191 cmd = [options.pkg_config, "--cflags", "--libs"] + args 193 sys.stderr.write('Running: %s\n' % ' '.join(cmd)) [all …]
|
/build/lite/ |
D | utils.py | 55 def exec_command(cmd, log_path='out/build.log', **kwargs): argument 57 process = subprocess.Popen(cmd, 75 raise Exception("{} failed, return code is {}".format(cmd, ret_code)) 78 def check_output(cmd, **kwargs): argument 80 ret = subprocess.check_output(cmd, 86 raise Exception("{} failed, failed log is {}".format(cmd, ret))
|
D | hap_pack.py | 28 def cmd_popen(cmd): argument 29 proc = subprocess.Popen(cmd) 34 cmd, ret_code))
|
/build/build_scripts/ |
D | build.py | 53 def check_output(cmd, **kwargs): argument 54 process = subprocess.Popen(cmd, 71 cmd = [python_executable, 'build/hb/main.py', 'build'] + args_list 72 return check_output(cmd, cwd=path)
|
/build/hb/util/ |
D | system_util.py | 34 def exec_command(cmd: list, log_path='out/build.log', **kwargs): 37 if '' in cmd: 38 cmd.remove('') 42 process = subprocess.Popen(cmd,
|
/build/lite/ndk/build/ |
D | build.py | 27 def exec_command(cmd, log_path='out/build.log', **kwargs): argument 28 process = subprocess.Popen(cmd) 33 raise Exception("{} failed, return code is {}".format(cmd, ret_code))
|
/build/ohos/images/mkimage/ |
D | judge_updater_image.py | 20 def run_cmd(cmd): argument 21 res = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, 29 cmd = " ".join(["readelf", "-d", file_path]) 30 res = run_cmd(cmd)
|
/build/ |
D | prebuilts_download.py | 32 def _run_cmd(cmd): argument 33 res = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, 67 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 69 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 71 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 72 _run_cmd(cmd) 206 cmd = [npm, 'install', '--registry', args.npm_registry, '--cache', npm_cache_dir] 208 cmd.append('--unsafe-perm') 209 … proc = subprocess.Popen(cmd, cwd=full_code_path, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 246 cmd = 'mv {}/*.mark {}'.format(dest_dir, tmp_dir) [all …]
|
/build/toolchain/ |
D | clang_static_analyzer_wrapper.py | 58 cmd = parsed_args.args + analyzer_enable_flags + interleave_args( 61 wrapper_utils.command_to_run(cmd))
|
/build/ohos/ndk/ |
D | scan_ndk_targets.py | 68 cmd = ['gn', 'format', gn_file] 69 child = subprocess.Popen(cmd) 131 cmd = ['gn', 'format', options.output] 132 subprocess.check_output(cmd)
|
/build/hb/resolver/ |
D | build_args_resolver.py | 237 cmd = ['ccache', '-M', ccache_max_size] 239 SystemUtil.exec_command(cmd, log_path=config.log_path) 263 cmd = ['/bin/bash', '-c', ' '.join(pyd_start_cmd), '&'] 264 subprocess.Popen(cmd) 616 cmd = ['tar', '-zcvf', packaged_file_path, image_path] 617 SystemUtil.exec_command(cmd, log_path=config.out_path) 659 cmd = [ 663 SystemUtil.exec_command(cmd, log_path=config.log_path) 674 cmd = [ 682 SystemUtil.exec_command(cmd, log_path=config.log_path) [all …]
|
/build/scripts/util/ |
D | file_utils.py | 111 cmd = [gn_exe, 'format'] 112 cmd.append(output_file) 113 subprocess.check_output(cmd)
|
/build/ohos/packages/ |
D | fs_process.py | 186 for cmd in fs_make_cmd: 187 cmd, _ = self.replace(cmd) 188 cmd = cmd.split(' ') 189 SystemUtil.exec_command(cmd, log_path=log_path)
|