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