Chromium Code Reviews| 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', | |
|
DaleCurtis
2013/02/20 00:17:38
For the variables which are only used once, just p
no longer working on chromium
2013/02/20 14:43:38
Only sig_files and outfile_type are used once, I h
| |
| 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 '..', | |
|
DaleCurtis
2013/02/20 00:17:38
Is .. necessary for this?
no longer working on chromium
2013/02/20 14:43:38
We need to include the output_root since the heade
| |
| 632 ], | |
| 633 'dependencies': [ | |
|
DaleCurtis
2013/02/20 00:17:38
base is already a dependency elsewhere.
no longer working on chromium
2013/02/20 14:43:38
Removed.
| |
| 634 # Required for the logging done in the stubs generator. | |
| 635 '../base/base.gyp:base', | |
| 636 ], | |
| 637 'direct_dependent_settings': { | |
|
DaleCurtis
2013/02/20 00:17:38
These shouldn't be necessary here since you're in
no longer working on chromium
2013/02/20 14:43:38
Removed
| |
| 638 'include_dirs': [ | |
| 639 '<(output_root)', | |
| 640 '..', | |
| 641 ], | |
| 642 }, | |
| 643 'actions': [ | |
| 644 { | |
| 645 'action_name': 'generate_stubs', | |
| 646 'inputs': [ | |
| 647 '<(generate_stubs_script)', | |
| 648 '<(extra_header)', | |
| 649 '<@(sig_files)', | |
| 650 ], | |
| 651 'outputs': [ | |
| 652 '<(intermediate_dir)/<(stubs_filename_root).cc', | |
| 653 '<(output_root)/<(project_path)/<(stubs_filename_root).h', | |
| 654 ], | |
| 655 'action': ['python', | |
| 656 '<(generate_stubs_script)', | |
| 657 '-i', '<(intermediate_dir)', | |
| 658 '-o', '<(output_root)/<(project_path)', | |
| 659 '-t', '<(outfile_type)', | |
| 660 '-e', '<(extra_header)', | |
| 661 '-s', '<(stubs_filename_root)', | |
| 662 '-p', '<(project_path)', | |
| 663 '<@(_inputs)', | |
| 664 ], | |
| 665 'process_outputs_as_sources': 1, | |
| 666 'message': 'Generating Pulse stubs for dynamic loading.', | |
| 667 }, | |
| 668 ], | |
| 669 'conditions': [ | |
| 670 # Linux/Solaris need libdl for dlopen() and friends. | |
| 671 ['OS == "linux" or OS == "solaris"', { | |
| 672 'link_settings': { | |
| 673 'libraries': [ | |
| 674 '-ldl', | |
| 675 ], | |
| 676 }, | |
| 677 }], | |
| 678 ], | |
| 615 }, { # else: use_pulseaudio == 0 | 679 }, { # else: use_pulseaudio == 0 |
| 616 'sources!': [ | 680 'sources!': [ |
| 681 'audio/pulse/audio_manager_pulse.cc', | |
| 682 'audio/pulse/audio_manager_pulse.h', | |
| 683 'audio/pulse/pulse_input.cc', | |
| 684 'audio/pulse/pulse_input.h', | |
| 617 'audio/pulse/pulse_output.cc', | 685 'audio/pulse/pulse_output.cc', |
| 618 'audio/pulse/pulse_output.h', | 686 'audio/pulse/pulse_output.h', |
| 687 'audio/pulse/pulse_util.cc', | |
| 688 'audio/pulse/pulse_util.h', | |
| 619 ], | 689 ], |
| 620 }], | 690 }], |
| 621 ], | 691 ], |
| 622 'sources!': [ | 692 'sources!': [ |
| 623 'video/capture/video_capture_device_dummy.cc', | 693 'video/capture/video_capture_device_dummy.cc', |
| 624 'video/capture/video_capture_device_dummy.h', | 694 'video/capture/video_capture_device_dummy.h', |
| 625 ], | 695 ], |
| 626 }], | 696 }], |
| 627 ['OS=="mac"', { | 697 ['OS=="mac"', { |
| 628 'link_settings': { | 698 'link_settings': { |
| 629 'libraries': [ | 699 'libraries': [ |
| 630 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', | 700 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', |
| 631 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', | 701 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', |
| 632 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', | 702 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', |
| 633 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', | 703 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', |
| 634 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | 704 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 635 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', | 705 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', |
| 636 ], | 706 ], |
| 637 }, | 707 }, |
| 638 }], | 708 }], |
| 639 ['OS=="win"', { | 709 ['OS=="win"', { |
| 640 'sources!': [ | 710 'sources!': [ |
| 711 'audio/pulse/audio_manager_pulse.cc', | |
| 712 'audio/pulse/audio_manager_pulse.h', | |
| 713 'audio/pulse/pulse_input.cc', | |
| 714 'audio/pulse/pulse_input.h', | |
| 641 'audio/pulse/pulse_output.cc', | 715 'audio/pulse/pulse_output.cc', |
| 642 'audio/pulse/pulse_output.h', | 716 'audio/pulse/pulse_output.h', |
| 717 'audio/pulse/pulse_util.cc', | |
| 718 'audio/pulse/pulse_util.h', | |
| 643 'video/capture/video_capture_device_dummy.cc', | 719 'video/capture/video_capture_device_dummy.cc', |
| 644 'video/capture/video_capture_device_dummy.h', | 720 'video/capture/video_capture_device_dummy.h', |
| 645 ], | 721 ], |
| 646 'link_settings': { | 722 'link_settings': { |
| 647 'libraries': [ | 723 'libraries': [ |
| 648 '-lmf.lib', | 724 '-lmf.lib', |
| 649 '-lmfplat.lib', | 725 '-lmfplat.lib', |
| 650 '-lmfreadwrite.lib', | 726 '-lmfreadwrite.lib', |
| 651 '-lmfuuid.lib', | 727 '-lmfuuid.lib', |
| 652 ], | 728 ], |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1474 ], | 1550 ], |
| 1475 'sources': [ | 1551 'sources': [ |
| 1476 'video/capture/screen/differ_block_sse2.cc', | 1552 'video/capture/screen/differ_block_sse2.cc', |
| 1477 'video/capture/screen/differ_block_sse2.h', | 1553 'video/capture/screen/differ_block_sse2.h', |
| 1478 ], | 1554 ], |
| 1479 }, # end of target differ_block_sse2 | 1555 }, # end of target differ_block_sse2 |
| 1480 ], | 1556 ], |
| 1481 }], | 1557 }], |
| 1482 ], | 1558 ], |
| 1483 } | 1559 } |
| OLD | NEW |