本文整理汇总了Python中build_options.OPTIONS.verbose方法的典型用法代码示例。如果您正苦于以下问题:Python OPTIONS.verbose方法的具体用法?Python OPTIONS.verbose怎么用?Python OPTIONS.verbose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类build_options.OPTIONS
的用法示例。
在下文中一共展示了OPTIONS.verbose方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _ensure_downloads_up_to_date
# 需要导入模块: from build_options import OPTIONS [as 别名]
# 或者: from build_options.OPTIONS import verbose [as 别名]
def _ensure_downloads_up_to_date():
# Always sync NaCl SDK.
verbosity_option = ['-v'] if OPTIONS.verbose() else []
if sync_nacl_sdk.main(verbosity_option):
sys.exit(1)
if download_sdk_and_ndk.check_and_perform_updates():
sys.exit(1)
if download_cts_files.check_and_perform_updates():
sys.exit(1)
示例2: _generate_ninjas
# 需要导入模块: from build_options import OPTIONS [as 别名]
# 或者: from build_options.OPTIONS import verbose [as 别名]
def _generate_ninjas():
_set_up_generate_ninja()
ninja_list = []
ninja_list.extend(_generate_independent_ninjas())
ninja_list.extend(
_generate_shared_lib_depending_ninjas(ninja_list))
ninja_list.extend(_generate_dependent_ninjas(ninja_list))
ninja_list.append(_generate_top_level_ninja(ninja_list))
# Run verification before emitting to files.
_verify_ninja_generator_list(ninja_list)
# Emit each ninja script to a file.
timer = build_common.SimpleTimer()
timer.start('Emitting ninja scripts', OPTIONS.verbose())
for ninja in ninja_list:
ninja.emit()
timer.done()
示例3: _generate_dependent_ninjas
# 需要导入模块: from build_options import OPTIONS [as 别名]
# 或者: from build_options.OPTIONS import verbose [as 别名]
def _generate_dependent_ninjas(ninja_list):
"""Generate the stage of ninjas coming after all executables."""
timer = build_common.SimpleTimer()
timer.start('Generating dependent ninjas', OPTIONS.verbose())
root_dir_install_all_targets = []
for n in ninja_list:
root_dir_install_all_targets.extend(build_common.get_android_fs_path(p) for
p in n._root_dir_install_targets)
dependent_ninjas = ninja_generator_runner.run_in_parallel(
[(job, root_dir_install_all_targets) for job in
config_loader.find_name('generate_binaries_depending_ninjas')],
OPTIONS.configure_jobs())
notice_ninja = ninja_generator.NoticeNinjaGenerator('notices')
notice_ninja.build_notices(ninja_list + dependent_ninjas)
dependent_ninjas.append(notice_ninja)
return dependent_ninjas
示例4: _generate_shared_lib_depending_ninjas
# 需要导入模块: from build_options import OPTIONS [as 别名]
# 或者: from build_options.OPTIONS import verbose [as 别名]
def _generate_shared_lib_depending_ninjas(ninja_list):
timer = build_common.SimpleTimer()
timer.start('Generating plugin and packaging ninjas', OPTIONS.verbose())
# We must generate plugin/nexe ninjas after make->ninja lazy generation
# so that we have the full list of shared libraries to pass to
# the load test.
# These modules depend on shared libraries generated in the previous phase.
installed_shared_libs = (
ninja_generator.NinjaGenerator.get_installed_shared_libs(ninja_list[:]))
ninja_generators = list(
config_loader.find_name('generate_shared_lib_depending_ninjas'))
task_list = [(f, installed_shared_libs) for f in ninja_generators]
if OPTIONS.run_tests():
test_ninja_generators = list(
config_loader.find_name('generate_shared_lib_depending_test_ninjas'))
task_list.extend([(f, installed_shared_libs)
for f in test_ninja_generators])
result = ninja_generator_runner.run_in_parallel(task_list,
OPTIONS.configure_jobs())
timer.done()
return result