| 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 source_ids = "//third_party/usb_ids/usb.ids" | 5 source_ids = "//third_party/usb_ids/usb.ids" |
| 6 generated_ids = "$target_gen_dir/usb_ids_gen.cc" | 6 generated_ids = "$target_gen_dir/usb_ids_gen.cc" |
| 7 | 7 |
| 8 static_library("device_usb") { | 8 static_library("device_usb") { |
| 9 sources = [ | 9 sources = [ |
| 10 "usb_ids.cc", | 10 "usb_ids.cc", |
| 11 "usb_ids.h", | 11 "usb_ids.h", |
| 12 generated_ids, | 12 generated_ids, |
| 13 ] | 13 ] |
| 14 deps = [ ":device_usb_ids" ] | 14 deps = [ ":device_usb_ids" ] |
| 15 } | 15 } |
| 16 | 16 |
| 17 custom("device_usb_ids") { | 17 custom("device_usb_ids") { |
| 18 script = "//tools/usb_ids/usb_ids.py" | 18 script = "//tools/usb_ids/usb_ids.py" |
| 19 source_prereqs = [ source_ids ] | 19 source_prereqs = [ source_ids ] |
| 20 outputs = [ generated_ids ] | 20 outputs = [ generated_ids ] |
| 21 args = [ | 21 args = [ |
| 22 "-i", rebase_path(source_ids, ".", root_build_dir), | 22 "-i", rebase_path(source_ids, root_build_dir), |
| 23 "-o", rebase_path(generated_ids, ".", root_build_dir), | 23 "-o", rebase_path(generated_ids, root_build_dir), |
| 24 ] | 24 ] |
| 25 } | 25 } |
| OLD | NEW |