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

Side by Side Diff: media/media.gyp

Issue 15151002: Streamline SIMD targets in media.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Win64 hack. Created 7 years, 7 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 | « media/base/yuv_convert_unittest.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 cras (ChromeOS audio) library. 8 # Override to dynamically link the cras (ChromeOS audio) library.
9 'use_cras%': 0, 9 'use_cras%': 0,
10 # Option e.g. for Linux distributions to link pulseaudio directly 10 # Option e.g. for Linux distributions to link pulseaudio directly
11 # (DT_NEEDED) instead of using dlopen. This helps with automated 11 # (DT_NEEDED) instead of using dlopen. This helps with automated
12 # detection of ABI mismatches and prevents silent errors. 12 # detection of ABI mismatches and prevents silent errors.
13 'linux_link_pulseaudio%': 0, 13 'linux_link_pulseaudio%': 0,
14 'conditions': [ 14 'conditions': [
15 ['OS == "android" or OS == "ios"', { 15 ['OS=="android" or OS=="ios"', {
16 # Android and iOS don't use ffmpeg. 16 # Android and iOS don't use ffmpeg.
17 'media_use_ffmpeg%': 0, 17 'media_use_ffmpeg%': 0,
18 # Android and iOS don't use libvpx. 18 # Android and iOS don't use libvpx.
19 'media_use_libvpx%': 0, 19 'media_use_libvpx%': 0,
20 }, { # 'OS != "android" and OS != "ios"' 20 }, { # 'OS!="android" and OS!="ios"'
21 'media_use_ffmpeg%': 1, 21 'media_use_ffmpeg%': 1,
22 'media_use_libvpx%': 1, 22 'media_use_libvpx%': 1,
23 }], 23 }],
24 # Screen capturer works only on Windows, OSX and Linux (with X11). 24 # Screen capturer works only on Windows, OSX and Linux (with X11).
25 ['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', { 25 ['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', {
26 'screen_capture_supported%': 1, 26 'screen_capture_supported%': 1,
27 }, { 27 }, {
28 'screen_capture_supported%': 0, 28 'screen_capture_supported%': 0,
29 }], 29 }],
30 # ALSA usage. 30 # ALSA usage.
31 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { 31 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', {
32 'use_alsa%': 1, 32 'use_alsa%': 1,
33 }, { 33 }, {
34 'use_alsa%': 0, 34 'use_alsa%': 0,
35 }], 35 }],
36 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android" and ch romeos != 1', { 36 ['os_posix==1 and OS!="mac" and OS!="ios" and OS!="android" and chromeos!= 1', {
37 'use_pulseaudio%': 1, 37 'use_pulseaudio%': 1,
38 }, { 38 }, {
39 'use_pulseaudio%': 0, 39 'use_pulseaudio%': 0,
40 }], 40 }],
41 ], 41 ],
42 }, 42 },
43 'targets': [ 43 'targets': [
44 { 44 {
45 'target_name': 'media', 45 'target_name': 'media',
46 'type': '<(component)', 46 'type': '<(component)',
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 'base/pipeline.h', 275 'base/pipeline.h',
276 'base/pipeline_status.cc', 276 'base/pipeline_status.cc',
277 'base/pipeline_status.h', 277 'base/pipeline_status.h',
278 'base/ranges.cc', 278 'base/ranges.cc',
279 'base/ranges.h', 279 'base/ranges.h',
280 'base/scoped_histogram_timer.h', 280 'base/scoped_histogram_timer.h',
281 'base/seekable_buffer.cc', 281 'base/seekable_buffer.cc',
282 'base/seekable_buffer.h', 282 'base/seekable_buffer.h',
283 'base/serial_runner.cc', 283 'base/serial_runner.cc',
284 'base/serial_runner.h', 284 'base/serial_runner.h',
285 'base/simd/convert_rgb_to_yuv.h',
286 'base/simd/convert_rgb_to_yuv_c.cc',
287 'base/simd/convert_yuv_to_rgb.h',
288 'base/simd/convert_yuv_to_rgb_c.cc',
289 'base/simd/filter_yuv.h',
290 'base/simd/filter_yuv_c.cc',
291 'base/simd/yuv_to_rgb_table.cc',
292 'base/simd/yuv_to_rgb_table.h',
285 'base/sinc_resampler.cc', 293 'base/sinc_resampler.cc',
286 'base/sinc_resampler.h', 294 'base/sinc_resampler.h',
287 'base/stream_parser.cc', 295 'base/stream_parser.cc',
288 'base/stream_parser.h', 296 'base/stream_parser.h',
289 'base/stream_parser_buffer.cc', 297 'base/stream_parser_buffer.cc',
290 'base/stream_parser_buffer.h', 298 'base/stream_parser_buffer.h',
291 'base/text_track.h', 299 'base/text_track.h',
292 'base/video_decoder.cc', 300 'base/video_decoder.cc',
293 'base/video_decoder.h', 301 'base/video_decoder.h',
294 'base/video_decoder_config.cc', 302 'base/video_decoder_config.cc',
295 'base/video_decoder_config.h', 303 'base/video_decoder_config.h',
296 'base/video_frame.cc', 304 'base/video_frame.cc',
297 'base/video_frame.h', 305 'base/video_frame.h',
298 'base/video_renderer.cc', 306 'base/video_renderer.cc',
299 'base/video_renderer.h', 307 'base/video_renderer.h',
300 'base/video_util.cc', 308 'base/video_util.cc',
301 'base/video_util.h', 309 'base/video_util.h',
310 'base/yuv_convert.cc',
311 'base/yuv_convert.h',
302 'crypto/aes_decryptor.cc', 312 'crypto/aes_decryptor.cc',
303 'crypto/aes_decryptor.h', 313 'crypto/aes_decryptor.h',
304 'ffmpeg/ffmpeg_common.cc', 314 'ffmpeg/ffmpeg_common.cc',
305 'ffmpeg/ffmpeg_common.h', 315 'ffmpeg/ffmpeg_common.h',
306 'filters/audio_decoder_selector.cc', 316 'filters/audio_decoder_selector.cc',
307 'filters/audio_decoder_selector.h', 317 'filters/audio_decoder_selector.h',
308 'filters/audio_file_reader.cc', 318 'filters/audio_file_reader.cc',
309 'filters/audio_file_reader.h', 319 'filters/audio_file_reader.h',
310 'filters/audio_renderer_algorithm.cc', 320 'filters/audio_renderer_algorithm.cc',
311 'filters/audio_renderer_algorithm.h', 321 'filters/audio_renderer_algorithm.h',
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 'webm/webm_video_client.h', 457 'webm/webm_video_client.h',
448 'webm/webm_webvtt_parser.cc', 458 'webm/webm_webvtt_parser.cc',
449 'webm/webm_webvtt_parser.h' 459 'webm/webm_webvtt_parser.h'
450 ], 460 ],
451 'direct_dependent_settings': { 461 'direct_dependent_settings': {
452 'include_dirs': [ 462 'include_dirs': [
453 '..', 463 '..',
454 ], 464 ],
455 }, 465 },
456 'conditions': [ 466 'conditions': [
457 ['arm_neon == 1', { 467 ['arm_neon==1', {
458 'defines': [ 468 'defines': [
459 'USE_NEON' 469 'USE_NEON'
460 ], 470 ],
461 }], 471 }],
462 ['OS != "linux" or use_x11 == 1', { 472 ['OS!="linux" or use_x11==1', {
463 'sources!': [ 473 'sources!': [
464 'video/capture/screen/screen_capturer_null.cc', 474 'video/capture/screen/screen_capturer_null.cc',
465 ] 475 ]
466 }], 476 }],
467 ['OS != "ios"', { 477 ['OS!="ios"', {
468 'dependencies': [ 478 'dependencies': [
469 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', 479 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
470 'shared_memory_support', 480 'shared_memory_support',
471 'yuv_convert',
472 ], 481 ],
473 }], 482 }],
474 ['media_use_ffmpeg == 1', { 483 ['media_use_ffmpeg==1', {
475 'dependencies': [ 484 'dependencies': [
476 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 485 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
477 ], 486 ],
478 }, { # media_use_ffmpeg == 0 487 }, { # media_use_ffmpeg==0
479 # Exclude the sources that depend on ffmpeg. 488 # Exclude the sources that depend on ffmpeg.
480 'sources!': [ 489 'sources!': [
481 'base/media_posix.cc', 490 'base/media_posix.cc',
482 'ffmpeg/ffmpeg_common.cc', 491 'ffmpeg/ffmpeg_common.cc',
483 'ffmpeg/ffmpeg_common.h', 492 'ffmpeg/ffmpeg_common.h',
484 'filters/audio_file_reader.cc', 493 'filters/audio_file_reader.cc',
485 'filters/audio_file_reader.h', 494 'filters/audio_file_reader.h',
486 'filters/blocking_url_protocol.cc', 495 'filters/blocking_url_protocol.cc',
487 'filters/blocking_url_protocol.h', 496 'filters/blocking_url_protocol.h',
488 'filters/ffmpeg_audio_decoder.cc', 497 'filters/ffmpeg_audio_decoder.cc',
489 'filters/ffmpeg_audio_decoder.h', 498 'filters/ffmpeg_audio_decoder.h',
490 'filters/ffmpeg_demuxer.cc', 499 'filters/ffmpeg_demuxer.cc',
491 'filters/ffmpeg_demuxer.h', 500 'filters/ffmpeg_demuxer.h',
492 'filters/ffmpeg_glue.cc', 501 'filters/ffmpeg_glue.cc',
493 'filters/ffmpeg_glue.h', 502 'filters/ffmpeg_glue.h',
494 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', 503 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
495 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', 504 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
496 'filters/ffmpeg_video_decoder.cc', 505 'filters/ffmpeg_video_decoder.cc',
497 'filters/ffmpeg_video_decoder.h', 506 'filters/ffmpeg_video_decoder.h',
498 ], 507 ],
499 }], 508 }],
500 ['media_use_libvpx == 1', { 509 ['media_use_libvpx==1', {
501 'dependencies': [ 510 'dependencies': [
502 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', 511 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
503 ], 512 ],
504 }, { # media_use_libvpx == 0 513 }, { # media_use_libvpx==0
505 'direct_dependent_settings': { 514 'direct_dependent_settings': {
506 'defines': [ 515 'defines': [
507 'MEDIA_DISABLE_LIBVPX', 516 'MEDIA_DISABLE_LIBVPX',
508 ], 517 ],
509 }, 518 },
510 # Exclude the sources that depend on libvpx. 519 # Exclude the sources that depend on libvpx.
511 'sources!': [ 520 'sources!': [
512 'filters/vpx_video_decoder.cc', 521 'filters/vpx_video_decoder.cc',
513 'filters/vpx_video_decoder.h', 522 'filters/vpx_video_decoder.h',
514 ], 523 ],
515 }], 524 }],
516 ['OS == "ios"', { 525 ['OS=="ios"', {
517 'includes': [ 526 'includes': [
518 # For shared_memory_support_sources variable. 527 # For shared_memory_support_sources variable.
519 'shared_memory_support.gypi', 528 'shared_memory_support.gypi',
520 ], 529 ],
521 'sources': [ 530 'sources': [
522 'base/media_stub.cc', 531 'base/media_stub.cc',
523 # These sources are normally built via a dependency on the 532 # These sources are normally built via a dependency on the
524 # shared_memory_support target, but that target is not built on iOS. 533 # shared_memory_support target, but that target is not built on iOS.
525 # Instead, directly build only the files that are needed for iOS. 534 # Instead, directly build only the files that are needed for iOS.
526 '<@(shared_memory_support_sources)', 535 '<@(shared_memory_support_sources)',
(...skipping 21 matching lines...) Expand all
548 ['include', '^base/vector_math\\.'], 557 ['include', '^base/vector_math\\.'],
549 ], 558 ],
550 'link_settings': { 559 'link_settings': {
551 'libraries': [ 560 'libraries': [
552 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', 561 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
553 '$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework', 562 '$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework',
554 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', 563 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
555 ], 564 ],
556 }, 565 },
557 }], 566 }],
558 ['OS == "android"', { 567 ['OS=="android"', {
559 'link_settings': { 568 'link_settings': {
560 'libraries': [ 569 'libraries': [
561 '-lOpenSLES', 570 '-lOpenSLES',
562 ], 571 ],
563 }, 572 },
564 'include_dirs': [ 573 'include_dirs': [
565 '<(SHARED_INTERMEDIATE_DIR)/media', 574 '<(SHARED_INTERMEDIATE_DIR)/media',
566 ], 575 ],
567 'dependencies': [ 576 'dependencies': [
568 'media_android_jni_headers', 577 'media_android_jni_headers',
569 'player_android', 578 'player_android',
570 'video_capture_android_jni_headers', 579 'video_capture_android_jni_headers',
571 ], 580 ],
572 'sources': [ 581 'sources': [
573 'base/media.cc', 582 'base/media.cc',
574 'base/media.h', 583 'base/media.h',
575 ], 584 ],
576 'conditions': [ 585 'conditions': [
577 ['android_webview_build == 0', { 586 ['android_webview_build==0', {
578 'dependencies': [ 587 'dependencies': [
579 'media_java', 588 'media_java',
580 ], 589 ],
581 }], 590 }],
582 ['use_openmax_dl_fft==1', { 591 ['use_openmax_dl_fft==1', {
583 # FFT library requires Neon support, so we enable 592 # FFT library requires Neon support, so we enable
584 # WebAudio only if Neon is detected at runtime. 593 # WebAudio only if Neon is detected at runtime.
585 'sources': [ 594 'sources': [
586 'base/media_android.cc', 595 'base/media_android.cc',
587 ], 596 ],
(...skipping 20 matching lines...) Expand all
608 'webm/chromeos/webm_encoder.h', 617 'webm/chromeos/webm_encoder.h',
609 ], 618 ],
610 }], 619 }],
611 ['use_alsa==1', { 620 ['use_alsa==1', {
612 'link_settings': { 621 'link_settings': {
613 'libraries': [ 622 'libraries': [
614 '-lasound', 623 '-lasound',
615 ], 624 ],
616 }, 625 },
617 }, { # use_alsa==0 626 }, { # use_alsa==0
618 'sources/': [ ['exclude', '/alsa_' ], 627 'sources/': [ ['exclude', '/alsa_'],
619 ['exclude', '/audio_manager_linux' ] ], 628 ['exclude', '/audio_manager_linux'] ],
620 }], 629 }],
621 ['OS!="openbsd"', { 630 ['OS!="openbsd"', {
622 'sources!': [ 631 'sources!': [
623 'audio/openbsd/audio_manager_openbsd.cc', 632 'audio/openbsd/audio_manager_openbsd.cc',
624 'audio/openbsd/audio_manager_openbsd.h', 633 'audio/openbsd/audio_manager_openbsd.h',
625 ], 634 ],
626 }], 635 }],
627 ['OS=="linux"', { 636 ['OS=="linux"', {
628 'variables': { 637 'variables': {
629 'conditions': [ 638 'conditions': [
630 ['sysroot!=""', { 639 ['sysroot!=""', {
631 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "< (target_arch)"', 640 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "< (target_arch)"',
632 }, { 641 }, {
633 'pkg-config': 'pkg-config' 642 'pkg-config': 'pkg-config'
634 }], 643 }],
635 ], 644 ],
636 }, 645 },
637 'conditions': [ 646 'conditions': [
638 ['use_x11 == 1', { 647 ['use_x11==1', {
639 'link_settings': { 648 'link_settings': {
640 'libraries': [ 649 'libraries': [
641 '-lX11', 650 '-lX11',
642 '-lXdamage', 651 '-lXdamage',
643 '-lXext', 652 '-lXext',
644 '-lXfixes', 653 '-lXfixes',
645 ], 654 ],
646 }, 655 },
647 }], 656 }],
648 ['use_cras == 1', { 657 ['use_cras==1', {
649 'cflags': [ 658 'cflags': [
650 '<!@(<(pkg-config) --cflags libcras)', 659 '<!@(<(pkg-config) --cflags libcras)',
651 ], 660 ],
652 'link_settings': { 661 'link_settings': {
653 'libraries': [ 662 'libraries': [
654 '<!@(<(pkg-config) --libs libcras)', 663 '<!@(<(pkg-config) --libs libcras)',
655 ], 664 ],
656 }, 665 },
657 'defines': [ 666 'defines': [
658 'USE_CRAS', 667 'USE_CRAS',
659 ], 668 ],
660 }, { # else: use_cras == 0 669 }, { # else: use_cras==0
661 'sources!': [ 670 'sources!': [
662 'audio/cras/audio_manager_cras.cc', 671 'audio/cras/audio_manager_cras.cc',
663 'audio/cras/audio_manager_cras.h', 672 'audio/cras/audio_manager_cras.h',
664 'audio/cras/cras_input.cc', 673 'audio/cras/cras_input.cc',
665 'audio/cras/cras_input.h', 674 'audio/cras/cras_input.h',
666 'audio/cras/cras_unified.cc', 675 'audio/cras/cras_unified.cc',
667 'audio/cras/cras_unified.h', 676 'audio/cras/cras_unified.h',
668 ], 677 ],
669 }], 678 }],
670 ], 679 ],
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 '-s', '<(stubs_filename_root)', 734 '-s', '<(stubs_filename_root)',
726 '-p', '<(project_path)', 735 '-p', '<(project_path)',
727 '<@(_inputs)', 736 '<@(_inputs)',
728 ], 737 ],
729 'process_outputs_as_sources': 1, 738 'process_outputs_as_sources': 1,
730 'message': 'Generating Pulse stubs for dynamic loading.', 739 'message': 'Generating Pulse stubs for dynamic loading.',
731 }, 740 },
732 ], 741 ],
733 'conditions': [ 742 'conditions': [
734 # Linux/Solaris need libdl for dlopen() and friends. 743 # Linux/Solaris need libdl for dlopen() and friends.
735 ['OS == "linux" or OS == "solaris"', { 744 ['OS=="linux" or OS=="solaris"', {
736 'link_settings': { 745 'link_settings': {
737 'libraries': [ 746 'libraries': [
738 '-ldl', 747 '-ldl',
739 ], 748 ],
740 }, 749 },
741 }], 750 }],
742 ], 751 ],
743 }, { # else: linux_link_pulseaudio==0 752 }, { # else: linux_link_pulseaudio==0
744 'link_settings': { 753 'link_settings': {
745 'ldflags': [ 754 'ldflags': [
(...skipping 12 matching lines...) Expand all
758 'audio/pulse/pulse_input.cc', 767 'audio/pulse/pulse_input.cc',
759 'audio/pulse/pulse_input.h', 768 'audio/pulse/pulse_input.h',
760 'audio/pulse/pulse_output.cc', 769 'audio/pulse/pulse_output.cc',
761 'audio/pulse/pulse_output.h', 770 'audio/pulse/pulse_output.h',
762 'audio/pulse/pulse_unified.cc', 771 'audio/pulse/pulse_unified.cc',
763 'audio/pulse/pulse_unified.h', 772 'audio/pulse/pulse_unified.h',
764 'audio/pulse/pulse_util.cc', 773 'audio/pulse/pulse_util.cc',
765 'audio/pulse/pulse_util.h', 774 'audio/pulse/pulse_util.h',
766 ], 775 ],
767 }], 776 }],
768 ['os_posix == 1', { 777 ['os_posix==1', {
769 'sources!': [ 778 'sources!': [
770 'video/capture/video_capture_device_dummy.cc', 779 'video/capture/video_capture_device_dummy.cc',
771 'video/capture/video_capture_device_dummy.h', 780 'video/capture/video_capture_device_dummy.h',
772 ], 781 ],
773 }], 782 }],
774 ['OS=="mac"', { 783 ['OS=="mac"', {
775 'link_settings': { 784 'link_settings': {
776 'libraries': [ 785 'libraries': [
777 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', 786 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
778 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', 787 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 'mf.dll', 823 'mf.dll',
815 'mfplat.dll', 824 'mfplat.dll',
816 'mfreadwrite.dll', 825 'mfreadwrite.dll',
817 ], 826 ],
818 }, 827 },
819 }, 828 },
820 }, 829 },
821 # TODO(wolenetz): Fix size_t to int truncations in win64. See 830 # TODO(wolenetz): Fix size_t to int truncations in win64. See
822 # http://crbug.com/171009 831 # http://crbug.com/171009
823 'conditions': [ 832 'conditions': [
824 ['target_arch == "x64"', { 833 ['target_arch=="x64"', {
825 'msvs_disabled_warnings': [ 4267, ], 834 'msvs_disabled_warnings': [ 4267, ],
826 }], 835 }],
827 ], 836 ],
828 }], 837 }],
829 ['proprietary_codecs==1 or branding=="Chrome"', { 838 ['proprietary_codecs==1 or branding=="Chrome"', {
830 'sources': [ 839 'sources': [
831 'mp4/aac.cc', 840 'mp4/aac.cc',
832 'mp4/aac.h', 841 'mp4/aac.h',
833 'mp4/avc.cc', 842 'mp4/avc.cc',
834 'mp4/avc.h', 843 'mp4/avc.h',
835 'mp4/box_definitions.cc', 844 'mp4/box_definitions.cc',
836 'mp4/box_definitions.h', 845 'mp4/box_definitions.h',
837 'mp4/box_reader.cc', 846 'mp4/box_reader.cc',
838 'mp4/box_reader.h', 847 'mp4/box_reader.h',
839 'mp4/cenc.cc', 848 'mp4/cenc.cc',
840 'mp4/cenc.h', 849 'mp4/cenc.h',
841 'mp4/es_descriptor.cc', 850 'mp4/es_descriptor.cc',
842 'mp4/es_descriptor.h', 851 'mp4/es_descriptor.h',
843 'mp4/mp4_stream_parser.cc', 852 'mp4/mp4_stream_parser.cc',
844 'mp4/mp4_stream_parser.h', 853 'mp4/mp4_stream_parser.h',
845 'mp4/offset_byte_queue.cc', 854 'mp4/offset_byte_queue.cc',
846 'mp4/offset_byte_queue.h', 855 'mp4/offset_byte_queue.h',
847 'mp4/track_run_iterator.cc', 856 'mp4/track_run_iterator.cc',
848 'mp4/track_run_iterator.h', 857 'mp4/track_run_iterator.h',
849 ], 858 ],
850 }], 859 }],
851 [ 'screen_capture_supported==1', { 860 ['screen_capture_supported==1', {
852 'dependencies': [ 861 'dependencies': [
853 '../third_party/webrtc/modules/modules.gyp:desktop_capture', 862 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
854 ], 863 ],
855 }, { 864 }, {
856 'sources/': [ 865 'sources/': [
857 ['exclude', '^video/capture/screen/'], 866 ['exclude', '^video/capture/screen/'],
858 ], 867 ],
859 }], 868 }],
860 [ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch== "x64")', {
861 'dependencies': [
862 'differ_block_sse2',
863 ],
864 }],
865 ['toolkit_uses_gtk==1', { 869 ['toolkit_uses_gtk==1', {
866 'dependencies': [ 870 'dependencies': [
867 '../build/linux/system.gyp:gtk', 871 '../build/linux/system.gyp:gtk',
868 ], 872 ],
869 }], 873 }],
870 # ios check is necessary due to http://crbug.com/172682. 874 # ios check is necessary due to http://crbug.com/172682.
871 ['OS != "ios" and (target_arch == "ia32" or target_arch == "x64")', { 875 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
872 'dependencies': [ 876 'dependencies': [
877 'media_asm',
878 'media_mmx',
873 'media_sse', 879 'media_sse',
880 'media_sse2',
881 ],
882 'sources': [
883 'base/simd/convert_yuv_to_rgb_x86.cc',
874 ], 884 ],
875 }], 885 }],
876 ['google_tv == 1', { 886 ['google_tv==1', {
877 'defines': [ 887 'defines': [
878 'ENABLE_EAC3_PLAYBACK', 888 'ENABLE_EAC3_PLAYBACK',
879 ], 889 ],
880 }], 890 }],
881 ], 891 ],
882 'target_conditions': [ 892 'target_conditions': [
883 ['OS == "ios"', { 893 ['OS=="ios"', {
884 'sources/': [ 894 'sources/': [
885 # Pull in specific Mac files for iOS (which have been filtered out 895 # Pull in specific Mac files for iOS (which have been filtered out
886 # by file name rules). 896 # by file name rules).
887 ['include', '^audio/mac/audio_input_mac\\.'], 897 ['include', '^audio/mac/audio_input_mac\\.'],
888 ], 898 ],
889 }], 899 }],
890 ], 900 ],
891 }, 901 },
892 { 902 {
893 'target_name': 'media_unittests', 903 'target_name': 'media_unittests',
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 'webm/cluster_builder.h', 1012 'webm/cluster_builder.h',
1003 'webm/tracks_builder.cc', 1013 'webm/tracks_builder.cc',
1004 'webm/tracks_builder.h', 1014 'webm/tracks_builder.h',
1005 'webm/webm_cluster_parser_unittest.cc', 1015 'webm/webm_cluster_parser_unittest.cc',
1006 'webm/webm_content_encodings_client_unittest.cc', 1016 'webm/webm_content_encodings_client_unittest.cc',
1007 'webm/webm_parser_unittest.cc', 1017 'webm/webm_parser_unittest.cc',
1008 'webm/webm_tracks_parser_unittest.cc', 1018 'webm/webm_tracks_parser_unittest.cc',
1009 'webm/webm_webvtt_parser_unittest.cc', 1019 'webm/webm_webvtt_parser_unittest.cc',
1010 ], 1020 ],
1011 'conditions': [ 1021 'conditions': [
1012 ['arm_neon == 1', { 1022 ['arm_neon==1', {
1013 'defines': [ 1023 'defines': [
1014 'USE_NEON' 1024 'USE_NEON'
1015 ], 1025 ],
1016 }], 1026 }],
1017 ['OS != "ios"', { 1027 ['OS!="ios"', {
1018 'dependencies': [ 1028 'dependencies': [
1019 'shared_memory_support', 1029 'shared_memory_support',
1020 'yuv_convert',
1021 ], 1030 ],
1022 }], 1031 }],
1023 ['media_use_ffmpeg == 1', { 1032 ['media_use_ffmpeg==1', {
1024 'dependencies': [ 1033 'dependencies': [
1025 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 1034 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1026 ], 1035 ],
1027 }], 1036 }],
1028 ['os_posix==1 and OS!="mac" and OS!="ios"', { 1037 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1029 'conditions': [ 1038 'conditions': [
1030 ['linux_use_tcmalloc==1', { 1039 ['linux_use_tcmalloc==1', {
1031 'dependencies': [ 1040 'dependencies': [
1032 '../base/allocator/allocator.gyp:allocator', 1041 '../base/allocator/allocator.gyp:allocator',
1033 ], 1042 ],
1034 }], 1043 }],
1035 ], 1044 ],
1036 }], 1045 }],
1037 ['OS == "ios"', { 1046 ['OS=="ios"', {
1038 'sources/': [ 1047 'sources/': [
1039 ['exclude', '.*'], 1048 ['exclude', '.*'],
1040 ['include', '^audio/audio_input_controller_unittest\\.cc$'], 1049 ['include', '^audio/audio_input_controller_unittest\\.cc$'],
1041 ['include', '^audio/audio_input_unittest\\.cc$'], 1050 ['include', '^audio/audio_input_unittest\\.cc$'],
1042 ['include', '^audio/audio_parameters_unittest\\.cc$'], 1051 ['include', '^audio/audio_parameters_unittest\\.cc$'],
1043 ['include', '^audio/ios/audio_manager_ios_unittest\\.cc$'], 1052 ['include', '^audio/ios/audio_manager_ios_unittest\\.cc$'],
1044 ['include', '^base/mock_reader\\.h$'], 1053 ['include', '^base/mock_reader\\.h$'],
1045 ['include', '^base/run_all_unittests\\.cc$'], 1054 ['include', '^base/run_all_unittests\\.cc$'],
1046 ], 1055 ],
1047 }], 1056 }],
(...skipping 10 matching lines...) Expand all
1058 'filters/ffmpeg_demuxer_unittest.cc', 1067 'filters/ffmpeg_demuxer_unittest.cc',
1059 'filters/ffmpeg_glue_unittest.cc', 1068 'filters/ffmpeg_glue_unittest.cc',
1060 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', 1069 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1061 'filters/ffmpeg_video_decoder_unittest.cc', 1070 'filters/ffmpeg_video_decoder_unittest.cc',
1062 'filters/pipeline_integration_test.cc', 1071 'filters/pipeline_integration_test.cc',
1063 'filters/pipeline_integration_test_base.cc', 1072 'filters/pipeline_integration_test_base.cc',
1064 'mp4/mp4_stream_parser_unittest.cc', 1073 'mp4/mp4_stream_parser_unittest.cc',
1065 'webm/webm_cluster_parser_unittest.cc', 1074 'webm/webm_cluster_parser_unittest.cc',
1066 ], 1075 ],
1067 'conditions': [ 1076 'conditions': [
1068 ['gtest_target_type == "shared_library"', { 1077 ['gtest_target_type=="shared_library"', {
1069 'dependencies': [ 1078 'dependencies': [
1070 '../testing/android/native_test.gyp:native_test_native_code', 1079 '../testing/android/native_test.gyp:native_test_native_code',
1071 'player_android', 1080 'player_android',
1072 ], 1081 ],
1073 }], 1082 }],
1074 ], 1083 ],
1075 }], 1084 }],
1076 ['OS == "linux"', { 1085 ['OS=="linux"', {
1077 'conditions': [ 1086 'conditions': [
1078 ['use_cras == 1', { 1087 ['use_cras==1', {
1079 'sources': [ 1088 'sources': [
1080 'audio/cras/cras_input_unittest.cc', 1089 'audio/cras/cras_input_unittest.cc',
1081 'audio/cras/cras_unified_unittest.cc', 1090 'audio/cras/cras_unified_unittest.cc',
1082 ], 1091 ],
1083 'defines': [ 1092 'defines': [
1084 'USE_CRAS', 1093 'USE_CRAS',
1085 ], 1094 ],
1086 }], 1095 }],
1087 ], 1096 ],
1088 }], 1097 }],
1089 ['use_alsa==0', { 1098 ['use_alsa==0', {
1090 'sources!': [ 1099 'sources!': [
1091 'audio/linux/alsa_output_unittest.cc', 1100 'audio/linux/alsa_output_unittest.cc',
1092 'audio/audio_low_latency_input_output_unittest.cc', 1101 'audio/audio_low_latency_input_output_unittest.cc',
1093 ], 1102 ],
1094 }], 1103 }],
1095 ['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', { 1104 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
1096 'sources': [ 1105 'sources': [
1097 'base/simd/convert_rgb_to_yuv_unittest.cc', 1106 'base/simd/convert_rgb_to_yuv_unittest.cc',
1098 ], 1107 ],
1099 'dependencies': [
1100 'media_sse',
1101 ],
1102 }], 1108 }],
1103 ['screen_capture_supported==1', { 1109 ['screen_capture_supported==1', {
1104 'dependencies': [ 1110 'dependencies': [
1105 '../third_party/webrtc/modules/modules.gyp:desktop_capture', 1111 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
1106 ], 1112 ],
1107 }, { 1113 }, {
1108 'sources/': [ 1114 'sources/': [
1109 ['exclude', '^video/capture/screen/'], 1115 ['exclude', '^video/capture/screen/'],
1110 ], 1116 ],
1111 }], 1117 }],
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 'base/mock_demuxer_host.cc', 1158 'base/mock_demuxer_host.cc',
1153 'base/mock_demuxer_host.h', 1159 'base/mock_demuxer_host.h',
1154 'base/mock_filters.cc', 1160 'base/mock_filters.cc',
1155 'base/mock_filters.h', 1161 'base/mock_filters.h',
1156 'base/test_helpers.cc', 1162 'base/test_helpers.cc',
1157 'base/test_helpers.h', 1163 'base/test_helpers.h',
1158 'video/capture/screen/screen_capturer_mock_objects.cc', 1164 'video/capture/screen/screen_capturer_mock_objects.cc',
1159 'video/capture/screen/screen_capturer_mock_objects.h', 1165 'video/capture/screen/screen_capturer_mock_objects.h',
1160 ], 1166 ],
1161 'conditions': [ 1167 'conditions': [
1162 [ 'screen_capture_supported == 1', { 1168 ['screen_capture_supported==1', {
1163 'dependencies': [ 1169 'dependencies': [
1164 '../third_party/webrtc/modules/modules.gyp:desktop_capture', 1170 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
1165 ], 1171 ],
1166 }, { 1172 }, {
1167 'sources/': [ 1173 'sources/': [
1168 ['exclude', '^video/capture/screen/'], 1174 ['exclude', '^video/capture/screen/'],
1169 ], 1175 ],
1170 }], 1176 }],
1171 ], 1177 ],
1172 }, 1178 },
1173 ], 1179 ],
1174 'conditions': [ 1180 'conditions': [
1175 ['OS != "ios" and target_arch != "arm"', { 1181 ['OS!="ios" and target_arch!="arm"', {
1176 'targets': [ 1182 'targets': [
1177 { 1183 {
1178 'target_name': 'yuv_convert_simd_x86', 1184 'target_name': 'media_asm',
1179 'type': 'static_library', 1185 'type': 'static_library',
1180 'include_dirs': [
1181 '..',
1182 ],
1183 'sources': [ 1186 'sources': [
1184 'base/simd/convert_rgb_to_yuv_c.cc',
1185 'base/simd/convert_rgb_to_yuv_sse2.cc',
1186 'base/simd/convert_rgb_to_yuv_ssse3.asm', 1187 'base/simd/convert_rgb_to_yuv_ssse3.asm',
1187 'base/simd/convert_rgb_to_yuv_ssse3.cc',
1188 'base/simd/convert_rgb_to_yuv_ssse3.inc',
1189 'base/simd/convert_yuv_to_rgb_c.cc',
1190 'base/simd/convert_yuv_to_rgb_mmx.asm', 1188 'base/simd/convert_yuv_to_rgb_mmx.asm',
1191 'base/simd/convert_yuv_to_rgb_mmx.inc',
1192 'base/simd/convert_yuv_to_rgb_sse.asm', 1189 'base/simd/convert_yuv_to_rgb_sse.asm',
1193 'base/simd/convert_yuv_to_rgb_x86.cc',
1194 'base/simd/convert_yuva_to_argb_mmx.asm', 1190 'base/simd/convert_yuva_to_argb_mmx.asm',
1195 'base/simd/convert_yuva_to_argb_mmx.inc',
1196 'base/simd/empty_register_state_mmx.asm', 1191 'base/simd/empty_register_state_mmx.asm',
1197 'base/simd/filter_yuv.h',
1198 'base/simd/filter_yuv_c.cc',
1199 'base/simd/filter_yuv_sse2.cc',
1200 'base/simd/linear_scale_yuv_to_rgb_mmx.asm', 1192 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
1201 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
1202 'base/simd/linear_scale_yuv_to_rgb_sse.asm', 1193 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
1203 'base/simd/scale_yuv_to_rgb_mmx.asm', 1194 'base/simd/scale_yuv_to_rgb_mmx.asm',
1204 'base/simd/scale_yuv_to_rgb_mmx.inc',
1205 'base/simd/scale_yuv_to_rgb_sse.asm', 1195 'base/simd/scale_yuv_to_rgb_sse.asm',
1206 'base/simd/yuv_to_rgb_table.cc',
1207 'base/simd/yuv_to_rgb_table.h',
1208 ], 1196 ],
1209 'conditions': [ 1197 'conditions': [
1210 # TODO(jschuh): Get MMX enabled on Win64. crbug.com/179657 1198 ['component=="shared_library"', {
1211 [ 'OS!="win" or target_arch=="ia32"', { 1199 'variables': {
1212 'sources': [ 1200 'yasm_flags': ['-DEXPORT_SYMBOLS'],
1213 'base/simd/filter_yuv_mmx.cc', 1201 },
1214 ],
1215 }], 1202 }],
1216 [ 'target_arch == "x64"', { 1203 ['target_arch=="x64"', {
1217 # Source files optimized for X64 systems. 1204 # Source files optimized for X64 systems.
1218 'sources': [ 1205 'sources': [
1219 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm', 1206 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
1220 'base/simd/scale_yuv_to_rgb_sse2_x64.asm', 1207 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
1221 ], 1208 ],
1222 'variables': { 1209 'variables': {
1223 'yasm_flags': [ 1210 'yasm_flags': ['-DARCH_X86_64'],
1224 '-DARCH_X86_64',
1225 ],
1226 }, 1211 },
1227 }], 1212 }],
1228 [ 'os_posix == 1 and OS != "mac" and OS != "android"', { 1213 ['OS=="mac"', {
1229 'cflags': [
1230 '-msse2',
1231 ],
1232 }],
1233 [ 'OS == "mac"', {
1234 'configurations': {
1235 'Debug': {
1236 'xcode_settings': {
1237 # gcc on the mac builds horribly unoptimized sse code in
1238 # debug mode. Since this is rarely going to be debugged,
1239 # run with full optimizations in Debug as well as Release.
1240 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
1241 },
1242 },
1243 },
1244 'variables': { 1214 'variables': {
1245 'yasm_flags': [ 1215 'yasm_flags': [
1246 '-DPREFIX', 1216 '-DPREFIX',
1247 '-DMACHO', 1217 '-DMACHO',
1248 ], 1218 ],
1249 }, 1219 },
1250 }], 1220 }],
1251 [ 'os_posix==1 and OS!="mac"', { 1221 ['os_posix==1 and OS!="mac"', {
1252 'variables': { 1222 'variables': {
1253 'conditions': [ 1223 'conditions': [
1254 [ 'target_arch=="ia32"', { 1224 ['target_arch=="ia32"', {
1255 'yasm_flags': [ 1225 'yasm_flags': [
1256 '-DX86_32', 1226 '-DX86_32',
1257 '-DELF', 1227 '-DELF',
1258 ], 1228 ],
1259 }, { 1229 }, {
1260 'yasm_flags': [ 1230 'yasm_flags': [
1261 '-DELF', 1231 '-DELF',
1262 '-DPIC', 1232 '-DPIC',
1263 ], 1233 ],
1264 }], 1234 }],
1265 ], 1235 ],
1266 }, 1236 },
1267 }], 1237 }],
1268 ], 1238 ],
1269 'variables': { 1239 'variables': {
1270 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media', 1240 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
1271 'yasm_flags': [ 1241 'yasm_flags': [
1272 '-DCHROMIUM', 1242 '-DCHROMIUM',
1273 # In addition to the same path as source asm, let yasm %include 1243 # In addition to the same path as source asm, let yasm %include
1274 # search path be relative to src/ per Chromium policy. 1244 # search path be relative to src/ per Chromium policy.
1275 '-I..', 1245 '-I..',
1276 ], 1246 ],
1247 'yasm_includes': [
1248 '../third_party/x86inc/x86inc.asm',
1249 'base/simd/convert_rgb_to_yuv_ssse3.inc',
1250 'base/simd/convert_yuv_to_rgb_mmx.inc',
1251 'base/simd/convert_yuva_to_argb_mmx.inc',
1252 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
1253 'base/simd/media_export.asm',
1254 'base/simd/scale_yuv_to_rgb_mmx.inc',
1255 ],
1277 }, 1256 },
1278 'msvs_2010_disable_uldi_when_referenced': 1, 1257 'msvs_2010_disable_uldi_when_referenced': 1,
1279 'includes': [ 1258 'includes': [
1280 '../third_party/yasm/yasm_compile.gypi', 1259 '../third_party/yasm/yasm_compile.gypi',
1281 ], 1260 ],
1282 }, 1261 },
1262 {
1263 'target_name': 'media_mmx',
1264 'type': 'static_library',
1265 'cflags': [
1266 '-mmmx',
1267 ],
1268 'include_dirs': [
1269 '..',
1270 ],
1271 'defines': [
1272 'MEDIA_IMPLEMENTATION',
1273 ],
1274 'conditions': [
1275 # TODO(jschuh): Get MMX enabled on Win64. crbug.com/179657
1276 ['OS!="win" or target_arch=="ia32"', {
1277 'sources': [
1278 'base/simd/filter_yuv_mmx.cc',
1279 ],
1280 }],
1281 ],
1282 },
1283 {
1284 'target_name': 'media_sse',
1285 'type': 'static_library',
1286 'cflags': [
1287 '-msse',
1288 ],
1289 'include_dirs': [
1290 '..',
1291 ],
1292 'defines': [
1293 'MEDIA_IMPLEMENTATION',
1294 ],
1295 'sources': [
1296 'base/simd/sinc_resampler_sse.cc',
1297 ],
1298 },
1299 {
1300 'target_name': 'media_sse2',
1301 'type': 'static_library',
1302 'cflags': [
1303 '-msse2',
1304 ],
1305 'include_dirs': [
1306 '..',
1307 ],
1308 'defines': [
1309 'MEDIA_IMPLEMENTATION',
1310 ],
1311 'sources': [
1312 'base/simd/convert_rgb_to_yuv_sse2.cc',
1313 'base/simd/convert_rgb_to_yuv_ssse3.cc',
1314 'base/simd/filter_yuv_sse2.cc',
1315 'video/capture/screen/differ_block_sse2.cc',
1316 'video/capture/screen/differ_block_sse2.h',
1317 ],
1318 },
1319 {
1320 'target_name': 'shared_memory_support_sse',
1321 'type': 'static_library',
1322 'cflags': [
1323 '-msse',
1324 ],
1325 'include_dirs': [
1326 '..',
1327 ],
1328 'defines': [
1329 'MEDIA_IMPLEMENTATION',
1330 ],
1331 'sources': [
1332 'base/simd/vector_math_sse.cc',
1333 ],
1334 },
1283 ], # targets 1335 ], # targets
1284 }], 1336 }],
1285 ['OS != "ios"', { 1337 ['OS!="ios"', {
1286 'targets': [ 1338 'targets': [
1287 { 1339 {
1288 # Minimal target for NaCl and other renderer side media clients which 1340 # Minimal target for NaCl and other renderer side media clients which
1289 # only need to send audio data across the shared memory to the browser 1341 # only need to send audio data across the shared memory to the browser
1290 # process. 1342 # process.
1291 'target_name': 'shared_memory_support', 1343 'target_name': 'shared_memory_support',
1292 'type': '<(component)', 1344 'type': '<(component)',
1293 'dependencies': [ 1345 'dependencies': [
1294 '../base/base.gyp:base', 1346 '../base/base.gyp:base',
1295 ], 1347 ],
1296 'defines': [ 1348 'defines': [
1297 'MEDIA_IMPLEMENTATION', 1349 'MEDIA_IMPLEMENTATION',
1298 ], 1350 ],
1299 'include_dirs': [ 1351 'include_dirs': [
1300 '..', 1352 '..',
1301 ], 1353 ],
1302 'includes': [ 1354 'includes': [
1303 'shared_memory_support.gypi', 1355 'shared_memory_support.gypi',
1304 ], 1356 ],
1305 'sources': [ 1357 'sources': [
1306 '<@(shared_memory_support_sources)', 1358 '<@(shared_memory_support_sources)',
1307 ], 1359 ],
1308 'conditions': [ 1360 'conditions': [
1309 [ 'target_arch == "ia32" or target_arch == "x64"', { 1361 ['arm_neon==1', {
1310 'dependencies': [ 1362 'defines': [
1311 'media_sse', 1363 'USE_NEON'
1312 ], 1364 ],
1313 }], 1365 }],
1314 ['arm_neon == 1', { 1366 ['target_arch=="ia32" or target_arch=="x64"', {
1315 'defines': [ 1367 'dependencies': [
1316 'USE_NEON' 1368 'shared_memory_support_sse'
1317 ], 1369 ],
1318 }], 1370 }],
1319 ], 1371 ],
1320 }, 1372 },
1321 { 1373 {
1322 'target_name': 'yuv_convert',
1323 'type': 'static_library',
1324 'include_dirs': [
1325 '..',
1326 ],
1327 'conditions': [
1328 [ 'target_arch == "ia32" or target_arch == "x64"', {
1329 'dependencies': [
1330 'yuv_convert_simd_x86',
1331 ],
1332 }],
1333 [ 'target_arch == "arm" or target_arch == "mipsel"', {
1334 'dependencies': [
1335 'yuv_convert_simd_c',
1336 ],
1337 }],
1338 ],
1339 'sources': [
1340 'base/yuv_convert.cc',
1341 'base/yuv_convert.h',
1342 ],
1343 },
1344 {
1345 'target_name': 'yuv_convert_simd_c',
1346 'type': 'static_library',
1347 'include_dirs': [
1348 '..',
1349 ],
1350 'sources': [
1351 'base/simd/convert_rgb_to_yuv.h',
1352 'base/simd/convert_rgb_to_yuv_c.cc',
1353 'base/simd/convert_yuv_to_rgb.h',
1354 'base/simd/convert_yuv_to_rgb_c.cc',
1355 'base/simd/filter_yuv.h',
1356 'base/simd/filter_yuv_c.cc',
1357 'base/simd/yuv_to_rgb_table.cc',
1358 'base/simd/yuv_to_rgb_table.h',
1359 ],
1360 },
1361 {
1362 'target_name': 'seek_tester', 1374 'target_name': 'seek_tester',
1363 'type': 'executable', 1375 'type': 'executable',
1364 'dependencies': [ 1376 'dependencies': [
1365 'media', 1377 'media',
1366 '../base/base.gyp:base', 1378 '../base/base.gyp:base',
1367 ], 1379 ],
1368 'sources': [ 1380 'sources': [
1369 'tools/seek_tester/seek_tester.cc', 1381 'tools/seek_tester/seek_tester.cc',
1370 ], 1382 ],
1371 }, 1383 },
1372 { 1384 {
1373 'target_name': 'demuxer_bench', 1385 'target_name': 'demuxer_bench',
1374 'type': 'executable', 1386 'type': 'executable',
1375 'dependencies': [ 1387 'dependencies': [
1376 'media', 1388 'media',
1377 '../base/base.gyp:base', 1389 '../base/base.gyp:base',
1378 ], 1390 ],
1379 'sources': [ 1391 'sources': [
1380 'tools/demuxer_bench/demuxer_bench.cc', 1392 'tools/demuxer_bench/demuxer_bench.cc',
1381 ], 1393 ],
1382 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1394 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1383 'msvs_disabled_warnings': [ 4267, ], 1395 'msvs_disabled_warnings': [ 4267, ],
1384 }, 1396 },
1385 ], 1397 ],
1386 }], 1398 }],
1387 ['(OS == "win" or toolkit_uses_gtk == 1) and use_aura != 1', { 1399 ['(OS=="win" or toolkit_uses_gtk==1) and use_aura!=1', {
1388 'targets': [ 1400 'targets': [
1389 { 1401 {
1390 'target_name': 'shader_bench', 1402 'target_name': 'shader_bench',
1391 'type': 'executable', 1403 'type': 'executable',
1392 'dependencies': [ 1404 'dependencies': [
1393 'media', 1405 'media',
1394 'yuv_convert',
1395 '../base/base.gyp:base', 1406 '../base/base.gyp:base',
1396 '../ui/gl/gl.gyp:gl', 1407 '../ui/gl/gl.gyp:gl',
1397 '../ui/ui.gyp:ui', 1408 '../ui/ui.gyp:ui',
1398 ], 1409 ],
1399 'sources': [ 1410 'sources': [
1400 'tools/shader_bench/cpu_color_painter.cc', 1411 'tools/shader_bench/cpu_color_painter.cc',
1401 'tools/shader_bench/cpu_color_painter.h', 1412 'tools/shader_bench/cpu_color_painter.h',
1402 'tools/shader_bench/gpu_color_painter.cc', 1413 'tools/shader_bench/gpu_color_painter.cc',
1403 'tools/shader_bench/gpu_color_painter.h', 1414 'tools/shader_bench/gpu_color_painter.h',
1404 'tools/shader_bench/gpu_painter.cc', 1415 'tools/shader_bench/gpu_painter.cc',
1405 'tools/shader_bench/gpu_painter.h', 1416 'tools/shader_bench/gpu_painter.h',
1406 'tools/shader_bench/painter.cc', 1417 'tools/shader_bench/painter.cc',
1407 'tools/shader_bench/painter.h', 1418 'tools/shader_bench/painter.h',
1408 'tools/shader_bench/shader_bench.cc', 1419 'tools/shader_bench/shader_bench.cc',
1409 'tools/shader_bench/window.cc', 1420 'tools/shader_bench/window.cc',
1410 'tools/shader_bench/window.h', 1421 'tools/shader_bench/window.h',
1411 ], 1422 ],
1412 'conditions': [ 1423 'conditions': [
1413 ['toolkit_uses_gtk == 1', { 1424 ['toolkit_uses_gtk==1', {
1414 'dependencies': [ 1425 'dependencies': [
1415 '../build/linux/system.gyp:gtk', 1426 '../build/linux/system.gyp:gtk',
1416 ], 1427 ],
1417 'sources': [ 1428 'sources': [
1418 'tools/shader_bench/window_linux.cc', 1429 'tools/shader_bench/window_linux.cc',
1419 ], 1430 ],
1420 }], 1431 }],
1421 ['OS=="win"', { 1432 ['OS=="win"', {
1422 'dependencies': [ 1433 'dependencies': [
1423 '../third_party/angle/src/build_angle.gyp:libEGL', 1434 '../third_party/angle/src/build_angle.gyp:libEGL',
1424 '../third_party/angle/src/build_angle.gyp:libGLESv2', 1435 '../third_party/angle/src/build_angle.gyp:libGLESv2',
1425 ], 1436 ],
1426 'sources': [ 1437 'sources': [
1427 'tools/shader_bench/window_win.cc', 1438 'tools/shader_bench/window_win.cc',
1428 ], 1439 ],
1429 }], 1440 }],
1430 # See http://crbug.com/162998#c4 for why this is needed. 1441 # See http://crbug.com/162998#c4 for why this is needed.
1431 ['OS=="linux" and linux_use_tcmalloc==1', { 1442 ['OS=="linux" and linux_use_tcmalloc==1', {
1432 'dependencies': [ 1443 'dependencies': [
1433 '../base/allocator/allocator.gyp:allocator', 1444 '../base/allocator/allocator.gyp:allocator',
1434 ], 1445 ],
1435 }], 1446 }],
1436 ], 1447 ],
1437 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1448 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1438 'msvs_disabled_warnings': [ 4267, ], 1449 'msvs_disabled_warnings': [ 4267, ],
1439 }, 1450 },
1440 ], 1451 ],
1441 }], 1452 }],
1442 ['use_x11 == 1', { 1453 ['use_x11==1', {
1443 'targets': [ 1454 'targets': [
1444 { 1455 {
1445 'target_name': 'player_x11', 1456 'target_name': 'player_x11',
1446 'type': 'executable', 1457 'type': 'executable',
1447 'dependencies': [ 1458 'dependencies': [
1448 'media', 1459 'media',
1449 'yuv_convert',
1450 '../base/base.gyp:base', 1460 '../base/base.gyp:base',
1451 '../ui/gl/gl.gyp:gl', 1461 '../ui/gl/gl.gyp:gl',
1452 '../ui/ui.gyp:ui', 1462 '../ui/ui.gyp:ui',
1453 ], 1463 ],
1454 'link_settings': { 1464 'link_settings': {
1455 'libraries': [ 1465 'libraries': [
1456 '-ldl', 1466 '-ldl',
1457 '-lX11', 1467 '-lX11',
1458 '-lXrender', 1468 '-lXrender',
1459 '-lXext', 1469 '-lXext',
1460 ], 1470 ],
1461 }, 1471 },
1462 'sources': [ 1472 'sources': [
1463 'tools/player_x11/data_source_logger.cc', 1473 'tools/player_x11/data_source_logger.cc',
1464 'tools/player_x11/data_source_logger.h', 1474 'tools/player_x11/data_source_logger.h',
1465 'tools/player_x11/gl_video_renderer.cc', 1475 'tools/player_x11/gl_video_renderer.cc',
1466 'tools/player_x11/gl_video_renderer.h', 1476 'tools/player_x11/gl_video_renderer.h',
1467 'tools/player_x11/player_x11.cc', 1477 'tools/player_x11/player_x11.cc',
1468 'tools/player_x11/x11_video_renderer.cc', 1478 'tools/player_x11/x11_video_renderer.cc',
1469 'tools/player_x11/x11_video_renderer.h', 1479 'tools/player_x11/x11_video_renderer.h',
1470 ], 1480 ],
1471 }, 1481 },
1472 ], 1482 ],
1473 }], 1483 }],
1474 # Special target to wrap a gtest_target_type==shared_library 1484 # Special target to wrap a gtest_target_type==shared_library
1475 # media_unittests into an android apk for execution. 1485 # media_unittests into an android apk for execution.
1476 ['OS == "android" and gtest_target_type == "shared_library"', { 1486 ['OS=="android" and gtest_target_type=="shared_library"', {
1477 'targets': [ 1487 'targets': [
1478 { 1488 {
1479 'target_name': 'media_unittests_apk', 1489 'target_name': 'media_unittests_apk',
1480 'type': 'none', 1490 'type': 'none',
1481 'dependencies': [ 1491 'dependencies': [
1482 'media_java', 1492 'media_java',
1483 'media_unittests', 1493 'media_unittests',
1484 ], 1494 ],
1485 'variables': { 1495 'variables': {
1486 'test_suite_name': 'media_unittests', 1496 'test_suite_name': 'media_unittests',
1487 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)media_uni ttests<(SHARED_LIB_SUFFIX)', 1497 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)media_uni ttests<(SHARED_LIB_SUFFIX)',
1488 }, 1498 },
1489 'includes': [ '../build/apk_test.gypi' ], 1499 'includes': ['../build/apk_test.gypi'],
1490 }, 1500 },
1491 ], 1501 ],
1492 }], 1502 }],
1493 ['OS == "android"', { 1503 ['OS=="android"', {
1494 'targets': [ 1504 'targets': [
1495 { 1505 {
1496 'target_name': 'media_player_jni_headers', 1506 'target_name': 'media_player_jni_headers',
1497 'type': 'none', 1507 'type': 'none',
1498 'variables': { 1508 'variables': {
1499 'jni_gen_package': 'media', 1509 'jni_gen_package': 'media',
1500 'input_java_class': 'android/media/MediaPlayer.class', 1510 'input_java_class': 'android/media/MediaPlayer.class',
1501 }, 1511 },
1502 'includes': [ '../build/jar_file_jni_generator.gypi' ], 1512 'includes': ['../build/jar_file_jni_generator.gypi'],
1503 }, 1513 },
1504 { 1514 {
1505 'target_name': 'media_android_jni_headers', 1515 'target_name': 'media_android_jni_headers',
1506 'type': 'none', 1516 'type': 'none',
1507 'dependencies': [ 1517 'dependencies': [
1508 'media_player_jni_headers', 1518 'media_player_jni_headers',
1509 ], 1519 ],
1510 'sources': [ 1520 'sources': [
1511 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java', 1521 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java',
1512 'base/android/java/src/org/chromium/media/MediaCodecBridge.java', 1522 'base/android/java/src/org/chromium/media/MediaCodecBridge.java',
1513 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java', 1523 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java',
1514 'base/android/java/src/org/chromium/media/MediaPlayerListener.java', 1524 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
1515 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.j ava', 1525 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.j ava',
1516 ], 1526 ],
1517 'variables': { 1527 'variables': {
1518 'jni_gen_package': 'media', 1528 'jni_gen_package': 'media',
1519 }, 1529 },
1520 'includes': [ '../build/jni_generator.gypi' ], 1530 'includes': ['../build/jni_generator.gypi'],
1521 }, 1531 },
1522 { 1532 {
1523 'target_name': 'video_capture_android_jni_headers', 1533 'target_name': 'video_capture_android_jni_headers',
1524 'type': 'none', 1534 'type': 'none',
1525 'sources': [ 1535 'sources': [
1526 'base/android/java/src/org/chromium/media/VideoCapture.java', 1536 'base/android/java/src/org/chromium/media/VideoCapture.java',
1527 ], 1537 ],
1528 'variables': { 1538 'variables': {
1529 'jni_gen_package': 'media', 1539 'jni_gen_package': 'media',
1530 }, 1540 },
1531 'includes': [ '../build/jni_generator.gypi' ], 1541 'includes': ['../build/jni_generator.gypi'],
1532 }, 1542 },
1533 { 1543 {
1534 'target_name': 'media_format_jni_headers', 1544 'target_name': 'media_format_jni_headers',
1535 'type': 'none', 1545 'type': 'none',
1536 'variables': { 1546 'variables': {
1537 'jni_gen_package': 'media', 1547 'jni_gen_package': 'media',
1538 'input_java_class': 'android/media/MediaFormat.class', 1548 'input_java_class': 'android/media/MediaFormat.class',
1539 }, 1549 },
1540 'includes': [ '../build/jar_file_jni_generator.gypi' ], 1550 'includes': ['../build/jar_file_jni_generator.gypi'],
1541 }, 1551 },
1542 { 1552 {
1543 'target_name': 'player_android', 1553 'target_name': 'player_android',
1544 'type': 'static_library', 1554 'type': 'static_library',
1545 'sources': [ 1555 'sources': [
1546 'base/android/media_codec_bridge.cc', 1556 'base/android/media_codec_bridge.cc',
1547 'base/android/media_codec_bridge.h', 1557 'base/android/media_codec_bridge.h',
1548 'base/android/media_jni_registrar.cc', 1558 'base/android/media_jni_registrar.cc',
1549 'base/android/media_jni_registrar.h', 1559 'base/android/media_jni_registrar.h',
1550 'base/android/media_player_android.cc', 1560 'base/android/media_player_android.cc',
(...skipping 22 matching lines...) Expand all
1573 'type': 'none', 1583 'type': 'none',
1574 'dependencies': [ 1584 'dependencies': [
1575 '../base/base.gyp:base', 1585 '../base/base.gyp:base',
1576 ], 1586 ],
1577 'export_dependent_settings': [ 1587 'export_dependent_settings': [
1578 '../base/base.gyp:base', 1588 '../base/base.gyp:base',
1579 ], 1589 ],
1580 'variables': { 1590 'variables': {
1581 'java_in_dir': 'base/android/java', 1591 'java_in_dir': 'base/android/java',
1582 }, 1592 },
1583 'includes': [ '../build/java.gypi' ], 1593 'includes': ['../build/java.gypi'],
1584 }, 1594 },
1585 1595
1586 ], 1596 ],
1587 }], 1597 }],
1588 ['media_use_ffmpeg == 1', { 1598 ['media_use_ffmpeg==1', {
1589 'targets': [ 1599 'targets': [
1590 { 1600 {
1591 'target_name': 'ffmpeg_unittests', 1601 'target_name': 'ffmpeg_unittests',
1592 'type': 'executable', 1602 'type': 'executable',
1593 'dependencies': [ 1603 'dependencies': [
1594 '../base/base.gyp:base', 1604 '../base/base.gyp:base',
1595 '../base/base.gyp:base_i18n', 1605 '../base/base.gyp:base_i18n',
1596 '../base/base.gyp:test_support_base', 1606 '../base/base.gyp:test_support_base',
1597 '../base/base.gyp:test_support_perf', 1607 '../base/base.gyp:test_support_perf',
1598 '../testing/gtest.gyp:gtest', 1608 '../testing/gtest.gyp:gtest',
1599 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 1609 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1600 'media', 1610 'media',
1601 'media_test_support', 1611 'media_test_support',
1602 ], 1612 ],
1603 'sources': [ 1613 'sources': [
1604 'ffmpeg/ffmpeg_unittest.cc', 1614 'ffmpeg/ffmpeg_unittest.cc',
1605 ], 1615 ],
1606 'conditions': [ 1616 'conditions': [
1607 ['toolkit_uses_gtk == 1', { 1617 ['toolkit_uses_gtk==1', {
1608 'dependencies': [ 1618 'dependencies': [
1609 # Needed for the following #include chain: 1619 # Needed for the following #include chain:
1610 # base/run_all_unittests.cc 1620 # base/run_all_unittests.cc
1611 # ../base/test_suite.h 1621 # ../base/test_suite.h
1612 # gtk/gtk.h 1622 # gtk/gtk.h
1613 '../build/linux/system.gyp:gtk', 1623 '../build/linux/system.gyp:gtk',
1614 ], 1624 ],
1615 'conditions': [ 1625 'conditions': [
1616 ['linux_use_tcmalloc==1', { 1626 ['linux_use_tcmalloc==1', {
1617 'dependencies': [ 1627 'dependencies': [
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 'media', 1684 'media',
1675 ], 1685 ],
1676 'sources': [ 1686 'sources': [
1677 'tools/media_bench/media_bench.cc', 1687 'tools/media_bench/media_bench.cc',
1678 ], 1688 ],
1679 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1689 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1680 'msvs_disabled_warnings': [ 4267, ], 1690 'msvs_disabled_warnings': [ 4267, ],
1681 }, 1691 },
1682 ], 1692 ],
1683 }], 1693 }],
1684 [ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch=="x64 ")', {
1685 'targets': [
1686 {
1687 'target_name': 'differ_block_sse2',
1688 'type': 'static_library',
1689 'conditions': [
1690 [ 'os_posix == 1 and OS != "mac"', {
1691 'cflags': [
1692 '-msse2',
1693 ],
1694 }],
1695 ],
1696 'include_dirs': [
1697 '..',
1698 ],
1699 'sources': [
1700 'video/capture/screen/differ_block_sse2.cc',
1701 'video/capture/screen/differ_block_sse2.h',
1702 ],
1703 }, # end of target differ_block_sse2
1704 ],
1705 }],
1706 # ios check is necessary due to http://crbug.com/172682.
1707 ['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', {
1708 'targets': [
1709 {
1710 'target_name': 'media_sse',
1711 'type': 'static_library',
1712 'cflags': [
1713 '-msse',
1714 ],
1715 'include_dirs': [
1716 '..',
1717 ],
1718 'defines': [
1719 'MEDIA_IMPLEMENTATION',
1720 ],
1721 'sources': [
1722 'base/simd/sinc_resampler_sse.cc',
1723 'base/simd/vector_math_sse.cc',
1724 ],
1725 }, # end of target media_sse
1726 ],
1727 }],
1728 ], 1694 ],
1729 } 1695 }
OLDNEW
« no previous file with comments | « media/base/yuv_convert_unittest.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698