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

Side by Side Diff: build/json_schema_compile.gypi

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/bookmarks/bookmarks_api.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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_files: a list of json or IDL files that comprise the api model. 8 # schema_files: a list of json or IDL files that comprise the api model.
9 # cc_dir: path to generated files 9 # cc_dir: path to generated files
10 # root_namespace: the C++ namespace that all generated files go under 10 # root_namespace: the C++ namespace that all generated files go under
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 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler', 12 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
13 'api_gen': '<(api_gen_dir)/compiler.py', 13 'api_gen': '<(api_gen_dir)/compiler.py',
14 }, 14 },
15 'rules': [ 15 'rules': [
16 { 16 {
17 'rule_name': 'genapi', 17 'rule_name': 'genapi',
18 'msvs_external_rule': 1, 18 'msvs_external_rule': 1,
19 'extension': 'json', 19 'extension': 'json',
20 'inputs': [ 20 'inputs': [
21 '<(api_gen_dir)/any.cc',
22 '<(api_gen_dir)/any.h',
23 '<(api_gen_dir)/any_helper.py',
24 '<(api_gen_dir)/cc_generator.py', 21 '<(api_gen_dir)/cc_generator.py',
25 '<(api_gen_dir)/code.py', 22 '<(api_gen_dir)/code.py',
26 '<(api_gen_dir)/compiler.py', 23 '<(api_gen_dir)/compiler.py',
27 '<(api_gen_dir)/cpp_type_generator.py', 24 '<(api_gen_dir)/cpp_type_generator.py',
28 '<(api_gen_dir)/cpp_util.py', 25 '<(api_gen_dir)/cpp_util.py',
29 '<(api_gen_dir)/h_generator.py', 26 '<(api_gen_dir)/h_generator.py',
30 '<(api_gen_dir)/json_schema.py', 27 '<(api_gen_dir)/json_schema.py',
31 '<(api_gen_dir)/model.py', 28 '<(api_gen_dir)/model.py',
32 '<(api_gen_dir)/util.cc', 29 '<(api_gen_dir)/util.cc',
33 '<(api_gen_dir)/util.h', 30 '<(api_gen_dir)/util.h',
(...skipping 16 matching lines...) Expand all
50 '--namespace=<(root_namespace)', 47 '--namespace=<(root_namespace)',
51 ], 48 ],
52 'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files', 49 'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files',
53 'process_outputs_as_sources': 1, 50 'process_outputs_as_sources': 1,
54 }, 51 },
55 { 52 {
56 'rule_name': 'genapi_idl', 53 'rule_name': 'genapi_idl',
57 'msvs_external_rule': 1, 54 'msvs_external_rule': 1,
58 'extension': 'idl', 55 'extension': 'idl',
59 'inputs': [ 56 'inputs': [
60 '<(api_gen_dir)/any.cc',
61 '<(api_gen_dir)/any.h',
62 '<(api_gen_dir)/any_helper.py',
63 '<(api_gen_dir)/cc_generator.py', 57 '<(api_gen_dir)/cc_generator.py',
64 '<(api_gen_dir)/code.py', 58 '<(api_gen_dir)/code.py',
65 '<(api_gen_dir)/compiler.py', 59 '<(api_gen_dir)/compiler.py',
66 '<(api_gen_dir)/cpp_type_generator.py', 60 '<(api_gen_dir)/cpp_type_generator.py',
67 '<(api_gen_dir)/cpp_util.py', 61 '<(api_gen_dir)/cpp_util.py',
68 '<(api_gen_dir)/h_generator.py', 62 '<(api_gen_dir)/h_generator.py',
69 '<(api_gen_dir)/idl_schema.py', 63 '<(api_gen_dir)/idl_schema.py',
70 '<(api_gen_dir)/model.py', 64 '<(api_gen_dir)/model.py',
71 '<(api_gen_dir)/util.cc', 65 '<(api_gen_dir)/util.cc',
72 '<(api_gen_dir)/util.h', 66 '<(api_gen_dir)/util.h',
(...skipping 28 matching lines...) Expand all
101 ], 95 ],
102 'direct_dependent_settings': { 96 'direct_dependent_settings': {
103 'include_dirs': [ 97 'include_dirs': [
104 '<(SHARED_INTERMEDIATE_DIR)', 98 '<(SHARED_INTERMEDIATE_DIR)',
105 ] 99 ]
106 }, 100 },
107 # This target exports a hard dependency because it generates header 101 # This target exports a hard dependency because it generates header
108 # files. 102 # files.
109 'hard_dependency': 1, 103 'hard_dependency': 1,
110 } 104 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/bookmarks/bookmarks_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698