| 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 import("//build/config/features.gni") |
| 6 |
| 5 assert(!is_android && !is_ios) | 7 assert(!is_android && !is_ios) |
| 6 | 8 |
| 7 source_ids = "//third_party/usb_ids/usb.ids" | 9 source_ids = "//third_party/usb_ids/usb.ids" |
| 8 generated_ids = "$target_gen_dir/usb_ids_gen.cc" | 10 generated_ids = "$target_gen_dir/usb_ids_gen.cc" |
| 9 | 11 |
| 10 source_set("usb") { | 12 source_set("usb") { |
| 11 sources = [ | 13 sources = [ |
| 12 "usb_context.cc", | 14 "usb_context.cc", |
| 13 "usb_context.h", | 15 "usb_context.h", |
| 14 "usb_descriptors.cc", | 16 "usb_descriptors.cc", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 38 deps = [ | 40 deps = [ |
| 39 ":usb_device_ids", | 41 ":usb_device_ids", |
| 40 "//base", | 42 "//base", |
| 41 "//base/third_party/dynamic_annotations", | 43 "//base/third_party/dynamic_annotations", |
| 42 "//components/device_event_log", | 44 "//components/device_event_log", |
| 43 "//device/core", | 45 "//device/core", |
| 44 "//net", | 46 "//net", |
| 45 "//third_party/libusb", | 47 "//third_party/libusb", |
| 46 ] | 48 ] |
| 47 | 49 |
| 48 if (is_linux) { | 50 if (use_udev) { |
| 49 deps += [ "//device/udev_linux" ] | 51 deps += [ "//device/udev_linux" ] |
| 50 } | 52 } |
| 51 if (is_chromeos) { | 53 if (is_chromeos) { |
| 52 deps += [ | 54 deps += [ |
| 53 "//chromeos", | 55 "//chromeos", |
| 54 "//dbus", | 56 "//dbus", |
| 55 ] | 57 ] |
| 56 } | 58 } |
| 57 } | 59 } |
| 58 | 60 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 86 args = [ | 88 args = [ |
| 87 "-i", | 89 "-i", |
| 88 rebase_path(source_ids, root_build_dir), | 90 rebase_path(source_ids, root_build_dir), |
| 89 "-o", | 91 "-o", |
| 90 rebase_path(generated_ids, root_build_dir), | 92 rebase_path(generated_ids, root_build_dir), |
| 91 ] | 93 ] |
| 92 | 94 |
| 93 # Only the device_usb target can depend on us. | 95 # Only the device_usb target can depend on us. |
| 94 visibility = [ ":usb" ] | 96 visibility = [ ":usb" ] |
| 95 } | 97 } |
| OLD | NEW |