OLD | NEW |
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 # 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 ], | 101 ], |
101 'direct_dependent_settings': { | 102 'direct_dependent_settings': { |
102 'include_dirs': [ | 103 'include_dirs': [ |
103 '<(SHARED_INTERMEDIATE_DIR)', | 104 '<(SHARED_INTERMEDIATE_DIR)', |
104 ] | 105 ] |
105 }, | 106 }, |
106 # This target exports a hard dependency because it generates header | 107 # This target exports a hard dependency because it generates header |
107 # files. | 108 # files. |
108 'hard_dependency': 1, | 109 'hard_dependency': 1, |
109 } | 110 } |
OLD | NEW |