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: | 8 # schema_files: |
9 # An array of json or idl files that comprise the api model. | 9 # An array of json or idl files that comprise the api model. |
10 # schema_include_rules (optional): | 10 # schema_include_rules (optional): |
11 # An array of paths to include when searching for referenced objects, | 11 # An array of paths to include when searching for referenced objects, |
12 # with the namespace separated by a :. | 12 # with the namespace separated by a :. |
13 # Example: | 13 # Example: |
14 # [ '/foo/bar:Foo::Bar::%(namespace)s' ] | 14 # [ '/foo/bar:Foo::Bar::%(namespace)s' ] |
15 # cc_dir: | 15 # cc_dir: |
16 # The directory to put the generated code in. | 16 # The directory to put the generated code in. |
17 # root_namespace: | 17 # root_namespace: |
18 # A Python string substituion pattern used to generate the C++ | 18 # A Python string substituion pattern used to generate the C++ |
19 # namespace for each API. Use %(namespace)s to replace with the API | 19 # namespace for each API. Use %(namespace)s to replace with the API |
20 # namespace, like "toplevel::%(namespace)s_api". | 20 # namespace, like "toplevel::%(namespace)s_api". |
21 # | 21 # |
22 # Functions and namespaces can be excluded by setting "nocompile" to true. | 22 # Functions and namespaces can be excluded by setting "nocompile" to true. |
23 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler', | 23 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler', |
24 'api_gen': '<(api_gen_dir)/compiler.py', | 24 'api_gen': '<(api_gen_dir)/compiler.py', |
25 'schema_include_rules': [], | 25 'schema_include_rules': [], |
26 }, | 26 }, |
27 'rules': [ | 27 'rules': [ |
28 { | 28 { |
29 # GN version: //extensions/generated_extensions_api.gni | 29 # GN version: json_schema_compile.gni |
30 'rule_name': 'genapi', | 30 'rule_name': 'genapi', |
31 'msvs_external_rule': 1, | 31 'msvs_external_rule': 1, |
32 'extension': 'json', | 32 'extension': 'json', |
33 'inputs': [ | 33 'inputs': [ |
34 '<(api_gen_dir)/cc_generator.py', | 34 '<(api_gen_dir)/cc_generator.py', |
35 '<(api_gen_dir)/code.py', | 35 '<(api_gen_dir)/code.py', |
36 '<(api_gen_dir)/compiler.py', | 36 '<(api_gen_dir)/compiler.py', |
37 '<(api_gen_dir)/cpp_generator.py', | 37 '<(api_gen_dir)/cpp_generator.py', |
38 '<(api_gen_dir)/cpp_type_generator.py', | 38 '<(api_gen_dir)/cpp_type_generator.py', |
39 '<(api_gen_dir)/cpp_util.py', | 39 '<(api_gen_dir)/cpp_util.py', |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 ], | 114 ], |
115 'direct_dependent_settings': { | 115 'direct_dependent_settings': { |
116 'include_dirs': [ | 116 'include_dirs': [ |
117 '<(SHARED_INTERMEDIATE_DIR)', | 117 '<(SHARED_INTERMEDIATE_DIR)', |
118 ] | 118 ] |
119 }, | 119 }, |
120 # This target exports a hard dependency because it generates header | 120 # This target exports a hard dependency because it generates header |
121 # files. | 121 # files. |
122 'hard_dependency': 1, | 122 'hard_dependency': 1, |
123 } | 123 } |
OLD | NEW |