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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 'audio/mac/audio_output_mac.cc', | 130 'audio/mac/audio_output_mac.cc', |
131 'audio/mac/audio_output_mac.h', | 131 'audio/mac/audio_output_mac.h', |
132 'audio/mac/audio_synchronized_mac.cc', | 132 'audio/mac/audio_synchronized_mac.cc', |
133 'audio/mac/audio_synchronized_mac.h', | 133 'audio/mac/audio_synchronized_mac.h', |
134 'audio/mac/audio_unified_mac.cc', | 134 'audio/mac/audio_unified_mac.cc', |
135 'audio/mac/audio_unified_mac.h', | 135 'audio/mac/audio_unified_mac.h', |
136 'audio/null_audio_sink.cc', | 136 'audio/null_audio_sink.cc', |
137 'audio/null_audio_sink.h', | 137 'audio/null_audio_sink.h', |
138 'audio/openbsd/audio_manager_openbsd.cc', | 138 'audio/openbsd/audio_manager_openbsd.cc', |
139 'audio/openbsd/audio_manager_openbsd.h', | 139 'audio/openbsd/audio_manager_openbsd.h', |
| 140 'audio/pulse/audio_manager_pulse.cc', |
| 141 'audio/pulse/audio_manager_pulse.h', |
140 'audio/pulse/pulse_output.cc', | 142 'audio/pulse/pulse_output.cc', |
141 'audio/pulse/pulse_output.h', | 143 'audio/pulse/pulse_output.h', |
| 144 'audio/pulse/pulse_input.cc', |
| 145 'audio/pulse/pulse_input.h', |
| 146 'audio/pulse/pulse_util.cc', |
| 147 'audio/pulse/pulse_util.h', |
142 'audio/sample_rates.cc', | 148 'audio/sample_rates.cc', |
143 'audio/sample_rates.h', | 149 'audio/sample_rates.h', |
144 'audio/scoped_loop_observer.cc', | 150 'audio/scoped_loop_observer.cc', |
145 'audio/scoped_loop_observer.h', | 151 'audio/scoped_loop_observer.h', |
146 'audio/simple_sources.cc', | 152 'audio/simple_sources.cc', |
147 'audio/simple_sources.h', | 153 'audio/simple_sources.h', |
148 'audio/virtual_audio_input_stream.cc', | 154 'audio/virtual_audio_input_stream.cc', |
149 'audio/virtual_audio_input_stream.h', | 155 'audio/virtual_audio_input_stream.h', |
150 'audio/virtual_audio_output_stream.cc', | 156 'audio/virtual_audio_output_stream.cc', |
151 'audio/virtual_audio_output_stream.h', | 157 'audio/virtual_audio_output_stream.h', |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 ], | 603 ], |
598 }], | 604 }], |
599 ], | 605 ], |
600 }], | 606 }], |
601 ['os_posix == 1', { | 607 ['os_posix == 1', { |
602 'conditions': [ | 608 'conditions': [ |
603 ['use_pulseaudio == 1', { | 609 ['use_pulseaudio == 1', { |
604 'cflags': [ | 610 'cflags': [ |
605 '<!@(pkg-config --cflags libpulse)', | 611 '<!@(pkg-config --cflags libpulse)', |
606 ], | 612 ], |
607 'link_settings': { | |
608 'libraries': [ | |
609 '<!@(pkg-config --libs-only-l libpulse)', | |
610 ], | |
611 }, | |
612 'defines': [ | 613 'defines': [ |
613 'USE_PULSEAUDIO', | 614 'USE_PULSEAUDIO', |
614 ], | 615 ], |
| 616 'variables': { |
| 617 'generate_stubs_script': '../tools/generate_stubs/generate_stubs
.py', |
| 618 'extra_header': 'audio/pulse/pulse_stub_header.fragment', |
| 619 'sig_files': ['audio/pulse/pulse.sigs'], |
| 620 'outfile_type': 'posix_stubs', |
| 621 'stubs_filename_root': 'pulse_stubs', |
| 622 'project_path': 'media/audio/pulse', |
| 623 'intermediate_dir': '<(INTERMEDIATE_DIR)', |
| 624 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse', |
| 625 }, |
| 626 'sources': [ |
| 627 '<(extra_header)', |
| 628 ], |
| 629 'include_dirs': [ |
| 630 '<(output_root)', |
| 631 ], |
| 632 'actions': [ |
| 633 { |
| 634 'action_name': 'generate_stubs', |
| 635 'inputs': [ |
| 636 '<(generate_stubs_script)', |
| 637 '<(extra_header)', |
| 638 '<@(sig_files)', |
| 639 ], |
| 640 'outputs': [ |
| 641 '<(intermediate_dir)/<(stubs_filename_root).cc', |
| 642 '<(output_root)/<(project_path)/<(stubs_filename_root).h', |
| 643 ], |
| 644 'action': ['python', |
| 645 '<(generate_stubs_script)', |
| 646 '-i', '<(intermediate_dir)', |
| 647 '-o', '<(output_root)/<(project_path)', |
| 648 '-t', '<(outfile_type)', |
| 649 '-e', '<(extra_header)', |
| 650 '-s', '<(stubs_filename_root)', |
| 651 '-p', '<(project_path)', |
| 652 '<@(_inputs)', |
| 653 ], |
| 654 'process_outputs_as_sources': 1, |
| 655 'message': 'Generating Pulse stubs for dynamic loading.', |
| 656 }, |
| 657 ], |
| 658 'conditions': [ |
| 659 # Linux/Solaris need libdl for dlopen() and friends. |
| 660 ['OS == "linux" or OS == "solaris"', { |
| 661 'link_settings': { |
| 662 'libraries': [ |
| 663 '-ldl', |
| 664 ], |
| 665 }, |
| 666 }], |
| 667 ], |
615 }, { # else: use_pulseaudio == 0 | 668 }, { # else: use_pulseaudio == 0 |
616 'sources!': [ | 669 'sources!': [ |
| 670 'audio/pulse/audio_manager_pulse.cc', |
| 671 'audio/pulse/audio_manager_pulse.h', |
| 672 'audio/pulse/pulse_input.cc', |
| 673 'audio/pulse/pulse_input.h', |
617 'audio/pulse/pulse_output.cc', | 674 'audio/pulse/pulse_output.cc', |
618 'audio/pulse/pulse_output.h', | 675 'audio/pulse/pulse_output.h', |
| 676 'audio/pulse/pulse_util.cc', |
| 677 'audio/pulse/pulse_util.h', |
619 ], | 678 ], |
620 }], | 679 }], |
621 ], | 680 ], |
622 'sources!': [ | 681 'sources!': [ |
623 'video/capture/video_capture_device_dummy.cc', | 682 'video/capture/video_capture_device_dummy.cc', |
624 'video/capture/video_capture_device_dummy.h', | 683 'video/capture/video_capture_device_dummy.h', |
625 ], | 684 ], |
626 }], | 685 }], |
627 ['OS=="mac"', { | 686 ['OS=="mac"', { |
628 'link_settings': { | 687 'link_settings': { |
629 'libraries': [ | 688 'libraries': [ |
630 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', | 689 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', |
631 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', | 690 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', |
632 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', | 691 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', |
633 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', | 692 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', |
634 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | 693 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
635 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', | 694 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', |
636 ], | 695 ], |
637 }, | 696 }, |
638 }], | 697 }], |
639 ['OS=="win"', { | 698 ['OS=="win"', { |
640 'sources!': [ | 699 'sources!': [ |
| 700 'audio/pulse/audio_manager_pulse.cc', |
| 701 'audio/pulse/audio_manager_pulse.h', |
| 702 'audio/pulse/pulse_input.cc', |
| 703 'audio/pulse/pulse_input.h', |
641 'audio/pulse/pulse_output.cc', | 704 'audio/pulse/pulse_output.cc', |
642 'audio/pulse/pulse_output.h', | 705 'audio/pulse/pulse_output.h', |
| 706 'audio/pulse/pulse_util.cc', |
| 707 'audio/pulse/pulse_util.h', |
643 'video/capture/video_capture_device_dummy.cc', | 708 'video/capture/video_capture_device_dummy.cc', |
644 'video/capture/video_capture_device_dummy.h', | 709 'video/capture/video_capture_device_dummy.h', |
645 ], | 710 ], |
646 'link_settings': { | 711 'link_settings': { |
647 'libraries': [ | 712 'libraries': [ |
648 '-lmf.lib', | 713 '-lmf.lib', |
649 '-lmfplat.lib', | 714 '-lmfplat.lib', |
650 '-lmfreadwrite.lib', | 715 '-lmfreadwrite.lib', |
651 '-lmfuuid.lib', | 716 '-lmfuuid.lib', |
652 ], | 717 ], |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 ], | 1547 ], |
1483 'sources': [ | 1548 'sources': [ |
1484 'video/capture/screen/differ_block_sse2.cc', | 1549 'video/capture/screen/differ_block_sse2.cc', |
1485 'video/capture/screen/differ_block_sse2.h', | 1550 'video/capture/screen/differ_block_sse2.h', |
1486 ], | 1551 ], |
1487 }, # end of target differ_block_sse2 | 1552 }, # end of target differ_block_sse2 |
1488 ], | 1553 ], |
1489 }], | 1554 }], |
1490 ], | 1555 ], |
1491 } | 1556 } |
OLD | NEW |