summaryrefslogtreecommitdiffstats
path: root/components/usb_service/BUILD.gn
blob: bb3ada5dc586a396fe4c3b2d5c62309d1e7b79db (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
35
36
37
38
39
# Copyright 2014 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.

component("usb_service") {
  sources = [
    "usb_context.cc",
    "usb_context.h",
    "usb_device_impl.cc",
    "usb_device_impl.h",
    "usb_device.h",
    "usb_device_filter.cc",
    "usb_device_filter.h",
    "usb_device_handle_impl.cc",
    "usb_device_handle_impl.h",
    "usb_device_handle.h",
    "usb_error.cc",
    "usb_error.h",
    "usb_interface.h",
    "usb_interface_impl.cc",
    "usb_interface_impl.h",
    "usb_service.h",
    "usb_service_impl.cc",
  ]

  defines = [ "USB_SERVICE_IMPLEMENTATION" ]

  deps = [
    "//base",
    "//base/third_party/dynamic_annotations",
    "//content/public/browser",
    "//net",
    "//third_party/libusb",
  ]

  if (is_linux) {
    configs += [ "//build/config/linux:udev" ]
  }
}