OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 assert(!is_android && !is_ios) | 5 assert(!is_android && !is_ios) |
6 | 6 |
7 source_ids = "//third_party/usb_ids/usb.ids" | 7 source_ids = "//third_party/usb_ids/usb.ids" |
8 generated_ids = "$target_gen_dir/usb_ids_gen.cc" | 8 generated_ids = "$target_gen_dir/usb_ids_gen.cc" |
9 | 9 |
10 source_set("usb") { | 10 source_set("usb") { |
11 sources = [ | 11 sources = [ |
| 12 "device_impl.cc", |
| 13 "device_impl.h", |
| 14 "device_manager_impl.cc", |
| 15 "device_manager_impl.h", |
| 16 "type_converters.cc", |
| 17 "type_converters.h", |
12 "usb_context.cc", | 18 "usb_context.cc", |
13 "usb_context.h", | 19 "usb_context.h", |
14 "usb_descriptors.cc", | 20 "usb_descriptors.cc", |
15 "usb_descriptors.h", | 21 "usb_descriptors.h", |
16 "usb_device.cc", | 22 "usb_device.cc", |
17 "usb_device.h", | 23 "usb_device.h", |
18 "usb_device_filter.cc", | 24 "usb_device_filter.cc", |
19 "usb_device_filter.h", | 25 "usb_device_filter.h", |
20 "usb_device_handle.h", | 26 "usb_device_handle.h", |
21 "usb_device_handle_impl.cc", | 27 "usb_device_handle_impl.cc", |
(...skipping 10 matching lines...) Expand all Loading... |
32 "usb_service_impl.h", | 38 "usb_service_impl.h", |
33 generated_ids, | 39 generated_ids, |
34 ] | 40 ] |
35 | 41 |
36 deps = [ | 42 deps = [ |
37 ":usb_device_ids", | 43 ":usb_device_ids", |
38 "//base", | 44 "//base", |
39 "//base/third_party/dynamic_annotations", | 45 "//base/third_party/dynamic_annotations", |
40 "//components/device_event_log", | 46 "//components/device_event_log", |
41 "//device/core", | 47 "//device/core", |
| 48 "//device/usb/public/cpp", |
| 49 "//device/usb/public/interfaces", |
42 "//net", | 50 "//net", |
43 "//third_party/libusb", | 51 "//third_party/libusb", |
44 ] | 52 ] |
45 | 53 |
46 if (is_linux) { | 54 if (is_linux) { |
47 deps += [ "//device/udev_linux" ] | 55 deps += [ "//device/udev_linux" ] |
48 } | 56 } |
49 if (is_chromeos) { | 57 if (is_chromeos) { |
50 deps += [ "//chromeos" ] | 58 deps += [ "//chromeos" ] |
51 } | 59 } |
(...skipping 29 matching lines...) Expand all Loading... |
81 args = [ | 89 args = [ |
82 "-i", | 90 "-i", |
83 rebase_path(source_ids, root_build_dir), | 91 rebase_path(source_ids, root_build_dir), |
84 "-o", | 92 "-o", |
85 rebase_path(generated_ids, root_build_dir), | 93 rebase_path(generated_ids, root_build_dir), |
86 ] | 94 ] |
87 | 95 |
88 # Only the device_usb target can depend on us. | 96 # Only the device_usb target can depend on us. |
89 visibility = [ ":usb" ] | 97 visibility = [ ":usb" ] |
90 } | 98 } |
OLD | NEW |