| 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_android && !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") { | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 38     "//third_party/libusb", | 38     "//third_party/libusb", | 
| 39   ] | 39   ] | 
| 40 | 40 | 
| 41   if (is_linux) { | 41   if (is_linux) { | 
| 42     deps += [ "//device/udev_linux" ] | 42     deps += [ "//device/udev_linux" ] | 
| 43   } | 43   } | 
| 44 } | 44 } | 
| 45 | 45 | 
| 46 action("usb_device_ids") { | 46 action("usb_device_ids") { | 
| 47   script = "//device/usb/tools/usb_ids.py" | 47   script = "//device/usb/tools/usb_ids.py" | 
| 48   inputs = [ source_ids ] | 48   inputs = [ | 
| 49   outputs = [ generated_ids ] | 49     source_ids, | 
|  | 50   ] | 
|  | 51   outputs = [ | 
|  | 52     generated_ids, | 
|  | 53   ] | 
| 50   args = [ | 54   args = [ | 
| 51     "-i", rebase_path(source_ids,  root_build_dir), | 55     "-i", | 
| 52     "-o", rebase_path(generated_ids, root_build_dir), | 56     rebase_path(source_ids, root_build_dir), | 
|  | 57     "-o", | 
|  | 58     rebase_path(generated_ids, root_build_dir), | 
| 53   ] | 59   ] | 
| 54 | 60 | 
| 55   # Only the device_usb target can depend on us. | 61   # Only the device_usb target can depend on us. | 
| 56   visibility = [ ":usb" ] | 62   visibility = [ ":usb" ] | 
| 57 } | 63 } | 
| OLD | NEW | 
|---|