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