Lines Matching full:args

13 def executable_exists(args):  argument
15 subprocess.check_output(args)
68 def run_tool(tool_name, args, cwd, env=dict()): argument
75 args = [str(arg) for arg in args]
76 display_args = ' '.join(quote_arg(arg) for arg in args)
92 subprocess.check_call(args, env=env_copy, cwd=cwd)
97 def run_target(target_name, args, env=dict()): argument
98 generator_cmd = GENERATORS[args.generator]['command']
100 if args.verbose:
101 generator_cmd += [GENERATORS[args.generator]['verbose_flag']]
103 run_tool(generator_cmd[0], generator_cmd + [target_name], args.build_dir, env)
159 def ensure_build_directory(args, prog_name, always_run_cmake=False): argument
165 This function will also check args.generator parameter. If the parameter is incompatible with
169 project_dir = args.project_dir
180 build_dir = args.build_dir
189 _guess_or_check_idf_target(args, prog_name, cache)
191 args.define_cache_entry.append('CCACHE_ENABLE=%d' % args.ccache)
193 if always_run_cmake or _new_cmakecache_entries(cache_path, args.define_cache_entry):
194 if args.generator is None:
195 args.generator = _detect_cmake_generator(prog_name)
200 args.generator,
204 if args.cmake_warn_uninitialized:
207 if args.define_cache_entry:
208 cmake_args += ['-D' + d for d in args.define_cache_entry]
211 run_tool('cmake', cmake_args, cwd=args.build_dir)
226 if args.generator is None:
227 args.generator = (generator) # reuse the previously configured generator, if none was given
228 if generator != args.generator:
230 (generator, args.generator, prog_name))
282 def _guess_or_check_idf_target(args, prog_name, cache): argument
292 sdkconfig_path = os.path.join(args.project_dir, 'sdkconfig')
293 sdkconfig_defaults_path = os.path.join(args.project_dir, 'sdkconfig.defaults')
305 if args.verbose:
307 args.define_cache_entry.append('IDF_TARGET=' + guessed_target)