| 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: an array 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 'actions': [ | 24 'actions': [ |
| 19 { | 25 { |
| 20 # GN version: //extensions/generated_extensions_api.gni | 26 # GN version: //extensions/generated_extensions_api.gni |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 ], | 67 ], |
| 62 'direct_dependent_settings': { | 68 'direct_dependent_settings': { |
| 63 'include_dirs': [ | 69 'include_dirs': [ |
| 64 '<(SHARED_INTERMEDIATE_DIR)', | 70 '<(SHARED_INTERMEDIATE_DIR)', |
| 65 ] | 71 ] |
| 66 }, | 72 }, |
| 67 # This target exports a hard dependency because it generates header | 73 # This target exports a hard dependency because it generates header |
| 68 # files. | 74 # files. |
| 69 'hard_dependency': 1, | 75 'hard_dependency': 1, |
| 70 } | 76 } |
| OLD | NEW |