Commit cba97c50 authored by rjkroege's avatar rjkroege Committed by Commit bot

top-level-ize gn's pkg_config in audio/BUILD.gn

pkg_config can't be nested inside a source set. pull out in
media/audio/BUILD.gn

BUG=559487

Review URL: https://codereview.chromium.org/1467843002

Cr-Commit-Position: refs/heads/master@{#361204}
parent 675269aa
...@@ -214,10 +214,6 @@ source_set("audio") { ...@@ -214,10 +214,6 @@ source_set("audio") {
"cras/cras_unified.cc", "cras/cras_unified.cc",
"cras/cras_unified.h", "cras/cras_unified.h",
] ]
pkg_config("libcras") {
packages = [ "libcras" ]
}
configs += [ ":libcras" ] configs += [ ":libcras" ]
deps += [ "//chromeos:chromeos" ] deps += [ "//chromeos:chromeos" ]
} }
...@@ -235,9 +231,6 @@ source_set("audio") { ...@@ -235,9 +231,6 @@ source_set("audio") {
] ]
if (link_pulseaudio) { if (link_pulseaudio) {
pkg_config("libpulse") {
packages = [ "libpulse" ]
}
configs += [ ":libpulse" ] configs += [ ":libpulse" ]
} else { } else {
# TODO(ajwong): Technically, this dl should go in the action. # TODO(ajwong): Technically, this dl should go in the action.
...@@ -250,6 +243,18 @@ source_set("audio") { ...@@ -250,6 +243,18 @@ source_set("audio") {
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
} }
if (use_cras) {
pkg_config("libcras") {
packages = [ "libcras" ]
}
}
if (use_pulseaudio && link_pulseaudio) {
pkg_config("libpulse") {
packages = [ "libpulse" ]
}
}
source_set("test_support") { source_set("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment