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

Side by Side Diff: media/base/BUILD.gn

Issue 913373002: Update Chomium's build files to work w/ latest GN binaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_cpu_arch_changes
Patch Set: cleanup / review Created 5 years, 10 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
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/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/config/linux/pkg_config.gni") 8 import("//build/config/linux/pkg_config.gni")
9 import("//media/media_options.gni") 9 import("//media/media_options.gni")
10 10
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 "//ui/gfx/x", 233 "//ui/gfx/x",
234 ] 234 ]
235 } else if (is_mac) { 235 } else if (is_mac) {
236 sources += [ "user_input_monitor_mac.cc" ] 236 sources += [ "user_input_monitor_mac.cc" ]
237 } else if (is_win) { 237 } else if (is_win) {
238 sources += [ "user_input_monitor_win.cc" ] 238 sources += [ "user_input_monitor_win.cc" ]
239 } else { 239 } else {
240 defines += [ "DISABLE_USER_INPUT_MONITOR" ] 240 defines += [ "DISABLE_USER_INPUT_MONITOR" ]
241 } 241 }
242 242
243 if (cpu_arch == "x86" || cpu_arch == "x64") { 243 if (current_cpu == "x86" || current_cpu == "x64") {
244 sources += [ "simd/convert_yuv_to_rgb_x86.cc" ] 244 sources += [ "simd/convert_yuv_to_rgb_x86.cc" ]
245 deps += [ 245 deps += [
246 ":media_yasm", 246 ":media_yasm",
247 ":media_sse2", 247 ":media_sse2",
248 ] 248 ]
249 } 249 }
250 250
251 if (is_linux || is_win) { 251 if (is_linux || is_win) {
252 sources += [ 252 sources += [
253 "keyboard_event_counter.cc", 253 "keyboard_event_counter.cc",
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 "media_file_checker_unittest.cc", 363 "media_file_checker_unittest.cc",
364 ] 364 ]
365 } 365 }
366 366
367 if (!is_android) { 367 if (!is_android) {
368 sources += [ "container_names_unittest.cc" ] 368 sources += [ "container_names_unittest.cc" ]
369 } else { 369 } else {
370 deps += [ "//ui/gl" ] 370 deps += [ "//ui/gl" ]
371 } 371 }
372 372
373 if (cpu_arch == "x86" || cpu_arch == "x64") { 373 if (current_cpu == "x86" || current_cpu == "x64") {
374 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ] 374 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ]
375 } 375 }
376 } 376 }
377 377
378 source_set("perftests") { 378 source_set("perftests") {
379 testonly = true 379 testonly = true
380 sources = [ 380 sources = [
381 "audio_bus_perftest.cc", 381 "audio_bus_perftest.cc",
382 "audio_converter_perftest.cc", 382 "audio_converter_perftest.cc",
383 "run_all_perftests.cc", 383 "run_all_perftests.cc",
(...skipping 11 matching lines...) Expand all
395 395
396 if (media_use_ffmpeg) { 396 if (media_use_ffmpeg) {
397 sources += [ "demuxer_perftest.cc" ] 397 sources += [ "demuxer_perftest.cc" ]
398 } 398 }
399 399
400 if (is_android) { 400 if (is_android) {
401 deps += [ "//ui/gl" ] 401 deps += [ "//ui/gl" ]
402 } 402 }
403 } 403 }
404 404
405 if (cpu_arch == "x86" || cpu_arch == "x64") { 405 if (current_cpu == "x86" || current_cpu == "x64") {
406 source_set("media_sse2") { 406 source_set("media_sse2") {
407 sources = [ 407 sources = [
408 "simd/convert_rgb_to_yuv_sse2.cc", 408 "simd/convert_rgb_to_yuv_sse2.cc",
409 "simd/convert_rgb_to_yuv_ssse3.cc", 409 "simd/convert_rgb_to_yuv_ssse3.cc",
410 "simd/filter_yuv_sse2.cc", 410 "simd/filter_yuv_sse2.cc",
411 ] 411 ]
412 configs += [ "//media:media_config" ] 412 configs += [ "//media:media_config" ]
413 if (!is_win) { 413 if (!is_win) {
414 cflags = [ "-msse2" ] 414 cflags = [ "-msse2" ]
415 } 415 }
(...skipping 26 matching lines...) Expand all
442 inputs = [ 442 inputs = [
443 "//third_party/x86inc/x86inc.asm", 443 "//third_party/x86inc/x86inc.asm",
444 "simd/convert_rgb_to_yuv_ssse3.inc", 444 "simd/convert_rgb_to_yuv_ssse3.inc",
445 "simd/convert_yuv_to_rgb_mmx.inc", 445 "simd/convert_yuv_to_rgb_mmx.inc",
446 "simd/convert_yuva_to_argb_mmx.inc", 446 "simd/convert_yuva_to_argb_mmx.inc",
447 "simd/linear_scale_yuv_to_rgb_mmx.inc", 447 "simd/linear_scale_yuv_to_rgb_mmx.inc",
448 "simd/media_export.asm", 448 "simd/media_export.asm",
449 "simd/scale_yuv_to_rgb_mmx.inc", 449 "simd/scale_yuv_to_rgb_mmx.inc",
450 ] 450 ]
451 451
452 if (cpu_arch == "x86") { 452 if (current_cpu == "x86") {
453 yasm_flags += [ "-DARCH_X86_32" ] 453 yasm_flags += [ "-DARCH_X86_32" ]
454 } else if (cpu_arch == "x64") { 454 } else if (current_cpu == "x64") {
455 yasm_flags += [ "-DARCH_X86_64" ] 455 yasm_flags += [ "-DARCH_X86_64" ]
456 sources += [ 456 sources += [
457 "simd/linear_scale_yuv_to_rgb_mmx_x64.asm", 457 "simd/linear_scale_yuv_to_rgb_mmx_x64.asm",
458 "simd/scale_yuv_to_rgb_sse2_x64.asm", 458 "simd/scale_yuv_to_rgb_sse2_x64.asm",
459 ] 459 ]
460 } 460 }
461 461
462 if (is_mac || is_ios) { 462 if (is_mac || is_ios) {
463 yasm_flags += [ 463 yasm_flags += [
464 "-DPREFIX", 464 "-DPREFIX",
465 "-DMACHO", 465 "-DMACHO",
466 ] 466 ]
467 } else { 467 } else {
468 if (is_posix) { 468 if (is_posix) {
469 yasm_flags += [ "-DELF" ] 469 yasm_flags += [ "-DELF" ]
470 if (cpu_arch == "x64") { 470 if (current_cpu == "x64") {
471 # TODO(ajwong): Why isn't this true in mac? 471 # TODO(ajwong): Why isn't this true in mac?
472 yasm_flags += [ "-DPIC" ] 472 yasm_flags += [ "-DPIC" ]
473 } 473 }
474 } 474 }
475 } 475 }
476 } 476 }
477 } 477 }
OLDNEW
« no previous file with comments | « media/BUILD.gn ('k') | mojo/nacl/BUILD.gn » ('j') | ppapi/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698