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 under NaCl to workaround crbug.com/538243 . |
kjellander_chromium
2016/10/04 06:06:21
Change to:
Always enable optimization for Release
fbarchard1
2016/10/04 18:23:45
Done.
| |
102 # Always enable optimization under NaCl to workaround crbug.com/538243 . | 102 # enable O2 and ltcg. |
kjellander_chromium
2016/10/04 06:06:21
You might want to rephrase this to something like:
fbarchard1
2016/10/04 18:23:45
Done.
Its not just for Windows. Arm release build
| |
103 if (!is_debug || is_nacl) { | |
103 configs -= [ "//build/config/compiler:default_optimization" ] | 104 configs -= [ "//build/config/compiler:default_optimization" ] |
104 configs += [ "//build/config/compiler:optimize_max" ] | 105 configs += [ "//build/config/compiler:optimize_max" ] |
105 } | 106 } |
106 } | 107 } |
107 | 108 |
108 if (libyuv_use_neon) { | 109 if (libyuv_use_neon) { |
109 static_library("libyuv_neon") { | 110 static_library("libyuv_neon") { |
110 sources = [ | 111 sources = [ |
111 # ARM Source Files | 112 # ARM Source Files |
112 "source/compare_neon.cc", | 113 "source/compare_neon.cc", |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 } | 265 } |
265 | 266 |
266 executable("cpuid") { | 267 executable("cpuid") { |
267 sources = [ | 268 sources = [ |
268 # sources | 269 # sources |
269 "util/cpuid.c" | 270 "util/cpuid.c" |
270 ] | 271 ] |
271 deps = [ ":libyuv" ] | 272 deps = [ ":libyuv" ] |
272 } | 273 } |
273 } | 274 } |
OLD | NEW |