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

Side by Side Diff: BUILD.gn

Issue 570793002: GN & libvpx: Missing deps for generating ASM offsets (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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 sources = libvpx_srcs_x86_64_assembly 120 sources = libvpx_srcs_x86_64_assembly
121 } 121 }
122 122
123 defines = [ "CHROMIUM" ] 123 defines = [ "CHROMIUM" ]
124 include_dirs = [ 124 include_dirs = [
125 "//third_party/libvpx/source/config/$os_category/$cpu_arch_full", 125 "//third_party/libvpx/source/config/$os_category/$cpu_arch_full",
126 "//third_party/libvpx/source/config", 126 "//third_party/libvpx/source/config",
127 "//third_party/libvpx/source/libvpx", 127 "//third_party/libvpx/source/libvpx",
128 target_gen_dir 128 target_gen_dir
129 ] 129 ]
130 deps = [
131 ":gen_asm_offsets_vp8",
132 ":gen_asm_offsets_scale",
133 ]
130 } 134 }
131 } 135 }
132 136
133 static_library("libvpx_intrinsics_mmx") { 137 static_library("libvpx_intrinsics_mmx") {
134 configs += [ ":libvpx_config" ] 138 configs += [ ":libvpx_config" ]
135 cflags = [ "-mmmx" ] 139 cflags = [ "-mmmx" ]
136 if (cpu_arch == "x86") { 140 if (cpu_arch == "x86") {
137 sources = libvpx_srcs_x86_mmx 141 sources = libvpx_srcs_x86_mmx
138 } else if (cpu_arch == "x64") { 142 } else if (cpu_arch == "x64") {
139 sources = libvpx_srcs_x86_64_mmx 143 sources = libvpx_srcs_x86_64_mmx
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 "-s", 199 "-s",
196 rebase_path("//third_party/libvpx/source/libvpx/build/make/ads2gas.pl", 200 rebase_path("//third_party/libvpx/source/libvpx/build/make/ads2gas.pl",
197 root_build_dir), 201 root_build_dir),
198 "-i", "{{source}}", 202 "-i", "{{source}}",
199 "-o", rebase_path("$target_gen_dir/{{source_name_part}}.S") 203 "-o", rebase_path("$target_gen_dir/{{source_name_part}}.S")
200 ] 204 ]
201 } 205 }
202 206
203 static_library("libvpx_assembly_arm") { 207 static_library("libvpx_assembly_arm") {
204 sources = get_target_outputs(":convert_arm_assembly") 208 sources = get_target_outputs(":convert_arm_assembly")
205 deps = [ ":convert_arm_assembly" ]
206 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] 209 configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
207 configs += [ ":libvpx_config" ] 210 configs += [ ":libvpx_config" ]
208 if (cpu_arch_full == "arm-neon" || 211 if (cpu_arch_full == "arm-neon" ||
209 cpu_arch_full == "arm-neon-cpu-detect") { 212 cpu_arch_full == "arm-neon-cpu-detect") {
210 cflags = [ "-mfpu=neon" ] 213 cflags = [ "-mfpu=neon" ]
211 } 214 }
215 deps = [
216 ":convert_arm_assembly",
217 ":gen_asm_offsets_vp8",
218 ":gen_asm_offsets_scale",
219 ]
212 } 220 }
213 } 221 }
214 222
215 static_library("libvpx") { 223 static_library("libvpx") {
216 if (!is_debug && is_win && is_official_build) { 224 if (!is_debug && is_win && is_official_build) {
217 configs -= [ "//build/config/compiler:optimize" ] 225 configs -= [ "//build/config/compiler:optimize" ]
218 configs += [ "//build/config/compiler:optimize_max" ] 226 configs += [ "//build/config/compiler:optimize_max" ]
219 } 227 }
220 228
221 if (cpu_arch == "x86") { 229 if (cpu_arch == "x86") {
(...skipping 10 matching lines...) Expand all
232 if (arm_use_neon) { 240 if (arm_use_neon) {
233 sources = libvpx_srcs_arm_neon 241 sources = libvpx_srcs_arm_neon
234 } else if (is_android) { 242 } else if (is_android) {
235 sources = libvpx_srcs_arm_neon_cpu_detect 243 sources = libvpx_srcs_arm_neon_cpu_detect
236 } else { 244 } else {
237 sources = libvpx_srcs_arm 245 sources = libvpx_srcs_arm
238 } 246 }
239 } else if (cpu_arch == "arm64") { 247 } else if (cpu_arch == "arm64") {
240 sources = libvpx_srcs_arm64 248 sources = libvpx_srcs_arm64
241 } 249 }
242 deps = [
243 ":gen_asm_offsets_vp8",
244 ]
245 configs += [ ":libvpx_config" ] 250 configs += [ ":libvpx_config" ]
251 deps = []
246 if (cpu_arch == "x86" || (cpu_arch == "x64" && !is_msan)) { 252 if (cpu_arch == "x86" || (cpu_arch == "x64" && !is_msan)) {
247 deps += [ 253 deps += [
248 ":libvpx_yasm", 254 ":libvpx_yasm",
249 ":libvpx_intrinsics_mmx", 255 ":libvpx_intrinsics_mmx",
250 ":libvpx_intrinsics_sse2", 256 ":libvpx_intrinsics_sse2",
251 ":libvpx_intrinsics_ssse3", 257 ":libvpx_intrinsics_ssse3",
252 ":libvpx_intrinsics_sse4_1", 258 ":libvpx_intrinsics_sse4_1",
253 ] 259 ]
254 } 260 }
255 if (cpu_arch_full == "arm-neon-cpu-detect") { 261 if (cpu_arch_full == "arm-neon-cpu-detect") {
256 deps += [ ":libvpx_intrinsics_neon" ] 262 deps += [ ":libvpx_intrinsics_neon" ]
257 } 263 }
258 if (is_android) { 264 if (is_android) {
259 deps += [ "//third_party/android_tools:cpu_features" ] 265 deps += [ "//third_party/android_tools:cpu_features" ]
260 } 266 }
261 if (cpu_arch == "arm") { 267 if (cpu_arch == "arm") {
262 deps += [ ":libvpx_assembly_arm" ] 268 deps += [ ":libvpx_assembly_arm" ]
263 } 269 }
264 } 270 }
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