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

Side by Side Diff: build/json_schema_compile.gypi

Issue 11747025: Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ms release build 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
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 # json_schema_files: a list of json files that comprise the api model. 8 # schema_files: a list of json or IDL files that comprise the api model.
9 # idl_schema_files: a list of IDL files that comprise the api model.
10 # cc_dir: path to generated files 9 # cc_dir: path to generated files
11 # root_namespace: the C++ namespace that all generated files go under 10 # root_namespace: the C++ namespace that all generated files go under
12 # Functions and namespaces can be excluded by setting "nocompile" to true. 11 # Functions and namespaces can be excluded by setting "nocompile" to true.
13 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler', 12 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
14 'api_gen': '<(api_gen_dir)/compiler.py', 13 'api_gen': '<(api_gen_dir)/compiler.py',
15 }, 14 },
16 'rules': [ 15 'rules': [
17 { 16 {
18 'rule_name': 'genapi', 17 'rule_name': 'genapi',
18 'msvs_external_rule': 1,
19 'extension': 'json', 19 'extension': 'json',
20 'inputs': [ 20 'inputs': [
21 '<(api_gen_dir)/any.cc', 21 '<(api_gen_dir)/any.cc',
22 '<(api_gen_dir)/any.h', 22 '<(api_gen_dir)/any.h',
23 '<(api_gen_dir)/any_helper.py', 23 '<(api_gen_dir)/any_helper.py',
24 '<(api_gen_dir)/cc_generator.py', 24 '<(api_gen_dir)/cc_generator.py',
25 '<(api_gen_dir)/code.py', 25 '<(api_gen_dir)/code.py',
26 '<(api_gen_dir)/compiler.py', 26 '<(api_gen_dir)/compiler.py',
27 '<(api_gen_dir)/cpp_type_generator.py', 27 '<(api_gen_dir)/cpp_type_generator.py',
28 '<(api_gen_dir)/cpp_util.py', 28 '<(api_gen_dir)/cpp_util.py',
29 '<(api_gen_dir)/h_generator.py', 29 '<(api_gen_dir)/h_generator.py',
30 '<(api_gen_dir)/json_schema.py', 30 '<(api_gen_dir)/json_schema.py',
31 '<(api_gen_dir)/model.py', 31 '<(api_gen_dir)/model.py',
32 '<(api_gen_dir)/util.cc', 32 '<(api_gen_dir)/util.cc',
33 '<(api_gen_dir)/util.h', 33 '<(api_gen_dir)/util.h',
34 '<(api_gen_dir)/util_cc_helper.py', 34 '<(api_gen_dir)/util_cc_helper.py',
35 # TODO(calamity): uncomment this when gyp on windows behaves like other 35 # TODO(calamity): uncomment this when gyp on windows behaves like other
36 # platforms. List expansions of filepaths in inputs expand to different 36 # platforms. List expansions of filepaths in inputs expand to different
37 # things. 37 # things.
38 # '<@(json_schema_files)', 38 # '<@(schema_files)',
39 ], 39 ],
40 'outputs': [ 40 'outputs': [
41 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', 41 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc',
42 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h', 42 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h',
43 ], 43 ],
44 'action': [ 44 'action': [
45 'python', 45 'python',
46 '<(api_gen)', 46 '<(api_gen)',
47 '<(RULE_INPUT_PATH)', 47 '<(RULE_INPUT_PATH)',
48 '--root=<(DEPTH)', 48 '--root=<(DEPTH)',
(...skipping 18 matching lines...) Expand all
67 '<(api_gen_dir)/cpp_util.py', 67 '<(api_gen_dir)/cpp_util.py',
68 '<(api_gen_dir)/h_generator.py', 68 '<(api_gen_dir)/h_generator.py',
69 '<(api_gen_dir)/idl_schema.py', 69 '<(api_gen_dir)/idl_schema.py',
70 '<(api_gen_dir)/model.py', 70 '<(api_gen_dir)/model.py',
71 '<(api_gen_dir)/util.cc', 71 '<(api_gen_dir)/util.cc',
72 '<(api_gen_dir)/util.h', 72 '<(api_gen_dir)/util.h',
73 '<(api_gen_dir)/util_cc_helper.py', 73 '<(api_gen_dir)/util_cc_helper.py',
74 # TODO(calamity): uncomment this when gyp on windows behaves like other 74 # TODO(calamity): uncomment this when gyp on windows behaves like other
75 # platforms. List expansions of filepaths in inputs expand to different 75 # platforms. List expansions of filepaths in inputs expand to different
76 # things. 76 # things.
77 # '<@(idl_schema_files)', 77 # '<@(schema_files)',
78 ], 78 ],
79 'outputs': [ 79 'outputs': [
80 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', 80 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc',
81 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h', 81 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h',
82 ], 82 ],
83 'action': [ 83 'action': [
84 'python', 84 'python',
85 '<(api_gen)', 85 '<(api_gen)',
86 '<(RULE_INPUT_PATH)', 86 '<(RULE_INPUT_PATH)',
87 '--root=<(DEPTH)', 87 '--root=<(DEPTH)',
(...skipping 13 matching lines...) Expand all
101 ], 101 ],
102 'direct_dependent_settings': { 102 'direct_dependent_settings': {
103 'include_dirs': [ 103 'include_dirs': [
104 '<(SHARED_INTERMEDIATE_DIR)', 104 '<(SHARED_INTERMEDIATE_DIR)',
105 ] 105 ]
106 }, 106 },
107 # This target exports a hard dependency because it generates header 107 # This target exports a hard dependency because it generates header
108 # files. 108 # files.
109 'hard_dependency': 1, 109 'hard_dependency': 1,
110 } 110 }
OLDNEW
« no previous file with comments | « build/json_schema_bundle_compile.gypi ('k') | chrome/browser/chromeos/extensions/file_browser_handler_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698