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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 deps = [ | 33 deps = [ |
34 ":usb_device_ids", | 34 ":usb_device_ids", |
35 "//base", | 35 "//base", |
36 "//base/third_party/dynamic_annotations", | 36 "//base/third_party/dynamic_annotations", |
37 "//net", | 37 "//net", |
38 "//third_party/libusb", | 38 "//third_party/libusb", |
39 ] | 39 ] |
40 | 40 |
41 if (is_linux) { | 41 if (is_linux) { |
42 configs += [ "//build/config/linux:udev" ] | 42 deps += [ "//device/udev_linux" ] |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 action("usb_device_ids") { | 46 action("usb_device_ids") { |
47 script = "//device/usb/tools/usb_ids.py" | 47 script = "//device/usb/tools/usb_ids.py" |
48 inputs = [ source_ids ] | 48 inputs = [ source_ids ] |
49 outputs = [ generated_ids ] | 49 outputs = [ generated_ids ] |
50 args = [ | 50 args = [ |
51 "-i", rebase_path(source_ids, root_build_dir), | 51 "-i", rebase_path(source_ids, root_build_dir), |
52 "-o", rebase_path(generated_ids, root_build_dir), | 52 "-o", rebase_path(generated_ids, root_build_dir), |
53 ] | 53 ] |
54 | 54 |
55 # Only the device_usb target can depend on us. | 55 # Only the device_usb target can depend on us. |
56 visibility = [ ":usb" ] | 56 visibility = [ ":usb" ] |
57 } | 57 } |
OLD | NEW |