chromium/services/device/usb/mojo/BUILD.gn

# Copyright 2016 The Chromium Authors
# 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")

source_set("mojo") {
  sources = [
    "device_impl.cc",
    "device_impl.h",
    "device_manager_impl.cc",
    "device_manager_impl.h",
    "device_manager_test.cc",
    "device_manager_test.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  deps = [
    "//build:chromeos_buildflags",
    "//mojo/public/cpp/bindings",
    "//net",
    "//services/device/public/cpp/usb",
    "//services/device/public/mojom:usb",
    "//services/device/public/mojom:usb_test",
    "//services/device/usb",
    "//third_party/blink/public/common",
  ]

  if (is_chromeos_ash) {
    deps += [ "//chromeos/dbus/permission_broker" ]
  }
}