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
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
7 assert(!is_android && !is_ios)
9 source_ids = "//third_party/usb_ids/usb.ids"
10 generated_ids = "$target_gen_dir/usb_ids_gen.cc"
20 "usb_device_filter.cc",
21 "usb_device_filter.h",
22 "usb_device_handle.cc",
23 "usb_device_handle.h",
24 "usb_device_handle_impl.cc",
25 "usb_device_handle_impl.h",
34 "usb_service_impl.cc",
36 "webusb_descriptors.cc",
37 "webusb_descriptors.h",
44 "//base/third_party/dynamic_annotations",
45 "//components/device_event_log",
48 "//third_party/libusb",
52 deps += [ "//device/udev_linux" ]
68 "mock_usb_device_handle.cc",
69 "mock_usb_device_handle.h",
70 "mock_usb_service.cc",
81 action("usb_device_ids") {
82 script = "//device/usb/tools/usb_ids.py"
91 rebase_path(source_ids, root_build_dir),
93 rebase_path(generated_ids, root_build_dir),
96 # Only the device_usb target can depend on us.
97 visibility = [ ":usb" ]