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

Side by Side Diff: media/media.gyp

Issue 12310101: Enable pulse as the default IO handling in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added UMA histogram Created 7 years, 9 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/media_switches.cc ('k') | no next file » | 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 PulseAudio library.
9 'use_pulseaudio%': 0,
10 # Override to dynamically link the cras (ChromeOS audio) library. 8 # Override to dynamically link the cras (ChromeOS audio) library.
11 'use_cras%': 0, 9 'use_cras%': 0,
12 'conditions': [ 10 'conditions': [
13 ['OS == "android" or OS == "ios"', { 11 ['OS == "android" or OS == "ios"', {
14 # Android and iOS don't use ffmpeg. 12 # Android and iOS don't use ffmpeg.
15 'media_use_ffmpeg%': 0, 13 'media_use_ffmpeg%': 0,
16 # Android and iOS don't use libvpx. 14 # Android and iOS don't use libvpx.
17 'media_use_libvpx%': 0, 15 'media_use_libvpx%': 0,
18 }, { # 'OS != "android" and OS != "ios"' 16 }, { # 'OS != "android" and OS != "ios"'
19 'media_use_ffmpeg%': 1, 17 'media_use_ffmpeg%': 1,
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 ['OS!="linux"', { 631 ['OS!="linux"', {
634 'sources!': [ 632 'sources!': [
635 'audio/cras/audio_manager_cras.cc', 633 'audio/cras/audio_manager_cras.cc',
636 'audio/cras/audio_manager_cras.h', 634 'audio/cras/audio_manager_cras.h',
637 'audio/cras/cras_input.cc', 635 'audio/cras/cras_input.cc',
638 'audio/cras/cras_input.h', 636 'audio/cras/cras_input.h',
639 'audio/cras/cras_output.cc', 637 'audio/cras/cras_output.cc',
640 'audio/cras/cras_output.h', 638 'audio/cras/cras_output.h',
641 ], 639 ],
642 }], 640 }],
643 ['os_posix == 1', { 641 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
644 'conditions': [ 642 'variables': {
645 ['use_pulseaudio == 1', { 643 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py' ,
646 'cflags': [ 644 'extra_header': 'audio/pulse/pulse_stub_header.fragment',
647 '<!@(pkg-config --cflags libpulse)', 645 'sig_files': ['audio/pulse/pulse.sigs'],
646 'outfile_type': 'posix_stubs',
647 'stubs_filename_root': 'pulse_stubs',
648 'project_path': 'media/audio/pulse',
649 'intermediate_dir': '<(INTERMEDIATE_DIR)',
650 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse',
651 },
652 'sources': [
653 '<(extra_header)',
654 ],
655 'include_dirs': [
656 '<(output_root)',
657 ],
658 'actions': [
659 {
660 'action_name': 'generate_stubs',
661 'inputs': [
662 '<(generate_stubs_script)',
663 '<(extra_header)',
664 '<@(sig_files)',
648 ], 665 ],
649 'defines': [ 666 'outputs': [
650 'USE_PULSEAUDIO', 667 '<(intermediate_dir)/<(stubs_filename_root).cc',
668 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
651 ], 669 ],
652 'variables': { 670 'action': ['python',
653 'generate_stubs_script': '../tools/generate_stubs/generate_stubs .py', 671 '<(generate_stubs_script)',
654 'extra_header': 'audio/pulse/pulse_stub_header.fragment', 672 '-i', '<(intermediate_dir)',
655 'sig_files': ['audio/pulse/pulse.sigs'], 673 '-o', '<(output_root)/<(project_path)',
656 'outfile_type': 'posix_stubs', 674 '-t', '<(outfile_type)',
657 'stubs_filename_root': 'pulse_stubs', 675 '-e', '<(extra_header)',
658 'project_path': 'media/audio/pulse', 676 '-s', '<(stubs_filename_root)',
659 'intermediate_dir': '<(INTERMEDIATE_DIR)', 677 '-p', '<(project_path)',
660 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse', 678 '<@(_inputs)',
679 ],
680 'process_outputs_as_sources': 1,
681 'message': 'Generating Pulse stubs for dynamic loading.',
682 },
683 ],
684 'conditions': [
685 # Linux/Solaris need libdl for dlopen() and friends.
686 ['OS == "linux" or OS == "solaris"', {
687 'link_settings': {
688 'libraries': [
689 '-ldl',
690 ],
661 }, 691 },
662 'sources': [
663 '<(extra_header)',
664 ],
665 'include_dirs': [
666 '<(output_root)',
667 ],
668 'actions': [
669 {
670 'action_name': 'generate_stubs',
671 'inputs': [
672 '<(generate_stubs_script)',
673 '<(extra_header)',
674 '<@(sig_files)',
675 ],
676 'outputs': [
677 '<(intermediate_dir)/<(stubs_filename_root).cc',
678 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
679 ],
680 'action': ['python',
681 '<(generate_stubs_script)',
682 '-i', '<(intermediate_dir)',
683 '-o', '<(output_root)/<(project_path)',
684 '-t', '<(outfile_type)',
685 '-e', '<(extra_header)',
686 '-s', '<(stubs_filename_root)',
687 '-p', '<(project_path)',
688 '<@(_inputs)',
689 ],
690 'process_outputs_as_sources': 1,
691 'message': 'Generating Pulse stubs for dynamic loading.',
692 },
693 ],
694 'conditions': [
695 # Linux/Solaris need libdl for dlopen() and friends.
696 ['OS == "linux" or OS == "solaris"', {
697 'link_settings': {
698 'libraries': [
699 '-ldl',
700 ],
701 },
702 }],
703 ],
704 }, { # else: use_pulseaudio == 0
705 'sources!': [
706 'audio/pulse/audio_manager_pulse.cc',
707 'audio/pulse/audio_manager_pulse.h',
708 'audio/pulse/pulse_input.cc',
709 'audio/pulse/pulse_input.h',
710 'audio/pulse/pulse_output.cc',
711 'audio/pulse/pulse_output.h',
712 'audio/pulse/pulse_util.cc',
713 'audio/pulse/pulse_util.h',
714 ],
715 }], 692 }],
716 ], 693 ],
694 }, { # else: OS=="win or OS == "mac" or OS == "ios" or OS == "android"
695 'sources!': [
696 'audio/pulse/audio_manager_pulse.cc',
697 'audio/pulse/audio_manager_pulse.h',
698 'audio/pulse/pulse_input.cc',
699 'audio/pulse/pulse_input.h',
700 'audio/pulse/pulse_output.cc',
701 'audio/pulse/pulse_output.h',
702 'audio/pulse/pulse_util.cc',
703 'audio/pulse/pulse_util.h',
704 ],
705 }],
706 ['os_posix == 1', {
717 'sources!': [ 707 'sources!': [
718 'video/capture/video_capture_device_dummy.cc', 708 'video/capture/video_capture_device_dummy.cc',
719 'video/capture/video_capture_device_dummy.h', 709 'video/capture/video_capture_device_dummy.h',
720 ], 710 ],
721 }], 711 }],
722 ['OS=="mac"', { 712 ['OS=="mac"', {
723 'link_settings': { 713 'link_settings': {
724 'libraries': [ 714 'libraries': [
725 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', 715 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
726 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', 716 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
727 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', 717 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
728 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', 718 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
729 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', 719 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
730 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', 720 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
731 ], 721 ],
732 }, 722 },
733 }], 723 }],
734 ['OS=="win"', { 724 ['OS=="win"', {
735 'sources!': [ 725 'sources!': [
736 'audio/pulse/audio_manager_pulse.cc',
737 'audio/pulse/audio_manager_pulse.h',
738 'audio/pulse/pulse_input.cc',
739 'audio/pulse/pulse_input.h',
740 'audio/pulse/pulse_output.cc',
741 'audio/pulse/pulse_output.h',
742 'audio/pulse/pulse_util.cc',
743 'audio/pulse/pulse_util.h',
744 'video/capture/video_capture_device_dummy.cc', 726 'video/capture/video_capture_device_dummy.cc',
745 'video/capture/video_capture_device_dummy.h', 727 'video/capture/video_capture_device_dummy.h',
746 ], 728 ],
747 'link_settings': { 729 'link_settings': {
748 'libraries': [ 730 'libraries': [
749 '-lmf.lib', 731 '-lmf.lib',
750 '-lmfplat.lib', 732 '-lmfplat.lib',
751 '-lmfreadwrite.lib', 733 '-lmfreadwrite.lib',
752 '-lmfuuid.lib', 734 '-lmfuuid.lib',
753 ], 735 ],
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 ], 1613 ],
1632 'sources': [ 1614 'sources': [
1633 'base/simd/sinc_resampler_sse.cc', 1615 'base/simd/sinc_resampler_sse.cc',
1634 'base/simd/vector_math_sse.cc', 1616 'base/simd/vector_math_sse.cc',
1635 ], 1617 ],
1636 }, # end of target media_sse 1618 }, # end of target media_sse
1637 ], 1619 ],
1638 }], 1620 }],
1639 ], 1621 ],
1640 } 1622 }
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698