OLD | NEW |
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. | 8 # Override to dynamically link the PulseAudio library. |
9 'use_pulseaudio%': 0, | 9 'use_pulseaudio%': 0, |
10 # Override to dynamically link the cras (ChromeOS audio) library. | 10 # Override to dynamically link the cras (ChromeOS audio) library. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 'audio/mac/audio_output_mac.cc', | 132 'audio/mac/audio_output_mac.cc', |
133 'audio/mac/audio_output_mac.h', | 133 'audio/mac/audio_output_mac.h', |
134 'audio/mac/audio_synchronized_mac.cc', | 134 'audio/mac/audio_synchronized_mac.cc', |
135 'audio/mac/audio_synchronized_mac.h', | 135 'audio/mac/audio_synchronized_mac.h', |
136 'audio/mac/audio_unified_mac.cc', | 136 'audio/mac/audio_unified_mac.cc', |
137 'audio/mac/audio_unified_mac.h', | 137 'audio/mac/audio_unified_mac.h', |
138 'audio/null_audio_sink.cc', | 138 'audio/null_audio_sink.cc', |
139 'audio/null_audio_sink.h', | 139 'audio/null_audio_sink.h', |
140 'audio/openbsd/audio_manager_openbsd.cc', | 140 'audio/openbsd/audio_manager_openbsd.cc', |
141 'audio/openbsd/audio_manager_openbsd.h', | 141 'audio/openbsd/audio_manager_openbsd.h', |
| 142 'audio/pulse/audio_manager_pulse.cc', |
| 143 'audio/pulse/audio_manager_pulse.h', |
142 'audio/pulse/pulse_output.cc', | 144 'audio/pulse/pulse_output.cc', |
143 'audio/pulse/pulse_output.h', | 145 'audio/pulse/pulse_output.h', |
| 146 'audio/pulse/pulse_input.cc', |
| 147 'audio/pulse/pulse_input.h', |
| 148 'audio/pulse/pulse_util.cc', |
| 149 'audio/pulse/pulse_util.h', |
144 'audio/sample_rates.cc', | 150 'audio/sample_rates.cc', |
145 'audio/sample_rates.h', | 151 'audio/sample_rates.h', |
146 'audio/scoped_loop_observer.cc', | 152 'audio/scoped_loop_observer.cc', |
147 'audio/scoped_loop_observer.h', | 153 'audio/scoped_loop_observer.h', |
148 'audio/simple_sources.cc', | 154 'audio/simple_sources.cc', |
149 'audio/simple_sources.h', | 155 'audio/simple_sources.h', |
150 'audio/virtual_audio_input_stream.cc', | 156 'audio/virtual_audio_input_stream.cc', |
151 'audio/virtual_audio_input_stream.h', | 157 'audio/virtual_audio_input_stream.h', |
152 'audio/virtual_audio_output_stream.cc', | 158 'audio/virtual_audio_output_stream.cc', |
153 'audio/virtual_audio_output_stream.h', | 159 'audio/virtual_audio_output_stream.h', |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 'audio/cras/cras_output.cc', | 629 'audio/cras/cras_output.cc', |
624 'audio/cras/cras_output.h', | 630 'audio/cras/cras_output.h', |
625 ], | 631 ], |
626 }], | 632 }], |
627 ['os_posix == 1', { | 633 ['os_posix == 1', { |
628 'conditions': [ | 634 'conditions': [ |
629 ['use_pulseaudio == 1', { | 635 ['use_pulseaudio == 1', { |
630 'cflags': [ | 636 'cflags': [ |
631 '<!@(pkg-config --cflags libpulse)', | 637 '<!@(pkg-config --cflags libpulse)', |
632 ], | 638 ], |
633 'link_settings': { | |
634 'libraries': [ | |
635 '<!@(pkg-config --libs-only-l libpulse)', | |
636 ], | |
637 }, | |
638 'defines': [ | 639 'defines': [ |
639 'USE_PULSEAUDIO', | 640 'USE_PULSEAUDIO', |
640 ], | 641 ], |
| 642 'variables': { |
| 643 'generate_stubs_script': '../tools/generate_stubs/generate_stubs
.py', |
| 644 'extra_header': 'audio/pulse/pulse_stub_header.fragment', |
| 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)', |
| 665 ], |
| 666 'outputs': [ |
| 667 '<(intermediate_dir)/<(stubs_filename_root).cc', |
| 668 '<(output_root)/<(project_path)/<(stubs_filename_root).h', |
| 669 ], |
| 670 'action': ['python', |
| 671 '<(generate_stubs_script)', |
| 672 '-i', '<(intermediate_dir)', |
| 673 '-o', '<(output_root)/<(project_path)', |
| 674 '-t', '<(outfile_type)', |
| 675 '-e', '<(extra_header)', |
| 676 '-s', '<(stubs_filename_root)', |
| 677 '-p', '<(project_path)', |
| 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 ], |
| 691 }, |
| 692 }], |
| 693 ], |
641 }, { # else: use_pulseaudio == 0 | 694 }, { # else: use_pulseaudio == 0 |
642 'sources!': [ | 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', |
643 'audio/pulse/pulse_output.cc', | 700 'audio/pulse/pulse_output.cc', |
644 'audio/pulse/pulse_output.h', | 701 'audio/pulse/pulse_output.h', |
| 702 'audio/pulse/pulse_util.cc', |
| 703 'audio/pulse/pulse_util.h', |
645 ], | 704 ], |
646 }], | 705 }], |
647 ], | 706 ], |
648 'sources!': [ | 707 'sources!': [ |
649 'video/capture/video_capture_device_dummy.cc', | 708 'video/capture/video_capture_device_dummy.cc', |
650 'video/capture/video_capture_device_dummy.h', | 709 'video/capture/video_capture_device_dummy.h', |
651 ], | 710 ], |
652 }], | 711 }], |
653 ['OS=="mac"', { | 712 ['OS=="mac"', { |
654 'link_settings': { | 713 'link_settings': { |
655 'libraries': [ | 714 'libraries': [ |
656 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', | 715 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', |
657 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', | 716 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', |
658 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', | 717 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', |
659 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', | 718 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', |
660 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | 719 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
661 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', | 720 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', |
662 ], | 721 ], |
663 }, | 722 }, |
664 }], | 723 }], |
665 ['OS=="win"', { | 724 ['OS=="win"', { |
666 'sources!': [ | 725 'sources!': [ |
| 726 'audio/pulse/audio_manager_pulse.cc', |
| 727 'audio/pulse/audio_manager_pulse.h', |
| 728 'audio/pulse/pulse_input.cc', |
| 729 'audio/pulse/pulse_input.h', |
667 'audio/pulse/pulse_output.cc', | 730 'audio/pulse/pulse_output.cc', |
668 'audio/pulse/pulse_output.h', | 731 'audio/pulse/pulse_output.h', |
| 732 'audio/pulse/pulse_util.cc', |
| 733 'audio/pulse/pulse_util.h', |
669 'video/capture/video_capture_device_dummy.cc', | 734 'video/capture/video_capture_device_dummy.cc', |
670 'video/capture/video_capture_device_dummy.h', | 735 'video/capture/video_capture_device_dummy.h', |
671 ], | 736 ], |
672 'link_settings': { | 737 'link_settings': { |
673 'libraries': [ | 738 'libraries': [ |
674 '-lmf.lib', | 739 '-lmf.lib', |
675 '-lmfplat.lib', | 740 '-lmfplat.lib', |
676 '-lmfreadwrite.lib', | 741 '-lmfreadwrite.lib', |
677 '-lmfuuid.lib', | 742 '-lmfuuid.lib', |
678 ], | 743 ], |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 ], | 1572 ], |
1508 'sources': [ | 1573 'sources': [ |
1509 'video/capture/screen/differ_block_sse2.cc', | 1574 'video/capture/screen/differ_block_sse2.cc', |
1510 'video/capture/screen/differ_block_sse2.h', | 1575 'video/capture/screen/differ_block_sse2.h', |
1511 ], | 1576 ], |
1512 }, # end of target differ_block_sse2 | 1577 }, # end of target differ_block_sse2 |
1513 ], | 1578 ], |
1514 }], | 1579 }], |
1515 ], | 1580 ], |
1516 } | 1581 } |
OLD | NEW |