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