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) |
| 6 |
5 source_ids = "//third_party/usb_ids/usb.ids" | 7 source_ids = "//third_party/usb_ids/usb.ids" |
6 generated_ids = "$target_gen_dir/usb_ids_gen.cc" | 8 generated_ids = "$target_gen_dir/usb_ids_gen.cc" |
7 | 9 |
8 source_set("usb") { | 10 source_set("usb") { |
9 sources = [ | 11 sources = [ |
10 "usb_context.cc", | 12 "usb_context.cc", |
11 "usb_context.h", | 13 "usb_context.h", |
12 "usb_descriptors.cc", | 14 "usb_descriptors.cc", |
13 "usb_descriptors.h", | 15 "usb_descriptors.h", |
14 "usb_device_impl.cc", | 16 "usb_device_impl.cc", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 inputs = [ source_ids ] | 48 inputs = [ source_ids ] |
47 outputs = [ generated_ids ] | 49 outputs = [ generated_ids ] |
48 args = [ | 50 args = [ |
49 "-i", rebase_path(source_ids, root_build_dir), | 51 "-i", rebase_path(source_ids, root_build_dir), |
50 "-o", rebase_path(generated_ids, root_build_dir), | 52 "-o", rebase_path(generated_ids, root_build_dir), |
51 ] | 53 ] |
52 | 54 |
53 # Only the device_usb target can depend on us. | 55 # Only the device_usb target can depend on us. |
54 visibility = [ ":usb" ] | 56 visibility = [ ":usb" ] |
55 } | 57 } |
OLD | NEW |