summaryrefslogtreecommitdiffstats
path: root/device/core/BUILD.gn
blob: 9aaf280d38d8ff8ffa89f91d5c2bcdec378bfdd2 (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
40
41
# 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("core") {
  output_name = "device_core"

  sources = [
    "device_client.cc",
    "device_client.h",
    "device_info_query_win.cc",
    "device_info_query_win.h",
    "device_monitor_win.cc",
    "device_monitor_win.h",
  ]

  defines = [ "DEVICE_CORE_IMPLEMENTATION" ]

  public_deps = [
    "//base",
  ]

  if (is_win) {
    libs = [ "setupapi.lib" ]
  }
}

source_set("mocks") {
  testonly = true

  sources = [
    "mock_device_client.cc",
    "mock_device_client.h",
  ]

  deps = [
    ":core",
    "//device/hid:mocks",
    "//device/usb:mocks",
  ]
}