blob: b336d044a5c00dee2b1dee8f24d7d089b28341fa [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//extensions/buildflags/buildflags.gni")
assert(enable_extensions,
"Cannot depend on extensions because enable_extensions=false.")
source_set("audio") {
sources = [
"audio_api.cc",
"audio_api.h",
"audio_device_id_calculator.cc",
"audio_device_id_calculator.h",
"audio_service.h",
"pref_names.cc",
"pref_names.h",
]
public_deps = [ "//extensions/browser:browser_sources" ]
deps = [
"//components/prefs",
"//extensions/common",
"//extensions/common/api",
]
if (is_chromeos_ash) {
deps += [
"//ash/components/audio",
"//content/public/browser",
]
sources += [ "audio_service_chromeos.cc" ]
} else {
sources += [ "audio_service.cc" ]
}
}