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

Unified Diff: extensions/common/api/schema.gni

Issue 2452943003: Fix a bunch of generated file build flakes in //extensions (Closed)
Patch Set: Review fixes, rearrange //extensions/common/api Created 4 years, 2 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: extensions/common/api/schema.gni
diff --git a/extensions/common/api/BUILD.gn b/extensions/common/api/schema.gni
similarity index 56%
copy from extensions/common/api/BUILD.gn
copy to extensions/common/api/schema.gni
index 15b3011c555c42f6e879e29de4809ed33b413ea8..d0cd5b60050858e8d1af8eea5e937979b95b78dd 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,11 @@ if (is_chromeos) {
]
}
-uncompiled_sources = [ "web_request_internal.json" ]
+extensions_api_uncompiled_sources = [ "web_request_internal.json" ]
-uncompiled_bundle_schema_sources = [
+extensions_api_uncompiled_bundle_schema_sources = [
"declarative_web_request.json",
"web_view_request.json",
]
-root_namespace = "extensions::api::%(namespace)s"
-
-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"

Powered by Google App Engine
This is Rietveld 408576698