Index: build/json_schema_api.gni |
diff --git a/build/json_schema_api.gni b/build/json_schema_api.gni |
index 0d6b3961b8c17cc8b55d44334bcb328eeaab21b5..6f4620e861672348f8f6a46eb4e2dfd178beb44f 100644 |
--- a/build/json_schema_api.gni |
+++ b/build/json_schema_api.gni |
@@ -47,6 +47,10 @@ |
# A list of schema files which should not be compiled, but which should still |
# be processed for API bundle generation. |
# |
+# uncompiled_bundle_schema_sources [optional, only used when bundle = true] |
+# A list of schema files which should not be compiled nor registered, but |
+# should still be processed for the schema generation. |
+# |
# configs [optional] |
# Extra configs to apply to the compile step. |
# |
@@ -139,6 +143,12 @@ template("json_schema_api") { |
uncompiled_sources = invoker.uncompiled_sources |
} |
+ uncompiled_bundle_schema_sources = [] |
+ if (defined(invoker.uncompiled_bundle_schema_sources)) { |
+ uncompiled_bundle_schema_sources = |
+ invoker.uncompiled_bundle_schema_sources |
+ } |
+ |
bundle_generator_schema_name = target_name + "_bundle_generator_schema" |
action(bundle_generator_schema_name) { |
script = compiler_script |
@@ -155,7 +165,8 @@ template("json_schema_api") { |
"--generator=cpp-bundle-schema", |
"--include-rules=$schema_include_rules", |
] + rebase_path(invoker.sources, root_build_dir) + |
- rebase_path(uncompiled_sources, root_build_dir) |
+ rebase_path(uncompiled_sources, root_build_dir) + |
+ rebase_path(uncompiled_bundle_schema_sources, root_build_dir) |
} |
} |