Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Unified Diff: build/json_schema_compile.gypi

Issue 487533005: Add support for references in different paths in apis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/json_schema_compile.gypi
diff --git a/build/json_schema_compile.gypi b/build/json_schema_compile.gypi
index d164748508f20afdcae34cbcfe14b22a6fb5b5b5..9ac34b9fd353de8783e5d82ef6e56c479e49f291 100644
--- a/build/json_schema_compile.gypi
+++ b/build/json_schema_compile.gypi
@@ -7,6 +7,11 @@
# 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_include_rules (optional):
+ # An array of paths to include when searching for referenced objects,
+ # with the namespace separated by a :.
+ # Example:
+ # [ '/foo/bar:Foo::Bar::%(namespace)s' ]
# cc_dir:
# The directory to put the generated code in.
# root_namespace:
@@ -20,6 +25,7 @@
'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
'api_gen': '<(api_gen_dir)/compiler.py',
'impl_dir%': 'chrome/browser/extensions/api',
+ 'schema_include_rules': [],
},
'rules': [
{
@@ -57,7 +63,8 @@
'--destdir=<(SHARED_INTERMEDIATE_DIR)',
'--namespace=<(root_namespace)',
'--generator=cpp',
- '--impl-dir=<(impl_dir)'
+ '--impl-dir=<(impl_dir)',
+ '--include-rules=<(schema_include_rules)'
],
'message': 'Generating C++ code from <(RULE_INPUT_PATH) json files',
'process_outputs_as_sources': 1,
@@ -96,7 +103,8 @@
'--destdir=<(SHARED_INTERMEDIATE_DIR)',
'--namespace=<(root_namespace)',
'--generator=cpp',
- '--impl-dir=<(impl_dir)'
+ '--impl-dir=<(impl_dir)',
+ '--include-rules=<(schema_include_rules)'
],
'message': 'Generating C++ code from <(RULE_INPUT_PATH) IDL files',
'process_outputs_as_sources': 1,

Powered by Google App Engine
This is Rietveld 408576698