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

Side by Side Diff: build/json_schema_compile.gypi

Issue 12041098: Initial commit of the Dart Chrome Extension APIs generators (Closed) Base URL: http://git.chromium.org/chromium/src.git@file_path_bugfix
Patch Set: Kalman fixes 2 (nocompile ignored in bundle mode) Created 7 years, 10 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
« no previous file with comments | « build/json_schema_bundle_compile.gypi ('k') | tools/json_schema_compiler/cc_generator.py » ('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)/cc_generator.py', 21 '<(api_gen_dir)/cc_generator.py',
22 '<(api_gen_dir)/code.py', 22 '<(api_gen_dir)/code.py',
23 '<(api_gen_dir)/compiler.py', 23 '<(api_gen_dir)/compiler.py',
24 '<(api_gen_dir)/cpp_generator.py',
24 '<(api_gen_dir)/cpp_type_generator.py', 25 '<(api_gen_dir)/cpp_type_generator.py',
25 '<(api_gen_dir)/cpp_util.py', 26 '<(api_gen_dir)/cpp_util.py',
26 '<(api_gen_dir)/h_generator.py', 27 '<(api_gen_dir)/h_generator.py',
27 '<(api_gen_dir)/json_schema.py', 28 '<(api_gen_dir)/json_schema.py',
28 '<(api_gen_dir)/model.py', 29 '<(api_gen_dir)/model.py',
29 '<(api_gen_dir)/util.cc', 30 '<(api_gen_dir)/util.cc',
30 '<(api_gen_dir)/util.h', 31 '<(api_gen_dir)/util.h',
31 '<(api_gen_dir)/util_cc_helper.py', 32 '<(api_gen_dir)/util_cc_helper.py',
32 # TODO(calamity): uncomment this when gyp on windows behaves like other 33 # TODO(calamity): uncomment this when gyp on windows behaves like other
33 # platforms. List expansions of filepaths in inputs expand to different 34 # platforms. List expansions of filepaths in inputs expand to different
34 # things. 35 # things.
35 # '<@(schema_files)', 36 # '<@(schema_files)',
36 ], 37 ],
37 'outputs': [ 38 'outputs': [
38 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', 39 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc',
39 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h', 40 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h',
40 ], 41 ],
41 'action': [ 42 'action': [
42 'python', 43 'python',
43 '<(api_gen)', 44 '<(api_gen)',
44 '<(RULE_INPUT_PATH)', 45 '<(RULE_INPUT_PATH)',
45 '--root=<(DEPTH)', 46 '--root=<(DEPTH)',
46 '--destdir=<(SHARED_INTERMEDIATE_DIR)', 47 '--destdir=<(SHARED_INTERMEDIATE_DIR)',
47 '--namespace=<(root_namespace)', 48 '--namespace=<(root_namespace)',
49 '--generator=cpp',
48 ], 50 ],
49 'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files', 51 'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files',
50 'process_outputs_as_sources': 1, 52 'process_outputs_as_sources': 1,
51 }, 53 },
52 { 54 {
53 'rule_name': 'genapi_idl', 55 'rule_name': 'genapi_idl',
54 'msvs_external_rule': 1, 56 'msvs_external_rule': 1,
55 'extension': 'idl', 57 'extension': 'idl',
56 'inputs': [ 58 'inputs': [
57 '<(api_gen_dir)/cc_generator.py', 59 '<(api_gen_dir)/cc_generator.py',
58 '<(api_gen_dir)/code.py', 60 '<(api_gen_dir)/code.py',
59 '<(api_gen_dir)/compiler.py', 61 '<(api_gen_dir)/compiler.py',
62 '<(api_gen_dir)/cpp_generator.py',
60 '<(api_gen_dir)/cpp_type_generator.py', 63 '<(api_gen_dir)/cpp_type_generator.py',
61 '<(api_gen_dir)/cpp_util.py', 64 '<(api_gen_dir)/cpp_util.py',
62 '<(api_gen_dir)/h_generator.py', 65 '<(api_gen_dir)/h_generator.py',
63 '<(api_gen_dir)/idl_schema.py', 66 '<(api_gen_dir)/idl_schema.py',
64 '<(api_gen_dir)/model.py', 67 '<(api_gen_dir)/model.py',
65 '<(api_gen_dir)/util.cc', 68 '<(api_gen_dir)/util.cc',
66 '<(api_gen_dir)/util.h', 69 '<(api_gen_dir)/util.h',
67 '<(api_gen_dir)/util_cc_helper.py', 70 '<(api_gen_dir)/util_cc_helper.py',
68 # TODO(calamity): uncomment this when gyp on windows behaves like other 71 # TODO(calamity): uncomment this when gyp on windows behaves like other
69 # platforms. List expansions of filepaths in inputs expand to different 72 # platforms. List expansions of filepaths in inputs expand to different
70 # things. 73 # things.
71 # '<@(schema_files)', 74 # '<@(schema_files)',
72 ], 75 ],
73 'outputs': [ 76 'outputs': [
74 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', 77 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc',
75 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h', 78 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h',
76 ], 79 ],
77 'action': [ 80 'action': [
78 'python', 81 'python',
79 '<(api_gen)', 82 '<(api_gen)',
80 '<(RULE_INPUT_PATH)', 83 '<(RULE_INPUT_PATH)',
81 '--root=<(DEPTH)', 84 '--root=<(DEPTH)',
82 '--destdir=<(SHARED_INTERMEDIATE_DIR)', 85 '--destdir=<(SHARED_INTERMEDIATE_DIR)',
83 '--namespace=<(root_namespace)', 86 '--namespace=<(root_namespace)',
87 '--generator=cpp',
84 ], 88 ],
85 'message': 'Generating C++ code from <(RULE_INPUT_PATH) IDL files', 89 'message': 'Generating C++ code from <(RULE_INPUT_PATH) IDL files',
86 'process_outputs_as_sources': 1, 90 'process_outputs_as_sources': 1,
87 }, 91 },
88 ], 92 ],
89 'include_dirs': [ 93 'include_dirs': [
90 '<(SHARED_INTERMEDIATE_DIR)', 94 '<(SHARED_INTERMEDIATE_DIR)',
91 '<(DEPTH)', 95 '<(DEPTH)',
92 ], 96 ],
93 'dependencies':[ 97 'dependencies':[
94 '<(DEPTH)/tools/json_schema_compiler/api_gen_util.gyp:api_gen_util', 98 '<(DEPTH)/tools/json_schema_compiler/api_gen_util.gyp:api_gen_util',
95 ], 99 ],
96 'direct_dependent_settings': { 100 'direct_dependent_settings': {
97 'include_dirs': [ 101 'include_dirs': [
98 '<(SHARED_INTERMEDIATE_DIR)', 102 '<(SHARED_INTERMEDIATE_DIR)',
99 ] 103 ]
100 }, 104 },
101 # This target exports a hard dependency because it generates header 105 # This target exports a hard dependency because it generates header
102 # files. 106 # files.
103 'hard_dependency': 1, 107 'hard_dependency': 1,
104 } 108 }
OLDNEW
« no previous file with comments | « build/json_schema_bundle_compile.gypi ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698