Lines Matching refs:args
40 def do_build(args): argument
41 build_py = os.path.join(args.source_root_dir, 'build.py')
46 args.product_name,
48 build_targets = args.build_target
49 gn_args = args.gn_args
51 if args.target_cpu is not None:
52 cmd.extend(['--target-cpu', ''.join(args.target_cpu)])
54 if args.compile_config is not None:
55 cmd.extend(['--compile-config', ''.join(args.compile_config)])
57 if args.product_name == 'ohos-sdk':
62 if args.build_only_gn:
65 if args.sparse_image:
68 for item in args.export_para:
80 if args.ninja_args:
83 if args.verbose:
85 if args.keep_ninja_going:
87 if args.fast_rebuild:
89 if args.disable_package_image:
91 if args.log_level == 'debug':
93 if args.device_type:
94 cmd.append('--device-type=' + args.device_type)
95 if args.build_variant:
96 cmd.append('--build-variant=' + args.build_variant)
97 if args.share_ccache:
98 cmd.append('--share-ccache=' + args.share_ccache)
99 if args.disable_post_build:
101 if args.disable_part_of_post_build:
103 for option in args.disable_part_of_post_build:
138 args, _ = parser.parse_args()
140 if args.source_root_dir is None:
143 if args.product_name is None:
147 return do_build(args)