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 # Disable LTO for neon targets | 8 # Disable LTO for neon targets |
9 # crbug.com/408997 | 9 # crbug.com/408997 |
10 'use_lto%': 0, | 10 'use_lto%': 0, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 ['OS=="win" and buildtype=="Official"', { | 58 ['OS=="win" and buildtype=="Official"', { |
59 # Do not set to 'size', as it results in an error on win64. | 59 # Do not set to 'size', as it results in an error on win64. |
60 'optimize' :'speed', | 60 'optimize' :'speed', |
61 }], | 61 }], |
62 ], | 62 ], |
63 'clang_warning_flags': [ | 63 'clang_warning_flags': [ |
64 # libvpx heavily relies on implicit enum casting. | 64 # libvpx heavily relies on implicit enum casting. |
65 '-Wno-conversion', | 65 '-Wno-conversion', |
66 # libvpx does `if ((a == b))` in some places. | 66 # libvpx does `if ((a == b))` in some places. |
67 '-Wno-parentheses-equality', | 67 '-Wno-parentheses-equality', |
| 68 # libvpx has many static functions in header, which trigger this warning |
| 69 '-Wno-unused-function', |
68 ], | 70 ], |
69 'clang_warning_flags_unset': [ | 71 'clang_warning_flags_unset': [ |
70 # libvpx does assert(!"foo"); in some places. | 72 # libvpx does assert(!"foo"); in some places. |
71 '-Wstring-conversion', | 73 '-Wstring-conversion', |
72 ], | 74 ], |
73 }, | 75 }, |
74 }, | 76 }, |
75 'conditions': [ | 77 'conditions': [ |
76 ['target_arch=="ia32"', { | 78 ['target_arch=="ia32"', { |
77 'includes': ['libvpx_srcs_x86_intrinsics.gypi', ], | 79 'includes': ['libvpx_srcs_x86_intrinsics.gypi', ], |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 '-fstack-protector-all', # Implies -fstack-protector | 282 '-fstack-protector-all', # Implies -fstack-protector |
281 ], | 283 ], |
282 }, | 284 }, |
283 }], | 285 }], |
284 ], | 286 ], |
285 }, | 287 }, |
286 ], | 288 ], |
287 }], | 289 }], |
288 ], | 290 ], |
289 } | 291 } |
OLD | NEW |