Lines Matching refs:args
23 def collect_soname(args):
27 [args.readelf, '-d', args.sofile]),
36 def collect_dyn_sym(args):
39 _command = [args.nm]
40 if args.sofile.endswith('.dll'):
44 _command.append(args.sofile)
53 def collect_toc(args):
54 result, toc = collect_soname(args)
56 result, dynsym = collect_dyn_sym(args)
95 def get_install_dest_dir(args):
96 file_list = os.listdir(args.target_out_dir)
97 target_name = args.target_name
101 with open(os.path.join(args.target_out_dir, match_file), "r") as f:
152 args = parser.parse_args()
154 if args.sofile.endswith(".dll"):
156 for a in args.command:
167 command = wrapper_utils.command_to_run(args.command)
169 command, env=fast_env, map_file=args.map_file)
175 result, toc = collect_toc(args)
181 if args.tocfile:
182 update_toc(args.tocfile, toc)
185 if args.strip:
187 strip_command = [args.strip, '-o', args.output]
190 if args.target_out_dir and os.path.exists(args.target_out_dir):
191 install_dest = get_install_dest_dir(args)
195 with open(args.allowed_lib_list, 'r') as f:
200 if args.strip_debug_whitelist:
201 with open(args.strip_debug_whitelist, 'r') as whitelist:
203 if args.sofile.endswith(strip_debug_sofile.strip()):
208 strip_command.append(args.sofile)
211 if args.libfile:
212 libfile_name = os.path.basename(args.libfile)
213 sofile_output_dir = os.path.dirname(args.sofile)
215 shutil.copy2(unstripped_libfile, args.libfile)
217 if args.mini_debug and not args.sofile.endswith(".dll"):
218 unstripped_libfile = os.path.abspath(args.sofile)
224 ['python3', script_path, '--unstripped-path', unstripped_libfile, '--stripped-path', args.output,
225 '--root-path', ohos_root_path, '--clang-base-dir', args.clang_base_dir]))