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", | |
18 "usb_context.cc", | 12 "usb_context.cc", |
19 "usb_context.h", | 13 "usb_context.h", |
20 "usb_descriptors.cc", | 14 "usb_descriptors.cc", |
21 "usb_descriptors.h", | 15 "usb_descriptors.h", |
22 "usb_device.cc", | 16 "usb_device.cc", |
23 "usb_device.h", | 17 "usb_device.h", |
24 "usb_device_filter.cc", | 18 "usb_device_filter.cc", |
25 "usb_device_filter.h", | 19 "usb_device_filter.h", |
26 "usb_device_handle.h", | 20 "usb_device_handle.h", |
27 "usb_device_handle_impl.cc", | 21 "usb_device_handle_impl.cc", |
(...skipping 10 matching lines...) Expand all Loading... |
38 "usb_service_impl.h", | 32 "usb_service_impl.h", |
39 generated_ids, | 33 generated_ids, |
40 ] | 34 ] |
41 | 35 |
42 deps = [ | 36 deps = [ |
43 ":usb_device_ids", | 37 ":usb_device_ids", |
44 "//base", | 38 "//base", |
45 "//base/third_party/dynamic_annotations", | 39 "//base/third_party/dynamic_annotations", |
46 "//components/device_event_log", | 40 "//components/device_event_log", |
47 "//device/core", | 41 "//device/core", |
48 "//device/usb/public/cpp", | |
49 "//mojo/environment:chromium", | |
50 "//net", | 42 "//net", |
51 "//third_party/libusb", | 43 "//third_party/libusb", |
52 "//third_party/mojo/src/mojo/edk/system", | |
53 ] | |
54 | |
55 public_deps = [ | |
56 "//device/usb/public/interfaces", | |
57 "//third_party/mojo/src/mojo/public/cpp/bindings", | |
58 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", | |
59 ] | 44 ] |
60 | 45 |
61 if (is_linux) { | 46 if (is_linux) { |
62 deps += [ "//device/udev_linux" ] | 47 deps += [ "//device/udev_linux" ] |
63 } | 48 } |
64 if (is_chromeos) { | 49 if (is_chromeos) { |
65 deps += [ "//chromeos" ] | 50 deps += [ "//chromeos" ] |
66 } | 51 } |
67 } | 52 } |
68 | 53 |
(...skipping 27 matching lines...) Expand all Loading... |
96 args = [ | 81 args = [ |
97 "-i", | 82 "-i", |
98 rebase_path(source_ids, root_build_dir), | 83 rebase_path(source_ids, root_build_dir), |
99 "-o", | 84 "-o", |
100 rebase_path(generated_ids, root_build_dir), | 85 rebase_path(generated_ids, root_build_dir), |
101 ] | 86 ] |
102 | 87 |
103 # Only the device_usb target can depend on us. | 88 # Only the device_usb target can depend on us. |
104 visibility = [ ":usb" ] | 89 visibility = [ ":usb" ] |
105 } | 90 } |
OLD | NEW |