OLD | NEW |
| (Empty) |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 import("//build/config/features.gni") | |
6 | |
7 component("core") { | |
8 output_name = "device_core" | |
9 | |
10 sources = [ | |
11 "device_client.cc", | |
12 "device_client.h", | |
13 "device_info_query_win.cc", | |
14 "device_info_query_win.h", | |
15 "device_monitor_win.cc", | |
16 "device_monitor_win.h", | |
17 ] | |
18 | |
19 defines = [ "DEVICE_CORE_IMPLEMENTATION" ] | |
20 | |
21 deps = [] | |
22 | |
23 public_deps = [ | |
24 "//base", | |
25 ] | |
26 | |
27 if (use_udev) { | |
28 sources += [ | |
29 "device_monitor_linux.cc", | |
30 "device_monitor_linux.h", | |
31 ] | |
32 | |
33 deps += [ "//device/udev_linux" ] | |
34 } | |
35 | |
36 if (is_win) { | |
37 libs = [ "setupapi.lib" ] | |
38 } | |
39 } | |
40 | |
41 source_set("mocks") { | |
42 testonly = true | |
43 | |
44 sources = [ | |
45 "mock_device_client.cc", | |
46 "mock_device_client.h", | |
47 ] | |
48 | |
49 deps = [ | |
50 ":core", | |
51 "//device/hid:mocks", | |
52 "//device/usb:test_support", | |
53 ] | |
54 } | |
OLD | NEW |