summaryrefslogtreecommitdiff
path: root/chromium/extensions/browser/api/audio/BUILD.gn
blob: 17f4723d07004867efae1322526d759ced9931da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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("//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/api",
  ]

  if (is_chromeos) {
    deps += [ "//chromeos/audio" ]
    sources += [ "audio_service_chromeos.cc" ]
  } else {
    sources += [ "audio_service.cc" ]
  }
}