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

Side by Side Diff: media/audio/BUILD.gn

Issue 609293004: Convert various media options into proper declare_args(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « media/BUILD.gn ('k') | media/media_options.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « media/BUILD.gn ('k') | media/media_options.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698