| Index: build/json_schema_compile.gypi
|
| diff --git a/build/json_schema_compile.gypi b/build/json_schema_compile.gypi
|
| index d164748508f20afdcae34cbcfe14b22a6fb5b5b5..b42f09e7179b8fee5679a84f9fd8b53dc153434e 100644
|
| --- a/build/json_schema_compile.gypi
|
| +++ b/build/json_schema_compile.gypi
|
| @@ -7,6 +7,8 @@
|
| # When including this gypi, the following variables must be set:
|
| # schema_files:
|
| # An array of json or idl files that comprise the api model.
|
| + # schema_includes (optional):
|
| + # An array of paths to include when searching for referenced objects.
|
| # cc_dir:
|
| # The directory to put the generated code in.
|
| # root_namespace:
|
| @@ -20,6 +22,7 @@
|
| 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
|
| 'api_gen': '<(api_gen_dir)/compiler.py',
|
| 'impl_dir%': 'chrome/browser/extensions/api',
|
| + 'schema_includes' : [],
|
| },
|
| 'rules': [
|
| {
|
| @@ -57,7 +60,8 @@
|
| '--destdir=<(SHARED_INTERMEDIATE_DIR)',
|
| '--namespace=<(root_namespace)',
|
| '--generator=cpp',
|
| - '--impl-dir=<(impl_dir)'
|
| + '--impl-dir=<(impl_dir)',
|
| + '--include=<(schema_includes)'
|
| ],
|
| 'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files',
|
| 'process_outputs_as_sources': 1,
|
| @@ -96,7 +100,8 @@
|
| '--destdir=<(SHARED_INTERMEDIATE_DIR)',
|
| '--namespace=<(root_namespace)',
|
| '--generator=cpp',
|
| - '--impl-dir=<(impl_dir)'
|
| + '--impl-dir=<(impl_dir)',
|
| + '--include=<(schema_includes)'
|
| ],
|
| 'message': 'Generating C++ code from <(RULE_INPUT_PATH) IDL files',
|
| 'process_outputs_as_sources': 1,
|
|
|