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

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: Added wrappers for more types of functions (including events, callbacks and lists) 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
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
(...skipping 27 matching lines...) Expand all
38 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', 38 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc',
39 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h', 39 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h',
40 ], 40 ],
41 'action': [ 41 'action': [
42 'python', 42 'python',
43 '<(api_gen)', 43 '<(api_gen)',
44 '<(RULE_INPUT_PATH)', 44 '<(RULE_INPUT_PATH)',
45 '--root=<(DEPTH)', 45 '--root=<(DEPTH)',
46 '--destdir=<(SHARED_INTERMEDIATE_DIR)', 46 '--destdir=<(SHARED_INTERMEDIATE_DIR)',
47 '--namespace=<(root_namespace)', 47 '--namespace=<(root_namespace)',
48 '--generator=cpp',
48 ], 49 ],
49 'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files', 50 'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files',
50 'process_outputs_as_sources': 1, 51 'process_outputs_as_sources': 1,
51 }, 52 },
52 { 53 {
53 'rule_name': 'genapi_idl', 54 'rule_name': 'genapi_idl',
54 'msvs_external_rule': 1, 55 'msvs_external_rule': 1,
55 'extension': 'idl', 56 'extension': 'idl',
56 'inputs': [ 57 'inputs': [
57 '<(api_gen_dir)/cc_generator.py', 58 '<(api_gen_dir)/cc_generator.py',
(...skipping 16 matching lines...) Expand all
74 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', 75 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc',
75 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h', 76 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h',
76 ], 77 ],
77 'action': [ 78 'action': [
78 'python', 79 'python',
79 '<(api_gen)', 80 '<(api_gen)',
80 '<(RULE_INPUT_PATH)', 81 '<(RULE_INPUT_PATH)',
81 '--root=<(DEPTH)', 82 '--root=<(DEPTH)',
82 '--destdir=<(SHARED_INTERMEDIATE_DIR)', 83 '--destdir=<(SHARED_INTERMEDIATE_DIR)',
83 '--namespace=<(root_namespace)', 84 '--namespace=<(root_namespace)',
85 '--generator=cpp',
84 ], 86 ],
85 'message': 'Generating C++ code from <(RULE_INPUT_PATH) IDL files', 87 'message': 'Generating C++ code from <(RULE_INPUT_PATH) IDL files',
86 'process_outputs_as_sources': 1, 88 'process_outputs_as_sources': 1,
87 }, 89 },
88 ], 90 ],
89 'include_dirs': [ 91 'include_dirs': [
90 '<(SHARED_INTERMEDIATE_DIR)', 92 '<(SHARED_INTERMEDIATE_DIR)',
91 '<(DEPTH)', 93 '<(DEPTH)',
92 ], 94 ],
93 'dependencies':[ 95 'dependencies':[
94 '<(DEPTH)/tools/json_schema_compiler/api_gen_util.gyp:api_gen_util', 96 '<(DEPTH)/tools/json_schema_compiler/api_gen_util.gyp:api_gen_util',
95 ], 97 ],
96 'direct_dependent_settings': { 98 'direct_dependent_settings': {
97 'include_dirs': [ 99 'include_dirs': [
98 '<(SHARED_INTERMEDIATE_DIR)', 100 '<(SHARED_INTERMEDIATE_DIR)',
99 ] 101 ]
100 }, 102 },
101 # This target exports a hard dependency because it generates header 103 # This target exports a hard dependency because it generates header
102 # files. 104 # files.
103 'hard_dependency': 1, 105 'hard_dependency': 1,
104 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698