Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Side by Side Diff: device/usb/BUILD.gn

Issue 216903004: Add optional public header checking to GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit test Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/test/BUILD.gn ('k') | third_party/modp_b64/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("usb") { 8 static_library("usb") {
9 output_name = "device_usb" 9 output_name = "device_usb"
10 sources = [ 10 sources = [
11 "usb_ids.cc", 11 "usb_ids.cc",
12 "usb_ids.h", 12 "usb_ids.h",
13 generated_ids, 13 generated_ids,
14 ] 14 ]
15 deps = [ ":usb_device_ids" ] 15 deps = [
16 ":usb_device_ids",
17 "//base",
18 ]
16 } 19 }
17 20
18 action("usb_device_ids") { 21 action("usb_device_ids") {
19 script = "//tools/usb_ids/usb_ids.py" 22 script = "//tools/usb_ids/usb_ids.py"
20 source_prereqs = [ source_ids ] 23 source_prereqs = [ source_ids ]
21 outputs = [ generated_ids ] 24 outputs = [ generated_ids ]
22 args = [ 25 args = [
23 "-i", rebase_path(source_ids, root_build_dir), 26 "-i", rebase_path(source_ids, root_build_dir),
24 "-o", rebase_path(generated_ids, root_build_dir), 27 "-o", rebase_path(generated_ids, root_build_dir),
25 ] 28 ]
26 29
27 # Only the device_usb target can depend on us. 30 # Only the device_usb target can depend on us.
28 # TODO(brettw) uncomment this when visibility is implemented in the pushed 31 # TODO(brettw) uncomment this when visibility is implemented in the pushed
29 # GN binary. 32 # GN binary.
30 #visibility = [ ":usb" ] 33 #visibility = [ ":usb" ]
31 } 34 }
OLDNEW
« no previous file with comments | « base/test/BUILD.gn ('k') | third_party/modp_b64/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698