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

Side by Side Diff: build/json_schema_compile.gypi

Issue 9716003: Extract ExtensionFunctionRegistry from ExtensionFunctionDispatcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits; fix Windows build (thanks Brad Nelson!). Created 8 years, 9 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 | « build/json_schema_bundle_compile.gypi ('k') | chrome/browser/extensions/api/dns/dns_api.h » ('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 # json_schema_files: an array of json files that comprise the api model. 8 # json_schema_files: a list of json files that comprise the api model.
9 # idl_schema_files: a list of IDL files that comprise the api model.
9 # cc_dir: path to generated files 10 # cc_dir: path to generated files
10 # root_namespace: the C++ namespace that all generated files go under 11 # root_namespace: the C++ namespace that all generated files go under
11 # Functions and namespaces can be excluded by setting "nocompile" to true. 12 # Functions and namespaces can be excluded by setting "nocompile" to true.
12 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler', 13 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
13 'api_gen': '<(api_gen_dir)/compiler.py', 14 'api_gen': '<(api_gen_dir)/compiler.py',
14 }, 15 },
15 'rules': [ 16 'rules': [
16 { 17 {
17 'rule_name': 'genapi', 18 'rule_name': 'genapi',
18 'extension': 'json', 19 'extension': 'json',
(...skipping 27 matching lines...) Expand all
46 '<(RULE_INPUT_PATH)', 47 '<(RULE_INPUT_PATH)',
47 '--root=<(DEPTH)', 48 '--root=<(DEPTH)',
48 '--destdir=<(SHARED_INTERMEDIATE_DIR)', 49 '--destdir=<(SHARED_INTERMEDIATE_DIR)',
49 '--namespace=<(root_namespace)', 50 '--namespace=<(root_namespace)',
50 ], 51 ],
51 'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files', 52 'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files',
52 'process_outputs_as_sources': 1, 53 'process_outputs_as_sources': 1,
53 }, 54 },
54 { 55 {
55 'rule_name': 'genapi_idl', 56 'rule_name': 'genapi_idl',
57 'msvs_external_rule': 1,
56 'extension': 'idl', 58 'extension': 'idl',
57 'inputs': [ 59 'inputs': [
58 '<(api_gen_dir)/any.cc', 60 '<(api_gen_dir)/any.cc',
59 '<(api_gen_dir)/any.h', 61 '<(api_gen_dir)/any.h',
60 '<(api_gen_dir)/any_helper.py', 62 '<(api_gen_dir)/any_helper.py',
61 '<(api_gen_dir)/cc_generator.py', 63 '<(api_gen_dir)/cc_generator.py',
62 '<(api_gen_dir)/code.py', 64 '<(api_gen_dir)/code.py',
63 '<(api_gen_dir)/compiler.py', 65 '<(api_gen_dir)/compiler.py',
64 '<(api_gen_dir)/cpp_type_generator.py', 66 '<(api_gen_dir)/cpp_type_generator.py',
65 '<(api_gen_dir)/cpp_util.py', 67 '<(api_gen_dir)/cpp_util.py',
66 '<(api_gen_dir)/h_generator.py', 68 '<(api_gen_dir)/h_generator.py',
67 '<(api_gen_dir)/idl_schema.py', 69 '<(api_gen_dir)/idl_schema.py',
68 '<(api_gen_dir)/model.py', 70 '<(api_gen_dir)/model.py',
69 '<(api_gen_dir)/util.cc', 71 '<(api_gen_dir)/util.cc',
70 '<(api_gen_dir)/util.h', 72 '<(api_gen_dir)/util.h',
71 '<(api_gen_dir)/util_cc_helper.py', 73 '<(api_gen_dir)/util_cc_helper.py',
72 # TODO(calamity): uncomment this when gyp on windows behaves like other 74 # TODO(calamity): uncomment this when gyp on windows behaves like other
73 # platforms. List expansions of filepaths in inputs expand to different 75 # platforms. List expansions of filepaths in inputs expand to different
74 # things. 76 # things.
75 # '<@(json_schema_files)', 77 # '<@(idl_schema_files)',
76 ], 78 ],
77 'outputs': [ 79 'outputs': [
78 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', 80 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc',
79 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h', 81 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h',
80 ], 82 ],
81 'action': [ 83 'action': [
82 'python', 84 'python',
83 '<(api_gen)', 85 '<(api_gen)',
84 '<(RULE_INPUT_PATH)', 86 '<(RULE_INPUT_PATH)',
85 '--root=<(DEPTH)', 87 '--root=<(DEPTH)',
(...skipping 13 matching lines...) Expand all
99 ], 101 ],
100 'direct_dependent_settings': { 102 'direct_dependent_settings': {
101 'include_dirs': [ 103 'include_dirs': [
102 '<(SHARED_INTERMEDIATE_DIR)', 104 '<(SHARED_INTERMEDIATE_DIR)',
103 ] 105 ]
104 }, 106 },
105 # This target exports a hard dependency because it generates header 107 # This target exports a hard dependency because it generates header
106 # files. 108 # files.
107 'hard_dependency': 1, 109 'hard_dependency': 1,
108 } 110 }
OLDNEW
« no previous file with comments | « build/json_schema_bundle_compile.gypi ('k') | chrome/browser/extensions/api/dns/dns_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698