Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: BUILD.gn

Issue 550533002: libvpx: exclude NEON target on x86 for GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698