| 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") | 5 import("//build/config/features.gni") |
| 6 | 6 |
| 7 assert(!is_ios) | 7 assert(!is_ios) |
| 8 | 8 |
| 9 source_ids = "//third_party/usb_ids/usb.ids" | 9 source_ids = "//third_party/usb_ids/usb.ids" |
| 10 generated_ids = "$target_gen_dir/usb_ids_gen.cc" | 10 generated_ids = "$target_gen_dir/usb_ids_gen.cc" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 sources = [ | 77 sources = [ |
| 78 "mock_usb_device.cc", | 78 "mock_usb_device.cc", |
| 79 "mock_usb_device.h", | 79 "mock_usb_device.h", |
| 80 "mock_usb_device_handle.cc", | 80 "mock_usb_device_handle.cc", |
| 81 "mock_usb_device_handle.h", | 81 "mock_usb_device_handle.h", |
| 82 "mock_usb_service.cc", | 82 "mock_usb_service.cc", |
| 83 "mock_usb_service.h", | 83 "mock_usb_service.h", |
| 84 ] | 84 ] |
| 85 | 85 |
| 86 deps = [ | 86 deps = [ |
| 87 ":usb", |
| 87 "//base", | 88 "//base", |
| 88 "//testing/gmock", | 89 "//testing/gmock", |
| 89 ":usb", | |
| 90 ] | 90 ] |
| 91 } | 91 } |
| 92 | 92 |
| 93 action("usb_device_ids") { | 93 action("usb_device_ids") { |
| 94 script = "//device/usb/tools/usb_ids.py" | 94 script = "//device/usb/tools/usb_ids.py" |
| 95 inputs = [ | 95 inputs = [ |
| 96 source_ids, | 96 source_ids, |
| 97 ] | 97 ] |
| 98 outputs = [ | 98 outputs = [ |
| 99 generated_ids, | 99 generated_ids, |
| 100 ] | 100 ] |
| 101 args = [ | 101 args = [ |
| 102 "-i", | 102 "-i", |
| 103 rebase_path(source_ids, root_build_dir), | 103 rebase_path(source_ids, root_build_dir), |
| 104 "-o", | 104 "-o", |
| 105 rebase_path(generated_ids, root_build_dir), | 105 rebase_path(generated_ids, root_build_dir), |
| 106 ] | 106 ] |
| 107 | 107 |
| 108 # Only the device_usb target can depend on us. | 108 # Only the device_usb target can depend on us. |
| 109 visibility = [ ":usb" ] | 109 visibility = [ ":usb" ] |
| 110 } | 110 } |
| OLD | NEW |