| 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("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
| 10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
| 11 | 11 |
| 12 config("libyuv_config") { | 12 config("libyuv_config") { |
| 13 include_dirs = [ | 13 include_dirs = [ |
| 14 ".", | 14 ".", |
| 15 "include", | 15 "include", |
| 16 ] | 16 ] |
| 17 } | 17 } |
| 18 | 18 |
| 19 use_neon = current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon) | 19 use_neon = current_cpu == "arm64" || (current_cpu == "arm" && (arm_use_neon || a
rm_optionally_use_neon)) |
| 20 | 20 |
| 21 source_set("libyuv") { | 21 source_set("libyuv") { |
| 22 sources = [ | 22 sources = [ |
| 23 "include/libyuv.h", | 23 "include/libyuv.h", |
| 24 "include/libyuv/basic_types.h", | 24 "include/libyuv/basic_types.h", |
| 25 "include/libyuv/compare.h", | 25 "include/libyuv/compare.h", |
| 26 "include/libyuv/convert.h", | 26 "include/libyuv/convert.h", |
| 27 "include/libyuv/convert_argb.h", | 27 "include/libyuv/convert_argb.h", |
| 28 "include/libyuv/convert_from.h", | 28 "include/libyuv/convert_from.h", |
| 29 "include/libyuv/convert_from_argb.h", | 29 "include/libyuv/convert_from_argb.h", |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 "source/rotate_neon.cc", | 118 "source/rotate_neon.cc", |
| 119 "source/rotate_neon64.cc", | 119 "source/rotate_neon64.cc", |
| 120 "source/row_neon.cc", | 120 "source/row_neon.cc", |
| 121 "source/row_neon64.cc", | 121 "source/row_neon64.cc", |
| 122 "source/scale_neon.cc", | 122 "source/scale_neon.cc", |
| 123 "source/scale_neon64.cc", | 123 "source/scale_neon64.cc", |
| 124 ] | 124 ] |
| 125 | 125 |
| 126 public_configs = [ ":libyuv_config" ] | 126 public_configs = [ ":libyuv_config" ] |
| 127 | 127 |
| 128 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] | 128 if (current_cpu != "arm64") { |
| 129 cflags = [ "-mfpu=neon" ] | 129 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 130 cflags = [ "-mfpu=neon" ] |
| 131 } |
| 130 } | 132 } |
| 131 } | 133 } |
| OLD | NEW |