| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/arm.gni") | 5 import("//build/config/arm.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//third_party/libvpx/libvpx_srcs.gni") | 7 import("//third_party/libvpx/libvpx_srcs.gni") |
| 8 import("//third_party/yasm/yasm_assemble.gni") | 8 import("//third_party/yasm/yasm_assemble.gni") |
| 9 | 9 |
| 10 if (is_posix && !is_mac) { | 10 if (is_posix && !is_mac) { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 if (cpu_arch_full == "arm-neon" || | 180 if (cpu_arch_full == "arm-neon" || |
| 181 cpu_arch_full == "arm-neon-cpu-detect") { | 181 cpu_arch_full == "arm-neon-cpu-detect") { |
| 182 cflags = [ "-mfpu=neon" ] | 182 cflags = [ "-mfpu=neon" ] |
| 183 } | 183 } |
| 184 deps = [ | 184 deps = [ |
| 185 ":convert_arm_assembly", | 185 ":convert_arm_assembly", |
| 186 ] | 186 ] |
| 187 } | 187 } |
| 188 } | 188 } |
| 189 | 189 |
| 190 static_library("libvpx") { | 190 source_set("libvpx") { |
| 191 if (!is_debug && is_win && is_official_build) { | 191 if (!is_debug && is_win && is_official_build) { |
| 192 configs -= [ "//build/config/compiler:optimize" ] | 192 configs -= [ "//build/config/compiler:optimize" ] |
| 193 configs += [ "//build/config/compiler:optimize_max" ] | 193 configs += [ "//build/config/compiler:optimize_max" ] |
| 194 } | 194 } |
| 195 | 195 |
| 196 if (current_cpu == "x86") { | 196 if (current_cpu == "x86") { |
| 197 sources = libvpx_srcs_x86 | 197 sources = libvpx_srcs_x86 |
| 198 } else if (current_cpu == "x64") { | 198 } else if (current_cpu == "x64") { |
| 199 if (is_msan) { | 199 if (is_msan) { |
| 200 sources = libvpx_srcs_generic | 200 sources = libvpx_srcs_generic |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 } | 244 } |
| 245 if (is_android) { | 245 if (is_android) { |
| 246 deps += [ "//third_party/android_tools:cpu_features" ] | 246 deps += [ "//third_party/android_tools:cpu_features" ] |
| 247 } | 247 } |
| 248 if (current_cpu == "arm") { | 248 if (current_cpu == "arm") { |
| 249 deps += [ ":libvpx_assembly_arm" ] | 249 deps += [ ":libvpx_assembly_arm" ] |
| 250 } | 250 } |
| 251 | 251 |
| 252 public_configs = [ ":libvpx_external_config" ] | 252 public_configs = [ ":libvpx_external_config" ] |
| 253 } | 253 } |
| OLD | NEW |