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 # schema_files: |
9 # cc_dir: path to generated files | 9 # An array of json or idl files that comprise the api model. |
10 # root_namespace: the C++ namespace that all generated files go under | 10 # cc_dir: |
| 11 # The directory to put the generated code in. |
| 12 # root_namespace: |
| 13 # A Python string substituion pattern used to generate the C++ |
| 14 # namespace for each API. Use %(namespace)s to replace with the API |
| 15 # namespace, like "toplevel::%(namespace)s_api". |
| 16 # |
11 # Functions and namespaces can be excluded by setting "nocompile" to true. | 17 # Functions and namespaces can be excluded by setting "nocompile" to true. |
12 # The default root path of API implementation sources is | 18 # The default root path of API implementation sources is |
13 # chrome/browser/extensions/api and can be overridden by setting "impl_dir". | 19 # chrome/browser/extensions/api and can be overridden by setting "impl_dir". |
14 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler', | 20 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler', |
15 'api_gen': '<(api_gen_dir)/compiler.py', | 21 'api_gen': '<(api_gen_dir)/compiler.py', |
16 'impl_dir%': 'chrome/browser/extensions/api', | 22 'impl_dir%': 'chrome/browser/extensions/api', |
17 }, | 23 }, |
18 'rules': [ | 24 'rules': [ |
19 { | 25 { |
20 # GN version: //extensions/generated_extensions_api.gni | 26 # GN version: //extensions/generated_extensions_api.gni |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 ], | 111 ], |
106 'direct_dependent_settings': { | 112 'direct_dependent_settings': { |
107 'include_dirs': [ | 113 'include_dirs': [ |
108 '<(SHARED_INTERMEDIATE_DIR)', | 114 '<(SHARED_INTERMEDIATE_DIR)', |
109 ] | 115 ] |
110 }, | 116 }, |
111 # This target exports a hard dependency because it generates header | 117 # This target exports a hard dependency because it generates header |
112 # files. | 118 # files. |
113 'hard_dependency': 1, | 119 'hard_dependency': 1, |
114 } | 120 } |
OLD | NEW |