| 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/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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 "//ui/gfx/x", | 235 "//ui/gfx/x", |
| 236 ] | 236 ] |
| 237 } else if (is_mac) { | 237 } else if (is_mac) { |
| 238 sources += [ "user_input_monitor_mac.cc" ] | 238 sources += [ "user_input_monitor_mac.cc" ] |
| 239 } else if (is_win) { | 239 } else if (is_win) { |
| 240 sources += [ "user_input_monitor_win.cc" ] | 240 sources += [ "user_input_monitor_win.cc" ] |
| 241 } else { | 241 } else { |
| 242 defines += [ "DISABLE_USER_INPUT_MONITOR" ] | 242 defines += [ "DISABLE_USER_INPUT_MONITOR" ] |
| 243 } | 243 } |
| 244 | 244 |
| 245 if (cpu_arch == "x86" || cpu_arch == "x64") { | 245 if (current_cpu == "x86" || current_cpu == "x64") { |
| 246 sources += [ "simd/convert_yuv_to_rgb_x86.cc" ] | 246 sources += [ "simd/convert_yuv_to_rgb_x86.cc" ] |
| 247 deps += [ | 247 deps += [ |
| 248 ":media_yasm", | 248 ":media_yasm", |
| 249 ":media_sse2", | 249 ":media_sse2", |
| 250 ] | 250 ] |
| 251 } | 251 } |
| 252 | 252 |
| 253 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 253 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 254 | 254 |
| 255 if (is_linux || is_win) { | 255 if (is_linux || is_win) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 "media_file_checker_unittest.cc", | 366 "media_file_checker_unittest.cc", |
| 367 ] | 367 ] |
| 368 } | 368 } |
| 369 | 369 |
| 370 if (!is_android) { | 370 if (!is_android) { |
| 371 sources += [ "container_names_unittest.cc" ] | 371 sources += [ "container_names_unittest.cc" ] |
| 372 } else { | 372 } else { |
| 373 deps += [ "//ui/gl" ] | 373 deps += [ "//ui/gl" ] |
| 374 } | 374 } |
| 375 | 375 |
| 376 if (cpu_arch == "x86" || cpu_arch == "x64") { | 376 if (current_cpu == "x86" || current_cpu == "x64") { |
| 377 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ] | 377 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ] |
| 378 } | 378 } |
| 379 } | 379 } |
| 380 | 380 |
| 381 source_set("perftests") { | 381 source_set("perftests") { |
| 382 testonly = true | 382 testonly = true |
| 383 sources = [ | 383 sources = [ |
| 384 "audio_bus_perftest.cc", | 384 "audio_bus_perftest.cc", |
| 385 "audio_converter_perftest.cc", | 385 "audio_converter_perftest.cc", |
| 386 "run_all_perftests.cc", | 386 "run_all_perftests.cc", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 398 | 398 |
| 399 if (media_use_ffmpeg) { | 399 if (media_use_ffmpeg) { |
| 400 sources += [ "demuxer_perftest.cc" ] | 400 sources += [ "demuxer_perftest.cc" ] |
| 401 } | 401 } |
| 402 | 402 |
| 403 if (is_android) { | 403 if (is_android) { |
| 404 deps += [ "//ui/gl" ] | 404 deps += [ "//ui/gl" ] |
| 405 } | 405 } |
| 406 } | 406 } |
| 407 | 407 |
| 408 if (cpu_arch == "x86" || cpu_arch == "x64") { | 408 if (current_cpu == "x86" || current_cpu == "x64") { |
| 409 source_set("media_sse2") { | 409 source_set("media_sse2") { |
| 410 sources = [ | 410 sources = [ |
| 411 "simd/convert_rgb_to_yuv_sse2.cc", | 411 "simd/convert_rgb_to_yuv_sse2.cc", |
| 412 "simd/convert_rgb_to_yuv_ssse3.cc", | 412 "simd/convert_rgb_to_yuv_ssse3.cc", |
| 413 "simd/filter_yuv_sse2.cc", | 413 "simd/filter_yuv_sse2.cc", |
| 414 ] | 414 ] |
| 415 configs += [ "//media:media_config" ] | 415 configs += [ "//media:media_config" ] |
| 416 if (!is_win) { | 416 if (!is_win) { |
| 417 cflags = [ "-msse2" ] | 417 cflags = [ "-msse2" ] |
| 418 } | 418 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 445 inputs = [ | 445 inputs = [ |
| 446 "//third_party/x86inc/x86inc.asm", | 446 "//third_party/x86inc/x86inc.asm", |
| 447 "simd/convert_rgb_to_yuv_ssse3.inc", | 447 "simd/convert_rgb_to_yuv_ssse3.inc", |
| 448 "simd/convert_yuv_to_rgb_mmx.inc", | 448 "simd/convert_yuv_to_rgb_mmx.inc", |
| 449 "simd/convert_yuva_to_argb_mmx.inc", | 449 "simd/convert_yuva_to_argb_mmx.inc", |
| 450 "simd/linear_scale_yuv_to_rgb_mmx.inc", | 450 "simd/linear_scale_yuv_to_rgb_mmx.inc", |
| 451 "simd/media_export.asm", | 451 "simd/media_export.asm", |
| 452 "simd/scale_yuv_to_rgb_mmx.inc", | 452 "simd/scale_yuv_to_rgb_mmx.inc", |
| 453 ] | 453 ] |
| 454 | 454 |
| 455 if (cpu_arch == "x86") { | 455 if (current_cpu == "x86") { |
| 456 yasm_flags += [ "-DARCH_X86_32" ] | 456 yasm_flags += [ "-DARCH_X86_32" ] |
| 457 } else if (cpu_arch == "x64") { | 457 } else if (current_cpu == "x64") { |
| 458 yasm_flags += [ "-DARCH_X86_64" ] | 458 yasm_flags += [ "-DARCH_X86_64" ] |
| 459 sources += [ | 459 sources += [ |
| 460 "simd/linear_scale_yuv_to_rgb_mmx_x64.asm", | 460 "simd/linear_scale_yuv_to_rgb_mmx_x64.asm", |
| 461 "simd/scale_yuv_to_rgb_sse2_x64.asm", | 461 "simd/scale_yuv_to_rgb_sse2_x64.asm", |
| 462 ] | 462 ] |
| 463 } | 463 } |
| 464 | 464 |
| 465 if (is_mac || is_ios) { | 465 if (is_mac || is_ios) { |
| 466 yasm_flags += [ | 466 yasm_flags += [ |
| 467 "-DPREFIX", | 467 "-DPREFIX", |
| 468 "-DMACHO", | 468 "-DMACHO", |
| 469 ] | 469 ] |
| 470 } else { | 470 } else { |
| 471 if (is_posix) { | 471 if (is_posix) { |
| 472 yasm_flags += [ "-DELF" ] | 472 yasm_flags += [ "-DELF" ] |
| 473 if (cpu_arch == "x64") { | 473 if (current_cpu == "x64") { |
| 474 # TODO(ajwong): Why isn't this true in mac? | 474 # TODO(ajwong): Why isn't this true in mac? |
| 475 yasm_flags += [ "-DPIC" ] | 475 yasm_flags += [ "-DPIC" ] |
| 476 } | 476 } |
| 477 } | 477 } |
| 478 } | 478 } |
| 479 } | 479 } |
| 480 } | 480 } |
| OLD | NEW |