| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 static_library("libvpx_intrinsics_sse4_1") { | 163 static_library("libvpx_intrinsics_sse4_1") { |
| 164 configs += [ ":libvpx_config" ] | 164 configs += [ ":libvpx_config" ] |
| 165 cflags = [ "-msse4.1" ] | 165 cflags = [ "-msse4.1" ] |
| 166 if (cpu_arch == "x86") { | 166 if (cpu_arch == "x86") { |
| 167 sources = libvpx_srcs_x86_sse4_1 | 167 sources = libvpx_srcs_x86_sse4_1 |
| 168 } else if (cpu_arch == "x64") { | 168 } else if (cpu_arch == "x64") { |
| 169 sources = libvpx_srcs_x86_64_sse4_1 | 169 sources = libvpx_srcs_x86_64_sse4_1 |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 | 172 |
| 173 static_library("libvpx_intrinsics_neon") { | 173 if (cpu_arch_full == "arm-neon-cpu-detect") { |
| 174 configs += [ ":libvpx_config" ] | 174 static_library("libvpx_intrinsics_neon") { |
| 175 cflags = [ "-mfpu=neon", "-mfloat-abi=softfp" ] | 175 configs += [ ":libvpx_config" ] |
| 176 sources = libvpx_srcs_arm_neon_cpu_detect_neon | 176 cflags = [ "-mfpu=neon", "-mfloat-abi=softfp" ] |
| 177 sources = libvpx_srcs_arm_neon_cpu_detect_neon |
| 178 } |
| 177 } | 179 } |
| 178 | 180 |
| 179 static_library("libvpx") { | 181 static_library("libvpx") { |
| 180 if (!is_debug && is_win && is_official_build) { | 182 if (!is_debug && is_win && is_official_build) { |
| 181 configs -= [ "//build/config/compiler:optimize" ] | 183 configs -= [ "//build/config/compiler:optimize" ] |
| 182 configs += [ "//build/config/compiler:optimize_max" ] | 184 configs += [ "//build/config/compiler:optimize_max" ] |
| 183 } | 185 } |
| 184 | 186 |
| 185 if (cpu_arch == "x86") { | 187 if (cpu_arch == "x86") { |
| 186 sources = libvpx_srcs_x86 | 188 sources = libvpx_srcs_x86 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 if (cpu_arch == "arm") { | 223 if (cpu_arch == "arm") { |
| 222 deps += [ | 224 deps += [ |
| 223 # TODO(hclam): GN build doesn't compile NEON intrinsics because | 225 # TODO(hclam): GN build doesn't compile NEON intrinsics because |
| 224 # -mfpu=vfpv3-d16 needs to be removed. | 226 # -mfpu=vfpv3-d16 needs to be removed. |
| 225 # ":libvpx_intrinsics_neon" | 227 # ":libvpx_intrinsics_neon" |
| 226 ] | 228 ] |
| 227 } | 229 } |
| 228 deps += [ "//third_party/android_tools:cpu_features" ] | 230 deps += [ "//third_party/android_tools:cpu_features" ] |
| 229 } | 231 } |
| 230 } | 232 } |
| OLD | NEW |