| 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") |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 if (!is_ios) { | 88 if (!is_ios) { |
| 89 defines += [ "HAVE_JPEG" ] | 89 defines += [ "HAVE_JPEG" ] |
| 90 deps += [ "//third_party:jpeg" ] | 90 deps += [ "//third_party:jpeg" ] |
| 91 } | 91 } |
| 92 | 92 |
| 93 if (libyuv_use_neon) { | 93 if (libyuv_use_neon) { |
| 94 deps += [ ":libyuv_neon" ] | 94 deps += [ ":libyuv_neon" ] |
| 95 } | 95 } |
| 96 | 96 |
| 97 if (libyuv_use_msa) { |
| 98 deps += [ ":libyuv_msa" ] |
| 99 } |
| 100 |
| 97 if (is_nacl) { | 101 if (is_nacl) { |
| 98 # Always enable optimization under NaCl to workaround crbug.com/538243 . | 102 # Always enable optimization under NaCl to workaround crbug.com/538243 . |
| 99 configs -= [ "//build/config/compiler:default_optimization" ] | 103 configs -= [ "//build/config/compiler:default_optimization" ] |
| 100 configs += [ "//build/config/compiler:optimize_max" ] | 104 configs += [ "//build/config/compiler:optimize_max" ] |
| 101 } | 105 } |
| 102 } | 106 } |
| 103 | 107 |
| 104 if (libyuv_use_neon) { | 108 if (libyuv_use_neon) { |
| 105 static_library("libyuv_neon") { | 109 static_library("libyuv_neon") { |
| 106 sources = [ | 110 sources = [ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 117 | 121 |
| 118 public_configs = [ ":libyuv_config" ] | 122 public_configs = [ ":libyuv_config" ] |
| 119 | 123 |
| 120 if (current_cpu != "arm64") { | 124 if (current_cpu != "arm64") { |
| 121 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] | 125 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 122 cflags = [ "-mfpu=neon" ] | 126 cflags = [ "-mfpu=neon" ] |
| 123 } | 127 } |
| 124 } | 128 } |
| 125 } | 129 } |
| 126 | 130 |
| 131 if (libyuv_use_msa) { |
| 132 static_library("libyuv_msa") { |
| 133 sources = [ |
| 134 # MSA Source Files |
| 135 "source/row_msa.cc", |
| 136 ] |
| 137 |
| 138 public_configs = [ ":libyuv_config" ] |
| 139 } |
| 140 } |
| 141 |
| 127 if (libyuv_include_tests) { | 142 if (libyuv_include_tests) { |
| 128 config("libyuv_unittest_warnings_config") { | 143 config("libyuv_unittest_warnings_config") { |
| 129 if (!is_win) { | 144 if (!is_win) { |
| 130 cflags = [ | 145 cflags = [ |
| 131 # TODO(fbarchard): Fix sign and unused variable warnings. | 146 # TODO(fbarchard): Fix sign and unused variable warnings. |
| 132 "-Wno-sign-compare", | 147 "-Wno-sign-compare", |
| 133 "-Wno-unused-variable" | 148 "-Wno-unused-variable" |
| 134 ] | 149 ] |
| 135 } | 150 } |
| 136 if (is_win) { | 151 if (is_win) { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 } | 264 } |
| 250 | 265 |
| 251 executable("cpuid") { | 266 executable("cpuid") { |
| 252 sources = [ | 267 sources = [ |
| 253 # sources | 268 # sources |
| 254 "util/cpuid.c" | 269 "util/cpuid.c" |
| 255 ] | 270 ] |
| 256 deps = [ ":libyuv" ] | 271 deps = [ ":libyuv" ] |
| 257 } | 272 } |
| 258 } | 273 } |
| OLD | NEW |