| 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") |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 "source/scale_common.cc", | 75 "source/scale_common.cc", |
| 76 "source/scale_mips.cc", | 76 "source/scale_mips.cc", |
| 77 "source/scale_gcc.cc", | 77 "source/scale_gcc.cc", |
| 78 "source/scale_win.cc", | 78 "source/scale_win.cc", |
| 79 "source/video_common.cc", | 79 "source/video_common.cc", |
| 80 ] | 80 ] |
| 81 | 81 |
| 82 public_configs = [ ":libyuv_config" ] | 82 public_configs = [ ":libyuv_config" ] |
| 83 | 83 |
| 84 defines = [] | 84 defines = [] |
| 85 deps = [] |
| 85 | 86 |
| 86 if (!is_ios) { | 87 if (!is_ios) { |
| 87 defines += [ "HAVE_JPEG" ] | 88 defines += [ "HAVE_JPEG" ] |
| 89 deps += [ "//third_party:jpeg" ] |
| 88 } | 90 } |
| 89 | 91 |
| 90 deps = [ | |
| 91 "//third_party:jpeg", | |
| 92 ] | |
| 93 | |
| 94 if (use_neon) { | 92 if (use_neon) { |
| 95 deps += [ ":libyuv_neon" ] | 93 deps += [ ":libyuv_neon" ] |
| 96 } | 94 } |
| 97 | 95 |
| 98 if (is_nacl) { | 96 if (is_nacl) { |
| 99 # Always enable optimization under NaCl to workaround crbug.com/538243 . | 97 # Always enable optimization under NaCl to workaround crbug.com/538243 . |
| 100 configs -= [ "//build/config/compiler:default_optimization" ] | 98 configs -= [ "//build/config/compiler:default_optimization" ] |
| 101 configs += [ "//build/config/compiler:optimize_max" ] | 99 configs += [ "//build/config/compiler:optimize_max" ] |
| 102 } | 100 } |
| 103 } | 101 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 117 ] | 115 ] |
| 118 | 116 |
| 119 public_configs = [ ":libyuv_config" ] | 117 public_configs = [ ":libyuv_config" ] |
| 120 | 118 |
| 121 if (current_cpu != "arm64") { | 119 if (current_cpu != "arm64") { |
| 122 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] | 120 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 123 cflags = [ "-mfpu=neon" ] | 121 cflags = [ "-mfpu=neon" ] |
| 124 } | 122 } |
| 125 } | 123 } |
| 126 } | 124 } |
| OLD | NEW |