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

Side by Side Diff: build/json_schema_api.gni

Issue 845363002: Fix include directories in Windows GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (defined(invoker.schema_include_rules)) { 64 if (defined(invoker.schema_include_rules)) {
65 schema_include_rules = invoker.schema_include_rules 65 schema_include_rules = invoker.schema_include_rules
66 } 66 }
67 67
68 # Keep a copy of the target_name here since it will be trampled 68 # Keep a copy of the target_name here since it will be trampled
69 # in nested targets. 69 # in nested targets.
70 target_visibility = [ ":$target_name" ] 70 target_visibility = [ ":$target_name" ]
71 71
72 generated_config_name = target_name + "_generated_config" 72 generated_config_name = target_name + "_generated_config"
73 config(generated_config_name) { 73 config(generated_config_name) {
74 include_dirs = [ target_gen_dir ] 74 include_dirs = [ root_gen_dir ]
Slava Chigrin 2015/01/13 15:46:05 Here target_gen_dir is something like //out/gnRel/
75 visibility = target_visibility 75 visibility = target_visibility
76 } 76 }
77 77
78 sources = invoker.sources 78 sources = invoker.sources
79 root_namespace = invoker.root_namespace 79 root_namespace = invoker.root_namespace
80 80
81 compiler_root = "//tools/json_schema_compiler" 81 compiler_root = "//tools/json_schema_compiler"
82 compiler_script = "$compiler_root/compiler.py" 82 compiler_script = "$compiler_root/compiler.py"
83 compiler_sources = [ 83 compiler_sources = [
84 "$compiler_root/cc_generator.py", 84 "$compiler_root/cc_generator.py",
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 public_configs = [ ":$generated_config_name" ] 204 public_configs = [ ":$generated_config_name" ]
205 205
206 if (defined(invoker.visibility)) { 206 if (defined(invoker.visibility)) {
207 visibility = invoker.visibility 207 visibility = invoker.visibility
208 } 208 }
209 if (defined(invoker.output_name)) { 209 if (defined(invoker.output_name)) {
210 output_name = invoker.output_name 210 output_name = invoker.output_name
211 } 211 }
212 } 212 }
213 } 213 }
OLDNEW
« no previous file with comments | « no previous file | build/secondary/third_party/leveldatabase/BUILD.gn » ('j') | build/secondary/third_party/leveldatabase/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698