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 == "arm64" || (current_cpu == "arm" && (arm_use_neon || a
rm_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 static_library("libyuv") { |
22 sources = [ | 22 sources = [ |
23 # Headers | 23 # Headers |
24 "include/libyuv.h", | 24 "include/libyuv.h", |
25 "include/libyuv/basic_types.h", | 25 "include/libyuv/basic_types.h", |
26 "include/libyuv/compare.h", | 26 "include/libyuv/compare.h", |
27 "include/libyuv/convert.h", | 27 "include/libyuv/convert.h", |
28 "include/libyuv/convert_argb.h", | 28 "include/libyuv/convert_argb.h", |
29 "include/libyuv/convert_from.h", | 29 "include/libyuv/convert_from.h", |
30 "include/libyuv/convert_from_argb.h", | 30 "include/libyuv/convert_from_argb.h", |
31 "include/libyuv/cpu_id.h", | 31 "include/libyuv/cpu_id.h", |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 ] | 117 ] |
118 | 118 |
119 public_configs = [ ":libyuv_config" ] | 119 public_configs = [ ":libyuv_config" ] |
120 | 120 |
121 if (current_cpu != "arm64") { | 121 if (current_cpu != "arm64") { |
122 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] | 122 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
123 cflags = [ "-mfpu=neon" ] | 123 cflags = [ "-mfpu=neon" ] |
124 } | 124 } |
125 } | 125 } |
126 } | 126 } |
OLD | NEW |