| 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 cras (ChromeOS audio) library. | 8 # Override to dynamically link the cras (ChromeOS audio) library. |
| 9 'use_cras%': 0, | 9 'use_cras%': 0, |
| 10 'conditions': [ | 10 'conditions': [ |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 'screen_capture_supported%': 1, | 22 'screen_capture_supported%': 1, |
| 23 }, { | 23 }, { |
| 24 'screen_capture_supported%': 0, | 24 'screen_capture_supported%': 0, |
| 25 }], | 25 }], |
| 26 # ALSA usage. | 26 # ALSA usage. |
| 27 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { | 27 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { |
| 28 'use_alsa%': 1, | 28 'use_alsa%': 1, |
| 29 }, { | 29 }, { |
| 30 'use_alsa%': 0, | 30 'use_alsa%': 0, |
| 31 }], | 31 }], |
| 32 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android" and ch
romeos != 1', { |
| 33 'use_pulseaudio%': 1, |
| 34 }, { |
| 35 'use_pulseaudio%': 0, |
| 36 }], |
| 32 ], | 37 ], |
| 33 }, | 38 }, |
| 34 'targets': [ | 39 'targets': [ |
| 35 { | 40 { |
| 36 'target_name': 'media', | 41 'target_name': 'media', |
| 37 'type': '<(component)', | 42 'type': '<(component)', |
| 38 'dependencies': [ | 43 'dependencies': [ |
| 39 '../base/base.gyp:base', | 44 '../base/base.gyp:base', |
| 40 '../build/temp_gyp/googleurl.gyp:googleurl', | 45 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 41 '../crypto/crypto.gyp:crypto', | 46 '../crypto/crypto.gyp:crypto', |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 ['OS!="linux"', { | 646 ['OS!="linux"', { |
| 642 'sources!': [ | 647 'sources!': [ |
| 643 'audio/cras/audio_manager_cras.cc', | 648 'audio/cras/audio_manager_cras.cc', |
| 644 'audio/cras/audio_manager_cras.h', | 649 'audio/cras/audio_manager_cras.h', |
| 645 'audio/cras/cras_input.cc', | 650 'audio/cras/cras_input.cc', |
| 646 'audio/cras/cras_input.h', | 651 'audio/cras/cras_input.h', |
| 647 'audio/cras/cras_output.cc', | 652 'audio/cras/cras_output.cc', |
| 648 'audio/cras/cras_output.h', | 653 'audio/cras/cras_output.h', |
| 649 ], | 654 ], |
| 650 }], | 655 }], |
| 651 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android" and
chromeos != 1', { | 656 ['use_pulseaudio==1', { |
| 652 'defines': [ | 657 'defines': [ |
| 653 'USE_PULSEAUDIO', | 658 'USE_PULSEAUDIO', |
| 654 ], | 659 ], |
| 655 'variables': { | 660 'variables': { |
| 656 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py'
, | 661 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py'
, |
| 657 'extra_header': 'audio/pulse/pulse_stub_header.fragment', | 662 'extra_header': 'audio/pulse/pulse_stub_header.fragment', |
| 658 'sig_files': ['audio/pulse/pulse.sigs'], | 663 'sig_files': ['audio/pulse/pulse.sigs'], |
| 659 'outfile_type': 'posix_stubs', | 664 'outfile_type': 'posix_stubs', |
| 660 'stubs_filename_root': 'pulse_stubs', | 665 'stubs_filename_root': 'pulse_stubs', |
| 661 'project_path': 'media/audio/pulse', | 666 'project_path': 'media/audio/pulse', |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 'conditions': [ | 702 'conditions': [ |
| 698 # Linux/Solaris need libdl for dlopen() and friends. | 703 # Linux/Solaris need libdl for dlopen() and friends. |
| 699 ['OS == "linux" or OS == "solaris"', { | 704 ['OS == "linux" or OS == "solaris"', { |
| 700 'link_settings': { | 705 'link_settings': { |
| 701 'libraries': [ | 706 'libraries': [ |
| 702 '-ldl', | 707 '-ldl', |
| 703 ], | 708 ], |
| 704 }, | 709 }, |
| 705 }], | 710 }], |
| 706 ], | 711 ], |
| 707 }, { # else: OS=="win or OS == "mac" or OS == "ios" or OS == "android"
or chromeos == 1 | 712 }, { # else: use_pulseaudio==1 |
| 708 'sources!': [ | 713 'sources!': [ |
| 709 'audio/pulse/audio_manager_pulse.cc', | 714 'audio/pulse/audio_manager_pulse.cc', |
| 710 'audio/pulse/audio_manager_pulse.h', | 715 'audio/pulse/audio_manager_pulse.h', |
| 711 'audio/pulse/pulse_input.cc', | 716 'audio/pulse/pulse_input.cc', |
| 712 'audio/pulse/pulse_input.h', | 717 'audio/pulse/pulse_input.h', |
| 713 'audio/pulse/pulse_output.cc', | 718 'audio/pulse/pulse_output.cc', |
| 714 'audio/pulse/pulse_output.h', | 719 'audio/pulse/pulse_output.h', |
| 715 'audio/pulse/pulse_util.cc', | 720 'audio/pulse/pulse_util.cc', |
| 716 'audio/pulse/pulse_util.h', | 721 'audio/pulse/pulse_util.h', |
| 717 ], | 722 ], |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1629 ], | 1634 ], |
| 1630 'sources': [ | 1635 'sources': [ |
| 1631 'base/simd/sinc_resampler_sse.cc', | 1636 'base/simd/sinc_resampler_sse.cc', |
| 1632 'base/simd/vector_math_sse.cc', | 1637 'base/simd/vector_math_sse.cc', |
| 1633 ], | 1638 ], |
| 1634 }, # end of target media_sse | 1639 }, # end of target media_sse |
| 1635 ], | 1640 ], |
| 1636 }], | 1641 }], |
| 1637 ], | 1642 ], |
| 1638 } | 1643 } |
| OLD | NEW |