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

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

Powered by Google App Engine
This is Rietveld 408576698