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

Side by Side Diff: build/json_schema_api.gni

Issue 880873003: Add unit tests target to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 # Defines a static library corresponding to the output of schema compiler tools 5 # Defines a static library corresponding to the output of schema compiler tools
6 # over a set of extensions API schemas (IDL or JSON format.) The library target 6 # over a set of extensions API schemas (IDL or JSON format.) The library target
7 # has implicit hard dependencies on all schema files listed by the invoker and 7 # has implicit hard dependencies on all schema files listed by the invoker and
8 # is itself a hard dependency. 8 # is itself a hard dependency.
9 # 9 #
10 # Invocations of this template may use the following variables: 10 # Invocations of this template may use the following variables:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 "{{source}}", 106 "{{source}}",
107 "--root=" + rebase_path("//", root_build_dir), 107 "--root=" + rebase_path("//", root_build_dir),
108 "--destdir=" + rebase_path(root_gen_dir, root_build_dir), 108 "--destdir=" + rebase_path(root_gen_dir, root_build_dir),
109 "--namespace=$root_namespace", 109 "--namespace=$root_namespace",
110 "--generator=cpp", 110 "--generator=cpp",
111 "--include-rules=$schema_include_rules", 111 "--include-rules=$schema_include_rules",
112 ] 112 ]
113 113
114 if (defined(invoker.visibility)) { 114 if (defined(invoker.visibility)) {
115 # If visibility is restricted, add our own target to it. 115 # If visibility is restricted, add our own target to it.
116 visibility = [ 116 visibility = invoker.visibility + target_visibility
117 invoker.visibility,
118 target_visibility,
119 ]
120 } 117 }
121 } 118 }
122 } 119 }
123 120
124 if (bundle) { 121 if (bundle) {
125 uncompiled_sources = [] 122 uncompiled_sources = []
126 if (defined(invoker.uncompiled_sources)) { 123 if (defined(invoker.uncompiled_sources)) {
127 uncompiled_sources = invoker.uncompiled_sources 124 uncompiled_sources = invoker.uncompiled_sources
128 } 125 }
129 126
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 public_configs = [ ":$generated_config_name" ] 201 public_configs = [ ":$generated_config_name" ]
205 202
206 if (defined(invoker.visibility)) { 203 if (defined(invoker.visibility)) {
207 visibility = invoker.visibility 204 visibility = invoker.visibility
208 } 205 }
209 if (defined(invoker.output_name)) { 206 if (defined(invoker.output_name)) {
210 output_name = invoker.output_name 207 output_name = invoker.output_name
211 } 208 }
212 } 209 }
213 } 210 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698