| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 # Override to dynamically link the PulseAudio library. | 8 # Override to dynamically link the PulseAudio library. |
| 9 'use_pulseaudio%': 0, | 9 'use_pulseaudio%': 0, |
| 10 }, | 10 }, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 'type': 'static_library', | 338 'type': 'static_library', |
| 339 'include_dirs': [ | 339 'include_dirs': [ |
| 340 '..', | 340 '..', |
| 341 ], | 341 ], |
| 342 'dependencies': [ | 342 'dependencies': [ |
| 343 'cpu_features', | 343 'cpu_features', |
| 344 ], | 344 ], |
| 345 'conditions': [ | 345 'conditions': [ |
| 346 [ 'target_arch == "ia32" or target_arch == "x64"', { | 346 [ 'target_arch == "ia32" or target_arch == "x64"', { |
| 347 'dependencies': [ | 347 'dependencies': [ |
| 348 'yuv_convert_sse2', | 348 'yuv_convert_simd_x86', |
| 349 ], |
| 350 }], |
| 351 [ 'target_arch == "arm"', { |
| 352 'dependencies': [ |
| 353 'yuv_convert_simd_arm', |
| 349 ], | 354 ], |
| 350 }], | 355 }], |
| 351 ], | 356 ], |
| 352 'sources': [ | 357 'sources': [ |
| 353 'base/yuv_convert.cc', | 358 'base/yuv_convert.cc', |
| 354 'base/yuv_convert.h', | 359 'base/yuv_convert.h', |
| 355 'base/yuv_convert_internal.h', | 360 'base/yuv_convert_internal.h', |
| 356 'base/yuv_convert_c.cc', | 361 'base/yuv_convert_c.cc', |
| 357 'base/yuv_row_win.cc', | 362 'base/yuv_row_win.cc', |
| 358 'base/yuv_row_posix.cc', | 363 'base/yuv_row_posix.cc', |
| 359 'base/yuv_row_table.cc', | 364 'base/yuv_row_table.cc', |
| 360 'base/yuv_row.h', | 365 'base/yuv_row.h', |
| 361 ], | 366 ], |
| 362 }, | 367 }, |
| 363 { | 368 { |
| 364 'target_name': 'yuv_convert_sse2', | 369 'target_name': 'yuv_convert_simd_x86', |
| 365 'type': 'static_library', | 370 'type': 'static_library', |
| 366 'include_dirs': [ | 371 'include_dirs': [ |
| 367 '..', | 372 '..', |
| 368 ], | 373 ], |
| 374 'sources': [ |
| 375 'base/yuv_convert_sse2.cc', |
| 376 'base/simd/convert_rgb_to_yuv_x86.cc', |
| 377 'base/simd/convert_rgb_to_yuv_ssse3.asm', |
| 378 'base/simd/convert_rgb_to_yuv_ssse3.inc', |
| 379 'base/simd/convert_yuv_to_rgb_c.cc', |
| 380 'base/simd/convert_yuv_to_rgb_x86.cc', |
| 381 'base/simd/convert_yuv_to_rgb_mmx.asm', |
| 382 'base/simd/convert_yuv_to_rgb_mmx.inc', |
| 383 'base/simd/convert_yuv_to_rgb_sse.asm', |
| 384 'base/simd/filter_yuv.h', |
| 385 'base/simd/filter_yuv_c.cc', |
| 386 'base/simd/filter_yuv_mmx.cc', |
| 387 'base/simd/filter_yuv_sse2.cc', |
| 388 'base/simd/linear_scale_yuv_to_rgb_mmx.asm', |
| 389 'base/simd/linear_scale_yuv_to_rgb_mmx.inc', |
| 390 'base/simd/linear_scale_yuv_to_rgb_sse.asm', |
| 391 'base/simd/scale_yuv_to_rgb_mmx.asm', |
| 392 'base/simd/scale_yuv_to_rgb_mmx.inc', |
| 393 'base/simd/scale_yuv_to_rgb_sse.asm', |
| 394 ], |
| 369 'conditions': [ | 395 'conditions': [ |
| 396 [ 'target_arch == "x64"', { |
| 397 # Source files optimized for X64 systems. |
| 398 'sources': [ |
| 399 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm', |
| 400 'base/simd/scale_yuv_to_rgb_sse2_x64.asm', |
| 401 ], |
| 402 }], |
| 370 [ 'os_posix == 1 and OS != "mac"', { | 403 [ 'os_posix == 1 and OS != "mac"', { |
| 371 'cflags': [ | 404 'cflags': [ |
| 372 '-msse2', | 405 '-msse2', |
| 406 '-msse3', |
| 407 '-mssse3', |
| 373 ], | 408 ], |
| 374 }], | 409 }], |
| 375 [ 'OS == "mac"', { | 410 [ 'OS == "mac"', { |
| 376 'configurations': { | 411 'configurations': { |
| 377 'Debug': { | 412 'Debug': { |
| 378 'xcode_settings': { | 413 'xcode_settings': { |
| 379 # gcc on the mac builds horribly unoptimized sse code in debug | 414 # gcc on the mac builds horribly unoptimized sse code in debug |
| 380 # mode. Since this is rarely going to be debugged, run with full | 415 # mode. Since this is rarely going to be debugged, run with full |
| 381 # optimizations in Debug as well as Release. | 416 # optimizations in Debug as well as Release. |
| 382 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | 417 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 '-DELF', | 460 '-DELF', |
| 426 '-DPIC', | 461 '-DPIC', |
| 427 '-DCHROMIUM', | 462 '-DCHROMIUM', |
| 428 '-Isimd', | 463 '-Isimd', |
| 429 ], | 464 ], |
| 430 }], | 465 }], |
| 431 ], | 466 ], |
| 432 }, | 467 }, |
| 433 }], | 468 }], |
| 434 ], | 469 ], |
| 435 'sources': [ | |
| 436 'base/yuv_convert_sse2.cc', | |
| 437 'base/simd/convert_rgb_to_yuv.cc', | |
| 438 ], | |
| 439 'variables': { | 470 'variables': { |
| 440 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media', | 471 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media', |
| 441 }, | 472 }, |
| 442 'includes': [ | 473 'includes': [ |
| 443 '../third_party/yasm/yasm_compile.gypi', | 474 '../third_party/yasm/yasm_compile.gypi', |
| 444 ], | 475 ], |
| 445 }, | 476 }, |
| 446 { | 477 { |
| 478 'target_name': 'yuv_convert_simd_arm', |
| 479 'type': 'static_library', |
| 480 'include_dirs': [ |
| 481 '..', |
| 482 ], |
| 483 'sources': [ |
| 484 'base/simd/convert_yuv_to_rgb_c.cc', |
| 485 'base/simd/filter_yuv.h', |
| 486 'base/simd/filter_yuv_c.cc', |
| 487 ], |
| 488 }, |
| 489 { |
| 447 'target_name': 'ffmpeg_unittests', | 490 'target_name': 'ffmpeg_unittests', |
| 448 'type': 'executable', | 491 'type': 'executable', |
| 449 'dependencies': [ | 492 'dependencies': [ |
| 450 'media', | 493 'media', |
| 451 'media_test_support', | 494 'media_test_support', |
| 452 '../base/base.gyp:base', | 495 '../base/base.gyp:base', |
| 453 '../base/base.gyp:base_i18n', | 496 '../base/base.gyp:base_i18n', |
| 454 '../base/base.gyp:test_support_base', | 497 '../base/base.gyp:test_support_base', |
| 455 '../base/base.gyp:test_support_perf', | 498 '../base/base.gyp:test_support_perf', |
| 456 '../testing/gtest.gyp:gtest', | 499 '../testing/gtest.gyp:gtest', |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 'tools/player_x11/gl_video_renderer.h', | 852 'tools/player_x11/gl_video_renderer.h', |
| 810 'tools/player_x11/player_x11.cc', | 853 'tools/player_x11/player_x11.cc', |
| 811 'tools/player_x11/x11_video_renderer.cc', | 854 'tools/player_x11/x11_video_renderer.cc', |
| 812 'tools/player_x11/x11_video_renderer.h', | 855 'tools/player_x11/x11_video_renderer.h', |
| 813 ], | 856 ], |
| 814 }, | 857 }, |
| 815 ], | 858 ], |
| 816 }], | 859 }], |
| 817 ], | 860 ], |
| 818 } | 861 } |
| OLD | NEW |