Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / tools / gn / secondary / device / usb / BUILD.gn
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.\r
2 # Use of this source code is governed by a BSD-style license that can be\r
3 # found in the LICENSE file.\r
4 \r
5 source_ids = "//third_party/usb_ids/usb.ids"\r
6 generated_ids = "$target_gen_dir/usb_ids_gen.cc"\r
7 \r
8 static_library("device_usb") {\r
9   sources = [\r
10     "usb_ids.cc",\r
11     "usb_ids.h",\r
12     generated_ids,\r
13   ]\r
14   deps = [ ":device_usb_ids" ]\r
15 }\r
16 \r
17 action("device_usb_ids") {\r
18   script = "//tools/usb_ids/usb_ids.py"\r
19   source_prereqs = [ source_ids ]\r
20   outputs = [ generated_ids ]\r
21   args = [\r
22     "-i", rebase_path(source_ids,  root_build_dir),\r
23     "-o", rebase_path(generated_ids, root_build_dir),\r
24   ]\r
25 }\r