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") |
11 | 11 |
12 config("libyuv_config") { | 12 config("libyuv_config") { |
13 include_dirs = [ "include" ] | 13 include_dirs = [ "include" ] |
14 if (is_android && current_cpu=="arm64") { | 14 if (is_android && current_cpu=="arm64") { |
15 ldflags = [ "-Wl,--dynamic-linker,/system/bin/linker64" ] | 15 ldflags = [ "-Wl,--dynamic-linker,/system/bin/linker64" ] |
16 } | 16 } |
17 if (is_android && current_cpu != "arm64") { | 17 if (is_android && current_cpu != "arm64") { |
18 ldflags = [ "-Wl,--dynamic-linker,/system/bin/linker" ] | 18 ldflags = [ "-Wl,--dynamic-linker,/system/bin/linker" ] |
19 } | 19 } |
20 } | 20 } |
21 | 21 |
| 22 # This target is built when no specific target is specified on the command line. |
| 23 group("default") { |
| 24 testonly = true |
| 25 deps = [ |
| 26 ":libyuv", |
| 27 ] |
| 28 if (libyuv_include_tests) { |
| 29 deps += [ |
| 30 ":compare", |
| 31 ":convert", |
| 32 ":cpuid", |
| 33 ":libyuv_unittest", |
| 34 ":psnr", |
| 35 ] |
| 36 } |
| 37 } |
| 38 |
22 static_library("libyuv") { | 39 static_library("libyuv") { |
23 sources = [ | 40 sources = [ |
24 # Headers | 41 # Headers |
25 "include/libyuv.h", | 42 "include/libyuv.h", |
26 "include/libyuv/basic_types.h", | 43 "include/libyuv/basic_types.h", |
27 "include/libyuv/compare.h", | 44 "include/libyuv/compare.h", |
28 "include/libyuv/convert.h", | 45 "include/libyuv/convert.h", |
29 "include/libyuv/convert_argb.h", | 46 "include/libyuv/convert_argb.h", |
30 "include/libyuv/convert_from.h", | 47 "include/libyuv/convert_from.h", |
31 "include/libyuv/convert_from_argb.h", | 48 "include/libyuv/convert_from_argb.h", |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 } | 283 } |
267 | 284 |
268 executable("cpuid") { | 285 executable("cpuid") { |
269 sources = [ | 286 sources = [ |
270 # sources | 287 # sources |
271 "util/cpuid.c" | 288 "util/cpuid.c" |
272 ] | 289 ] |
273 deps = [ ":libyuv" ] | 290 deps = [ ":libyuv" ] |
274 } | 291 } |
275 } | 292 } |
OLD | NEW |