| 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_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 "usb_context.cc", | 12 "usb_context.cc", |
| 13 "usb_context.h", | 13 "usb_context.h", |
| 14 "usb_descriptors.cc", | 14 "usb_descriptors.cc", |
| 15 "usb_descriptors.h", | 15 "usb_descriptors.h", |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 if (is_linux) { | 48 if (is_linux) { |
| 49 deps += [ "//device/udev_linux" ] | 49 deps += [ "//device/udev_linux" ] |
| 50 } | 50 } |
| 51 if (is_chromeos) { | 51 if (is_chromeos) { |
| 52 deps += [ | 52 deps += [ |
| 53 "//chromeos", | 53 "//chromeos", |
| 54 "//dbus", | 54 "//dbus", |
| 55 ] | 55 ] |
| 56 } | 56 } |
| 57 if (is_android) { |
| 58 deps -= [ |
| 59 "//third_party/libusb", |
| 60 ] |
| 61 } |
| 57 } | 62 } |
| 58 | 63 |
| 59 source_set("mocks") { | 64 source_set("mocks") { |
| 60 testonly = true | 65 testonly = true |
| 61 | 66 |
| 62 sources = [ | 67 sources = [ |
| 63 "mock_usb_device.cc", | 68 "mock_usb_device.cc", |
| 64 "mock_usb_device.h", | 69 "mock_usb_device.h", |
| 65 "mock_usb_device_handle.cc", | 70 "mock_usb_device_handle.cc", |
| 66 "mock_usb_device_handle.h", | 71 "mock_usb_device_handle.h", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 86 args = [ | 91 args = [ |
| 87 "-i", | 92 "-i", |
| 88 rebase_path(source_ids, root_build_dir), | 93 rebase_path(source_ids, root_build_dir), |
| 89 "-o", | 94 "-o", |
| 90 rebase_path(generated_ids, root_build_dir), | 95 rebase_path(generated_ids, root_build_dir), |
| 91 ] | 96 ] |
| 92 | 97 |
| 93 # Only the device_usb target can depend on us. | 98 # Only the device_usb target can depend on us. |
| 94 visibility = [ ":usb" ] | 99 visibility = [ ":usb" ] |
| 95 } | 100 } |
| OLD | NEW |