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

Side by Side Diff: build/json_to_struct.gypi

Issue 393193002: Add search_engines and precache components to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | components/BUILD.gn » ('j') | components/precache/core/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 # When including this gypi, the following variables must be set: 7 # When including this gypi, the following variables must be set:
8 # schema_file: a json file that comprise the structure model. 8 # schema_file: a json file that comprise the structure model.
9 # namespace: the C++ namespace that all generated files go under 9 # namespace: the C++ namespace that all generated files go under
10 # cc_dir: path to generated files 10 # cc_dir: path to generated files
11 # Functions and namespaces can be excluded by setting "nocompile" to true. 11 # Functions and namespaces can be excluded by setting "nocompile" to true.
12 'struct_gen_dir': '<(DEPTH)/tools/json_to_struct', 12 'struct_gen_dir': '<(DEPTH)/tools/json_to_struct',
13 'struct_gen': '<(struct_gen_dir)/json_to_struct.py', 13 'struct_gen': '<(struct_gen_dir)/json_to_struct.py',
14 }, 14 },
15 'rules': [ 15 'rules': [
16 { 16 {
17 # GN version: //tools/json_to_struct/json_to_struct.gni
17 'rule_name': 'genstaticinit', 18 'rule_name': 'genstaticinit',
18 'extension': 'json', 19 'extension': 'json',
19 'inputs': [ 20 'inputs': [
20 '<(struct_gen_dir)/element_generator.py', 21 '<(struct_gen_dir)/element_generator.py',
21 '<(struct_gen_dir)/json_to_struct.py', 22 '<(struct_gen_dir)/json_to_struct.py',
22 '<(struct_gen_dir)/struct_generator.py', 23 '<(struct_gen_dir)/struct_generator.py',
23 '<(schema_file)', 24 '<(schema_file)',
24 ], 25 ],
25 'outputs': [ 26 'outputs': [
26 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', 27 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc',
(...skipping 13 matching lines...) Expand all
40 }, 41 },
41 ], 42 ],
42 'include_dirs': [ 43 'include_dirs': [
43 '<(SHARED_INTERMEDIATE_DIR)', 44 '<(SHARED_INTERMEDIATE_DIR)',
44 '<(DEPTH)', 45 '<(DEPTH)',
45 ], 46 ],
46 # This target exports a hard dependency because it generates header 47 # This target exports a hard dependency because it generates header
47 # files. 48 # files.
48 'hard_dependency': 1, 49 'hard_dependency': 1,
49 } 50 }
OLDNEW
« no previous file with comments | « no previous file | components/BUILD.gn » ('j') | components/precache/core/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698