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("//build/config/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
6 import("//media/media_options.gni") | 6 import("//media/media_options.gni") |
7 | 7 |
8 # When libpulse is not directly linked, use stubs to allow for dlopening of the | 8 # When libpulse is not directly linked, use stubs to allow for dlopening of the |
9 # binary. | 9 # binary. |
10 if (!link_pulseaudio) { | 10 if (!link_pulseaudio) { |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 | 207 |
208 if (use_cras) { | 208 if (use_cras) { |
209 sources += [ | 209 sources += [ |
210 "cras/audio_manager_cras.cc", | 210 "cras/audio_manager_cras.cc", |
211 "cras/audio_manager_cras.h", | 211 "cras/audio_manager_cras.h", |
212 "cras/cras_input.cc", | 212 "cras/cras_input.cc", |
213 "cras/cras_input.h", | 213 "cras/cras_input.h", |
214 "cras/cras_unified.cc", | 214 "cras/cras_unified.cc", |
215 "cras/cras_unified.h", | 215 "cras/cras_unified.h", |
216 ] | 216 ] |
217 | |
218 pkg_config("libcras") { | |
219 packages = [ "libcras" ] | |
220 } | |
221 configs += [ ":libcras" ] | 217 configs += [ ":libcras" ] |
222 deps += [ "//chromeos:chromeos" ] | 218 deps += [ "//chromeos:chromeos" ] |
223 } | 219 } |
224 | 220 |
225 if (use_pulseaudio) { | 221 if (use_pulseaudio) { |
226 sources += [ | 222 sources += [ |
227 "pulse/audio_manager_pulse.cc", | 223 "pulse/audio_manager_pulse.cc", |
228 "pulse/audio_manager_pulse.h", | 224 "pulse/audio_manager_pulse.h", |
229 "pulse/pulse_input.cc", | 225 "pulse/pulse_input.cc", |
230 "pulse/pulse_input.h", | 226 "pulse/pulse_input.h", |
231 "pulse/pulse_output.cc", | 227 "pulse/pulse_output.cc", |
232 "pulse/pulse_output.h", | 228 "pulse/pulse_output.h", |
233 "pulse/pulse_util.cc", | 229 "pulse/pulse_util.cc", |
234 "pulse/pulse_util.h", | 230 "pulse/pulse_util.h", |
235 ] | 231 ] |
236 | 232 |
237 if (link_pulseaudio) { | 233 if (link_pulseaudio) { |
238 pkg_config("libpulse") { | |
239 packages = [ "libpulse" ] | |
240 } | |
241 configs += [ ":libpulse" ] | 234 configs += [ ":libpulse" ] |
242 } else { | 235 } else { |
243 # TODO(ajwong): Technically, this dl should go in the action. | 236 # TODO(ajwong): Technically, this dl should go in the action. |
244 libs += [ "dl" ] | 237 libs += [ "dl" ] |
245 deps += [ ":pulse_generate_stubs" ] | 238 deps += [ ":pulse_generate_stubs" ] |
246 sources += get_target_outputs(":pulse_generate_stubs") | 239 sources += get_target_outputs(":pulse_generate_stubs") |
247 } | 240 } |
248 } | 241 } |
249 | 242 |
250 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 243 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
251 } | 244 } |
252 | 245 |
246 if (use_cras) { | |
247 pkg_config("libcras") { | |
248 packages = [ "libcras" ] | |
249 } | |
250 } | |
251 | |
252 if (use_pulseaudio) { | |
253 if (link_pulseaudio) { | |
Dirk Pranke
2015/11/21 02:43:14
nit: this could be just use_pulseaudio && link_pul
| |
254 pkg_config("libpulse") { | |
255 packages = [ "libpulse" ] | |
256 } | |
257 } | |
258 } | |
259 | |
253 source_set("test_support") { | 260 source_set("test_support") { |
254 testonly = true | 261 testonly = true |
255 sources = [ | 262 sources = [ |
256 "audio_unittest_util.cc", | 263 "audio_unittest_util.cc", |
257 "audio_unittest_util.h", | 264 "audio_unittest_util.h", |
258 "mock_audio_manager.cc", | 265 "mock_audio_manager.cc", |
259 "mock_audio_manager.h", | 266 "mock_audio_manager.h", |
260 "mock_audio_source_callback.cc", | 267 "mock_audio_source_callback.cc", |
261 "mock_audio_source_callback.h", | 268 "mock_audio_source_callback.h", |
262 "test_audio_input_controller_factory.cc", | 269 "test_audio_input_controller_factory.cc", |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
341 ] | 348 ] |
342 } | 349 } |
343 | 350 |
344 if (use_alsa) { | 351 if (use_alsa) { |
345 sources += [ | 352 sources += [ |
346 "alsa/alsa_output_unittest.cc", | 353 "alsa/alsa_output_unittest.cc", |
347 "audio_low_latency_input_output_unittest.cc", | 354 "audio_low_latency_input_output_unittest.cc", |
348 ] | 355 ] |
349 } | 356 } |
350 } | 357 } |
OLD | NEW |