Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Side by Side Diff: BUILD.gn

Issue 2340933005: Enable NEON for unittests on ios 64 bit. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 configs += [ ":libyuv_unittest_warnings_config" ] 175 configs += [ ":libyuv_unittest_warnings_config" ]
176 176
177 public_deps = [ "//testing/gtest" ] 177 public_deps = [ "//testing/gtest" ]
178 public_configs = [ ":libyuv_unittest_config" ] 178 public_configs = [ ":libyuv_unittest_config" ]
179 179
180 defines = [] 180 defines = []
181 181
182 if (is_linux) { 182 if (is_linux) {
183 cflags = [ "-fexceptions" ] 183 cflags = [ "-fexceptions" ]
184 } 184 }
185 if (is_ios && target_cpu=="arm64") {
186 defines += [ "LIBYUV_DISABLE_NEON" ]
187 }
188 if (is_ios) { 185 if (is_ios) {
189 configs -= [ "//build/config/compiler:default_symbols" ] 186 configs -= [ "//build/config/compiler:default_symbols" ]
190 configs += [ "//build/config/compiler:symbols" ] 187 configs += [ "//build/config/compiler:symbols" ]
191 cflags = [ "-Wno-sometimes-uninitialized" ] 188 cflags = [ "-Wno-sometimes-uninitialized" ]
192 } 189 }
193 if (!is_ios && !libyuv_disable_jpeg) { 190 if (!is_ios && !libyuv_disable_jpeg) {
194 defines += [ "HAVE_JPEG" ] 191 defines += [ "HAVE_JPEG" ]
195 } 192 }
196 if (is_android) { 193 if (is_android) {
197 deps += [ "//testing/android/native_test:native_test_native_code" ] 194 deps += [ "//testing/android/native_test:native_test_native_code" ]
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 236
240 executable("psnr") { 237 executable("psnr") {
241 sources = [ 238 sources = [
242 # sources 239 # sources
243 "util/psnr_main.cc", 240 "util/psnr_main.cc",
244 "util/psnr.cc", 241 "util/psnr.cc",
245 "util/ssim.cc" 242 "util/ssim.cc"
246 ] 243 ]
247 deps = [ ":libyuv" ] 244 deps = [ ":libyuv" ]
248 245
249 if (is_ios && target_cpu=="arm64") {
250 # TODO(fbarchard): Enable Neon. See https://crbug.com/646279
251 defines = [ "LIBYUV_DISABLE_NEON" ]
252 }
253 if (!is_ios && !libyuv_disable_jpeg) { 246 if (!is_ios && !libyuv_disable_jpeg) {
254 defines = [ "HAVE_JPEG" ] 247 defines = [ "HAVE_JPEG" ]
255 } 248 }
256 } 249 }
257 250
258 executable("cpuid") { 251 executable("cpuid") {
259 sources = [ 252 sources = [
260 # sources 253 # sources
261 "util/cpuid.c" 254 "util/cpuid.c"
262 ] 255 ]
263 deps = [ ":libyuv" ] 256 deps = [ ":libyuv" ]
264 } 257 }
265 } 258 }
OLDNEW
« no previous file with comments | « no previous file | README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698