OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//media/media_options.gni") | 5 import("//media/media_options.gni") |
6 | 6 |
7 # When libpulse is not directly linked, use stubs to allow for dlopening of the | 7 # When libpulse is not directly linked, use stubs to allow for dlopening of the |
8 # binary. | 8 # binary. |
9 if (!linux_link_pulseaudio) { | 9 if (!link_pulseaudio) { |
10 action("pulse_generate_stubs") { | 10 action("pulse_generate_stubs") { |
11 extra_header = "pulse/pulse_stub_header.fragment" | 11 extra_header = "pulse/pulse_stub_header.fragment" |
12 | 12 |
13 script = "../../tools/generate_stubs/generate_stubs.py" | 13 script = "../../tools/generate_stubs/generate_stubs.py" |
14 sources = [ "pulse/pulse.sigs" ] | 14 sources = [ "pulse/pulse.sigs" ] |
15 source_prereqs = [ extra_header ] | 15 source_prereqs = [ extra_header ] |
16 stubs_filename_root = "pulse_stubs" | 16 stubs_filename_root = "pulse_stubs" |
17 | 17 |
18 # TODO(ajwong): these need to be included in the pulse build. | 18 # TODO(ajwong): these need to be included in the pulse build. |
19 outputs = [ | 19 outputs = [ |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 "pulse/audio_manager_pulse.cc", | 214 "pulse/audio_manager_pulse.cc", |
215 "pulse/audio_manager_pulse.h", | 215 "pulse/audio_manager_pulse.h", |
216 "pulse/pulse_input.cc", | 216 "pulse/pulse_input.cc", |
217 "pulse/pulse_input.h", | 217 "pulse/pulse_input.h", |
218 "pulse/pulse_output.cc", | 218 "pulse/pulse_output.cc", |
219 "pulse/pulse_output.h", | 219 "pulse/pulse_output.h", |
220 "pulse/pulse_util.cc", | 220 "pulse/pulse_util.cc", |
221 "pulse/pulse_util.h", | 221 "pulse/pulse_util.h", |
222 ] | 222 ] |
223 | 223 |
224 if (linux_link_pulseaudio) { | 224 if (link_pulseaudio) { |
225 pkg_config("libpulse") { | 225 pkg_config("libpulse") { |
226 packages = [ "libpulse" ] | 226 packages = [ "libpulse" ] |
227 } | 227 } |
228 configs += [ ":libpulse" ] | 228 configs += [ ":libpulse" ] |
229 } else { | 229 } else { |
230 # TODO(ajwong): Technically, this dl should go in the action. | 230 # TODO(ajwong): Technically, this dl should go in the action. |
231 libs += [ "dl" ] | 231 libs += [ "dl" ] |
232 deps += [ ":pulse_generate_stubs" ] | 232 deps += [ ":pulse_generate_stubs" ] |
233 sources += get_target_outputs(":pulse_generate_stubs") | 233 sources += get_target_outputs(":pulse_generate_stubs") |
234 } | 234 } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 "win/core_audio_util_win_unittest.cc", | 319 "win/core_audio_util_win_unittest.cc", |
320 ] | 320 ] |
321 } | 321 } |
322 | 322 |
323 if (use_alsa) { | 323 if (use_alsa) { |
324 sources += [ | 324 sources += [ |
325 "alsa/alsa_output_unittest.cc", | 325 "alsa/alsa_output_unittest.cc", |
326 ] | 326 ] |
327 } | 327 } |
328 } | 328 } |
OLD | NEW |