本文整理汇总了Python中src.build.build_options.OPTIONS.is_x86方法的典型用法代码示例。如果您正苦于以下问题:Python OPTIONS.is_x86方法的具体用法?Python OPTIONS.is_x86怎么用?Python OPTIONS.is_x86使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类src.build.build_options.OPTIONS
的用法示例。
在下文中一共展示了OPTIONS.is_x86方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _filter
# 需要导入模块: from src.build.build_options import OPTIONS [as 别名]
# 或者: from src.build.build_options.OPTIONS import is_x86 [as 别名]
def _filter(vars):
if vars.get_module_name() not in ('libjpeg', 'libjpeg_static'):
return False
if OPTIONS.is_x86():
# Adding this flag should be safe for all x86 Chromebooks.
vars.get_cflags().append('-msse2')
return True
示例2: _get_chromium_modules_to_skip
# 需要导入模块: from src.build.build_options import OPTIONS [as 别名]
# 或者: from src.build.build_options.OPTIONS import is_x86 [as 别名]
def _get_chromium_modules_to_skip(vars):
skip = [
# Sandbox libraries are not used, and require extra mods.
'sandbox_sandbox_services_gyp',
'sandbox_seccomp_bpf_gyp',
# We are building libvpx elsewhere.
'third_party_libvpx_libvpx_gyp']
if OPTIONS.is_x86():
skip.extend([
# These are x86 specific asm builds which are optional.
'media_media_asm_gyp',
'media_media_mmx_gyp',
'media_media_sse2_gyp',
# TODO(crbug.com/441473): L-Rebase: These modules require yasm.
'third_party_libvpx_libvpx_intrinsics_mmx_gyp',
'third_party_libvpx_libvpx_intrinsics_sse2_gyp',
'third_party_libvpx_libvpx_intrinsics_ssse3_gyp'])
return skip