OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/arm.gni") | 5 import("//build/config/arm.gni") |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//third_party/libvpx/libvpx_srcs.gni") | 8 import("//third_party/libvpx/libvpx_srcs.gni") |
9 import("//third_party/yasm/yasm_assemble.gni") | 9 import("//third_party/yasm/yasm_assemble.gni") |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 cflags = [ | 64 cflags = [ |
65 # libvpx heavily relies on implicit enum casting. | 65 # libvpx heavily relies on implicit enum casting. |
66 "-Wno-conversion", | 66 "-Wno-conversion", |
67 | 67 |
68 # libvpx does `if ((a == b))` in some places. | 68 # libvpx does `if ((a == b))` in some places. |
69 "-Wno-parentheses-equality", | 69 "-Wno-parentheses-equality", |
70 | 70 |
71 # libvpx has many static functions in header, which trigger this warning. | 71 # libvpx has many static functions in header, which trigger this warning. |
72 "-Wno-unused-function", | 72 "-Wno-unused-function", |
73 ] | 73 ] |
74 | |
Johann
2017/03/30 18:50:21
The space seems to make sense. Just not sure why i
marpan
2017/03/30 19:21:13
Acknowledged.
| |
74 # Fixes a mac link error for vpx_scaled_2d: | 75 # Fixes a mac link error for vpx_scaled_2d: |
75 # Undefined symbols for architecture x86_64: | 76 # Undefined symbols for architecture x86_64: |
76 # "_vpx_scaled_2d", referenced from: | 77 # "_vpx_scaled_2d", referenced from: |
77 # _vp9_scale_and_extend_frame_c in libvpx.a(vp9_frame_scale.o) | 78 # _vp9_scale_and_extend_frame_c in libvpx.a(vp9_frame_scale.o) |
78 # (maybe you meant: _vpx_scaled_2d_ssse3) | 79 # (maybe you meant: _vpx_scaled_2d_ssse3) |
79 # ld: symbol(s) not found for architecture x86_64 | 80 # ld: symbol(s) not found for architecture x86_64 |
80 if (is_mac) { | 81 if (is_mac) { |
81 cflags += [ "-fno-common" ] | 82 cflags += [ "-fno-common" ] |
82 } | 83 } |
83 } else if (!is_win) { | 84 } else if (!is_win) { |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
336 } | 337 } |
337 if (is_android) { | 338 if (is_android) { |
338 deps += [ "//third_party/android_tools:cpu_features" ] | 339 deps += [ "//third_party/android_tools:cpu_features" ] |
339 } | 340 } |
340 if (current_cpu == "arm" && arm_assembly_sources != []) { | 341 if (current_cpu == "arm" && arm_assembly_sources != []) { |
341 deps += [ ":libvpx_assembly_arm" ] | 342 deps += [ ":libvpx_assembly_arm" ] |
342 } | 343 } |
343 | 344 |
344 public_configs = [ ":libvpx_external_config" ] | 345 public_configs = [ ":libvpx_external_config" ] |
345 } | 346 } |
OLD | NEW |