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") { |
(...skipping 25 matching lines...) Expand all Loading... |
36 ":usb_device_ids", | 36 ":usb_device_ids", |
37 "//base", | 37 "//base", |
38 "//base/third_party/dynamic_annotations", | 38 "//base/third_party/dynamic_annotations", |
39 "//net", | 39 "//net", |
40 "//third_party/libusb", | 40 "//third_party/libusb", |
41 ] | 41 ] |
42 | 42 |
43 if (is_linux) { | 43 if (is_linux) { |
44 deps += [ "//device/udev_linux" ] | 44 deps += [ "//device/udev_linux" ] |
45 } | 45 } |
| 46 if (is_chromeos) { |
| 47 deps += [ "//chromeos" ] |
| 48 } |
46 } | 49 } |
47 | 50 |
48 action("usb_device_ids") { | 51 action("usb_device_ids") { |
49 script = "//device/usb/tools/usb_ids.py" | 52 script = "//device/usb/tools/usb_ids.py" |
50 inputs = [ | 53 inputs = [ |
51 source_ids, | 54 source_ids, |
52 ] | 55 ] |
53 outputs = [ | 56 outputs = [ |
54 generated_ids, | 57 generated_ids, |
55 ] | 58 ] |
56 args = [ | 59 args = [ |
57 "-i", | 60 "-i", |
58 rebase_path(source_ids, root_build_dir), | 61 rebase_path(source_ids, root_build_dir), |
59 "-o", | 62 "-o", |
60 rebase_path(generated_ids, root_build_dir), | 63 rebase_path(generated_ids, root_build_dir), |
61 ] | 64 ] |
62 | 65 |
63 # Only the device_usb target can depend on us. | 66 # Only the device_usb target can depend on us. |
64 visibility = [ ":usb" ] | 67 visibility = [ ":usb" ] |
65 } | 68 } |
OLD | NEW |