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

Unified Diff: media/media.gyp

Issue 7473021: PulseAudio Sound Playback on Linux (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: "Gyp and command line flag added, pausing/stopping/restarting works" Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« media/audio/linux/pulse_output.cc ('K') | « media/base/media_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/media.gyp
diff --git a/media/media.gyp b/media/media.gyp
index 001728b6d88a296a271b11fb37283c46a705de78..c4c29b02c95b66dbcf6c104cd3a457138bbba2e4 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -5,6 +5,8 @@
{
'variables': {
'chromium_code': 1,
+ # Override to statically link the PulseAudio library.
+ 'use_pulse_audio': 0,
},
'targets': [
{
@@ -60,6 +62,8 @@
'audio/linux/alsa_util.h',
'audio/linux/alsa_wrapper.cc',
'audio/linux/alsa_wrapper.h',
+ 'audio/linux/pulse_output.cc',
+ 'audio/linux/pulse_output.h',
'audio/openbsd/audio_manager_openbsd.cc',
'audio/openbsd/audio_manager_openbsd.h',
'audio/mac/audio_input_mac.cc',
@@ -199,7 +203,7 @@
'video/capture/win/pin_base_win.h',
'video/capture/win/sink_filter_observer_win.h',
'video/capture/win/sink_filter_win.cc',
- 'video/capture/win/sink_filter_win.h',
+ 'video/capture/win/sink_filter_win.h',
'video/capture/win/sink_input_pin_win.cc',
'video/capture/win/sink_input_pin_win.h',
'video/capture/win/video_capture_device_win.cc',
@@ -236,6 +240,15 @@
'-lasound',
],
},
+ 'conditions': [
+ ['use_pulse_audio', {
+ 'link_settings' : {
+ 'libraries' : [
+ '-lpulse',
+ ]
+ },
+ }]
+ ],
}],
['OS=="openbsd"', {
'sources/': [ ['exclude', 'alsa_' ],
« media/audio/linux/pulse_output.cc ('K') | « media/base/media_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698