| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 { | 4 { |
| 5 'variables': { | 5 'variables': { |
| 6 'libvpx_build_vp9%': 1, | 6 'libvpx_build_vp9%': 1, |
| 7 'libvpx_source%': 'source/libvpx', | 7 'libvpx_source%': 'source/libvpx', |
| 8 'conditions': [ | 8 'conditions': [ |
| 9 ['os_posix==1', { | 9 ['os_posix==1', { |
| 10 'asm_obj_extension': 'o', | 10 'asm_obj_extension': 'o', |
| 11 }], | 11 }], |
| 12 ['OS=="win"', { | 12 ['OS=="win"', { |
| 13 'asm_obj_extension': 'obj', | 13 'asm_obj_extension': 'obj', |
| 14 }], | 14 }], |
| 15 | 15 |
| 16 ['(target_arch=="arm" or target_arch=="armv7") and arm_neon==1', { | 16 ['msan==1', { |
| 17 'target_arch_full': 'arm-neon', | 17 'target_arch_full': 'generic', |
| 18 }, { | 18 }, { |
| 19 'conditions': [ | 19 'conditions': [ |
| 20 ['OS=="android" and ((target_arch=="arm" or target_arch=="armv7") and
arm_neon==0)', { | 20 ['(target_arch=="arm" or target_arch=="armv7") and arm_neon==1', { |
| 21 'target_arch_full': 'arm-neon-cpu-detect', | 21 'target_arch_full': 'arm-neon', |
| 22 }, { | 22 }, { |
| 23 'target_arch_full': '<(target_arch)', | 23 'conditions': [ |
| 24 ['OS=="android" and ((target_arch=="arm" or target_arch=="armv7")
and arm_neon==0)', { |
| 25 'target_arch_full': 'arm-neon-cpu-detect', |
| 26 }, { |
| 27 'target_arch_full': '<(target_arch)', |
| 28 }], |
| 29 ], |
| 24 }], | 30 }], |
| 25 ], | 31 ], |
| 26 }], | 32 }], |
| 27 | 33 |
| 28 ['os_posix == 1 and OS != "mac"', { | 34 ['os_posix == 1 and OS != "mac"', { |
| 29 'OS_CATEGORY%': 'linux', | 35 'OS_CATEGORY%': 'linux', |
| 30 }, { | 36 }, { |
| 31 'OS_CATEGORY%': '<(OS)', | 37 'OS_CATEGORY%': '<(OS)', |
| 32 }], | 38 }], |
| 33 ], | 39 ], |
| (...skipping 15 matching lines...) Expand all Loading... |
| 49 # crbug.com/352476). | 55 # crbug.com/352476). |
| 50 'optimize' :'size', | 56 'optimize' :'size', |
| 51 }], | 57 }], |
| 52 ], | 58 ], |
| 53 }, | 59 }, |
| 54 }, | 60 }, |
| 55 'conditions': [ | 61 'conditions': [ |
| 56 ['target_arch=="ia32"', { | 62 ['target_arch=="ia32"', { |
| 57 'includes': ['libvpx_srcs_x86_intrinsics.gypi', ], | 63 'includes': ['libvpx_srcs_x86_intrinsics.gypi', ], |
| 58 }], | 64 }], |
| 59 ['target_arch=="x64"', { | 65 ['target_arch=="x64" and msan==0', { |
| 60 'includes': ['libvpx_srcs_x86_64_intrinsics.gypi', ], | 66 'includes': ['libvpx_srcs_x86_64_intrinsics.gypi', ], |
| 61 }], | 67 }], |
| 62 [ '(target_arch=="arm" or target_arch=="armv7") and arm_neon==0 and OS=="and
roid"', { | 68 [ '(target_arch=="arm" or target_arch=="armv7") and arm_neon==0 and OS=="and
roid"', { |
| 63 # When building for targets which may not have NEON (but may!), include | 69 # When building for targets which may not have NEON (but may!), include |
| 64 # support for neon and hide it behind Android cpu-features. | 70 # support for neon and hide it behind Android cpu-features. |
| 65 'includes': ['libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi', ], | 71 'includes': ['libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi', ], |
| 66 }], | 72 }], |
| 67 [ '(target_arch != "arm" and target_arch != "armv7") and target_arch != "mip
sel"', { | 73 [ '(target_arch != "arm" and target_arch != "armv7") and target_arch != "mip
sel"', { |
| 68 'targets': [ | 74 'targets': [ |
| 69 { | 75 { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 'libvpx_intrinsics_ssse3', | 125 'libvpx_intrinsics_ssse3', |
| 120 # Currently no sse4_1 intrinsic functions | 126 # Currently no sse4_1 intrinsic functions |
| 121 #'libvpx_intrinsics_sse4_1', | 127 #'libvpx_intrinsics_sse4_1', |
| 122 # Currently no avx intrinsic functions | 128 # Currently no avx intrinsic functions |
| 123 #'libvpx_intrinsics_avx', | 129 #'libvpx_intrinsics_avx', |
| 124 # Add avx2 support when VS2013 lands: crbug.com/328981 | 130 # Add avx2 support when VS2013 lands: crbug.com/328981 |
| 125 #'libvpx_intrinsics_avx2', | 131 #'libvpx_intrinsics_avx2', |
| 126 ], | 132 ], |
| 127 }], | 133 }], |
| 128 ['target_arch=="x64"', { | 134 ['target_arch=="x64"', { |
| 129 'includes': [ | 135 'conditions': [ |
| 130 'libvpx_srcs_x86_64.gypi', | 136 ['msan==1', { |
| 131 ], | 137 'includes': [ 'libvpx_srcs_generic.gypi', ], |
| 132 'dependencies': [ | 138 }, { |
| 133 'libvpx_intrinsics_mmx', | 139 'includes': [ |
| 134 'libvpx_intrinsics_sse2', | 140 'libvpx_srcs_x86_64.gypi', |
| 135 # Currently no sse3 intrinsic functions | 141 'libvpx_srcs_nacl.gypi', |
| 136 #'libvpx_intrinsics_sse3', | 142 ], |
| 137 'libvpx_intrinsics_ssse3', | 143 'dependencies': [ |
| 138 # Currently no sse4_1 intrinsic functions | 144 'libvpx_intrinsics_mmx', |
| 139 #'libvpx_intrinsics_sse4_1', | 145 'libvpx_intrinsics_sse2', |
| 140 # Currently no avx intrinsic functions | 146 # Currently no sse3 intrinsic functions |
| 141 #'libvpx_intrinsics_avx', | 147 #'libvpx_intrinsics_sse3', |
| 142 # Add avx2 support when VS2013 lands: crbug.com/328981 | 148 'libvpx_intrinsics_ssse3', |
| 143 #'libvpx_intrinsics_avx2', | 149 # Currently no sse4_1 intrinsic functions |
| 150 #'libvpx_intrinsics_sse4_1', |
| 151 # Currently no avx intrinsic functions |
| 152 #'libvpx_intrinsics_avx', |
| 153 # Add avx2 support when VS2013 lands: crbug.com/328981 |
| 154 #'libvpx_intrinsics_avx2', |
| 155 ], |
| 156 }], |
| 144 ], | 157 ], |
| 145 }], | 158 }], |
| 146 ['clang == 1', { | 159 ['clang == 1', { |
| 147 'xcode_settings': { | 160 'xcode_settings': { |
| 148 'WARNING_CFLAGS': [ | 161 'WARNING_CFLAGS': [ |
| 149 # libvpx heavily relies on implicit enum casting. | 162 # libvpx heavily relies on implicit enum casting. |
| 150 '-Wno-conversion', | 163 '-Wno-conversion', |
| 151 # libvpx does `if ((a == b))` in some places. | 164 # libvpx does `if ((a == b))` in some places. |
| 152 '-Wno-parentheses-equality', | 165 '-Wno-parentheses-equality', |
| 153 ], | 166 ], |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 # Need this otherwise gyp won't run the rule on them. | 566 # Need this otherwise gyp won't run the rule on them. |
| 554 'sources': [ | 567 'sources': [ |
| 555 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', | 568 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', |
| 556 ], | 569 ], |
| 557 }], | 570 }], |
| 558 ], | 571 ], |
| 559 'includes': ['obj_int_extract.gypi'], | 572 'includes': ['obj_int_extract.gypi'], |
| 560 }, | 573 }, |
| 561 ], | 574 ], |
| 562 } | 575 } |
| OLD | NEW |