Index: extensions/common/api/schema.gni |
diff --git a/extensions/common/api/BUILD.gn b/extensions/common/api/schema.gni |
similarity index 53% |
copy from extensions/common/api/BUILD.gn |
copy to extensions/common/api/schema.gni |
index 15b3011c555c42f6e879e29de4809ed33b413ea8..a5d06c6d59f164aba304376c012b3f9310d336c9 100644 |
--- a/extensions/common/api/BUILD.gn |
+++ b/extensions/common/api/schema.gni |
@@ -1,14 +1,8 @@ |
-# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-import("//build/config/features.gni") |
-import("//build/json_schema_api.gni") |
-import("//mojo/public/tools/bindings/mojom.gni") |
- |
-assert(enable_extensions) |
- |
-schema_files = [ |
+extensions_api_schema_files_ = [ |
"alarms.idl", |
"app_current_window_internal.idl", |
"app_runtime.idl", |
@@ -61,7 +55,7 @@ schema_files = [ |
] |
if (is_chromeos) { |
- schema_files += [ |
+ extensions_api_schema_files_ += [ |
"diagnostics.idl", |
"networking_config.idl", |
"vpn_provider.idl", |
@@ -69,53 +63,17 @@ if (is_chromeos) { |
] |
} |
-uncompiled_sources = [ "web_request_internal.json" ] |
+extensions_api_schema_files = |
+ get_path_info(extensions_api_schema_files_, "abspath") |
-uncompiled_bundle_schema_sources = [ |
- "declarative_web_request.json", |
- "web_view_request.json", |
-] |
+extensions_api_uncompiled_sources = |
+ get_path_info([ "web_request_internal.json" ], "abspath") |
-root_namespace = "extensions::api::%(namespace)s" |
+extensions_api_uncompiled_bundle_schema_sources = |
+ get_path_info([ |
+ "declarative_web_request.json", |
+ "web_view_request.json", |
+ ], |
+ "abspath") |
-json_schema_api("generated_api") { |
- sources = schema_files |
- schemas = true |
- bundle = true |
- bundle_name = "" |
- |
- # Inherit uncompiled_sources, uncompiled_bundle_schema_sources, and |
- # root_namespace. |
-} |
- |
-mojom("mojom") { |
- sources = [ |
- "mime_handler.mojom", |
- ] |
- |
- use_new_wrapper_types = false |
-} |
- |
-group("api") { |
- public_deps = [ |
- ":generated_api", |
- ":mojom", |
- ] |
-} |
- |
-json_schema_api("api_registration") { |
- sources = schema_files |
- impl_dir = "//extensions/browser/api" |
- bundle_registration = true |
- bundle_name = "" |
- |
- deps = [ |
- ":api", |
- "//device/serial", |
- "//extensions/common/api/cast_channel:cast_channel_proto", |
- "//skia", |
- ] |
- |
- # Inherit uncompiled_sources, uncompiled_bundle_schema_sources, and |
- # root_namespace. |
-} |
+extensions_api_root_namespace = "extensions::api::%(namespace)s" |