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/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
10 | 10 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 if (cpu_arch == "x86") { | 401 if (cpu_arch == "x86") { |
402 yasm_flags += [ "-DARCH_X86_32" ] | 402 yasm_flags += [ "-DARCH_X86_32" ] |
403 } else if (cpu_arch == "x64") { | 403 } else if (cpu_arch == "x64") { |
404 yasm_flags += [ "-DARCH_X86_64" ] | 404 yasm_flags += [ "-DARCH_X86_64" ] |
405 sources += [ | 405 sources += [ |
406 "simd/linear_scale_yuv_to_rgb_mmx_x64.asm", | 406 "simd/linear_scale_yuv_to_rgb_mmx_x64.asm", |
407 "simd/scale_yuv_to_rgb_sse2_x64.asm", | 407 "simd/scale_yuv_to_rgb_sse2_x64.asm", |
408 ] | 408 ] |
409 } | 409 } |
410 | 410 |
411 if (is_mac) { | 411 if (is_mac || is_ios) { |
412 yasm_flags += [ | 412 yasm_flags += [ |
413 "-DPREFIX", | 413 "-DPREFIX", |
414 "-DMACHO", | 414 "-DMACHO", |
415 ] | 415 ] |
416 } else { | 416 } else { |
417 if (is_posix) { | 417 if (is_posix) { |
418 yasm_flags += [ "-DELF" ] | 418 yasm_flags += [ "-DELF" ] |
419 if (cpu_arch == "x64") { | 419 if (cpu_arch == "x64") { |
420 # TODO(ajwong): Why isn't this true in mac? | 420 # TODO(ajwong): Why isn't this true in mac? |
421 yasm_flags += [ "-DPIC" ] | 421 yasm_flags += [ "-DPIC" ] |
422 } | 422 } |
423 } | 423 } |
424 } | 424 } |
425 } | 425 } |
426 } | 426 } |
OLD | NEW |