OLD | NEW |
1 # Copyright 2014 The LibYuv Project Authors. All rights reserved. | 1 # Copyright 2014 The LibYuv Project Authors. All rights reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("libyuv.gni") | 9 import("libyuv.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 | 92 |
93 if (libyuv_use_neon) { | 93 if (libyuv_use_neon) { |
94 deps += [ ":libyuv_neon" ] | 94 deps += [ ":libyuv_neon" ] |
95 } | 95 } |
96 | 96 |
97 if (libyuv_use_msa) { | 97 if (libyuv_use_msa) { |
98 deps += [ ":libyuv_msa" ] | 98 deps += [ ":libyuv_msa" ] |
99 } | 99 } |
100 | 100 |
101 if (is_nacl) { | 101 # Always enable optimization for Release and NaCl builds (to workaround |
102 # Always enable optimization under NaCl to workaround crbug.com/538243 . | 102 # crbug.com/538243). |
| 103 if (!is_debug || is_nacl) { |
103 configs -= [ "//build/config/compiler:default_optimization" ] | 104 configs -= [ "//build/config/compiler:default_optimization" ] |
| 105 # Enable optimize for speed (-O2) over size (-Os). |
104 configs += [ "//build/config/compiler:optimize_max" ] | 106 configs += [ "//build/config/compiler:optimize_max" ] |
105 } | 107 } |
106 } | 108 } |
107 | 109 |
108 if (libyuv_use_neon) { | 110 if (libyuv_use_neon) { |
109 static_library("libyuv_neon") { | 111 static_library("libyuv_neon") { |
110 sources = [ | 112 sources = [ |
111 # ARM Source Files | 113 # ARM Source Files |
112 "source/compare_neon.cc", | 114 "source/compare_neon.cc", |
113 "source/compare_neon64.cc", | 115 "source/compare_neon64.cc", |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 } | 266 } |
265 | 267 |
266 executable("cpuid") { | 268 executable("cpuid") { |
267 sources = [ | 269 sources = [ |
268 # sources | 270 # sources |
269 "util/cpuid.c" | 271 "util/cpuid.c" |
270 ] | 272 ] |
271 deps = [ ":libyuv" ] | 273 deps = [ ":libyuv" ] |
272 } | 274 } |
273 } | 275 } |
OLD | NEW |