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

Unified Diff: chrome/common/extensions/api/BUILD.gn

Issue 2165023003: [Extensions] Use compiled feature files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/_manifest_features.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/BUILD.gn
diff --git a/chrome/common/extensions/api/BUILD.gn b/chrome/common/extensions/api/BUILD.gn
index 38da9c9a394e29cf21dc22fdbe1b2d3d1e3583b2..307cb5971c7a2eedc74e7bd14969f73289e09eac 100644
--- a/chrome/common/extensions/api/BUILD.gn
+++ b/chrome/common/extensions/api/BUILD.gn
@@ -1,14 +1,16 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
+# Copyright 2015 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/json_schema_api.gni")
+import("//tools/json_schema_compiler/json_features.gni")
import("schemas.gni")
assert(enable_extensions)
# GYP version: chrome/common/extensions/api/api.gyp:chrome_api
json_schema_api("api") {
+ sources = schema_sources
schemas = true
bundle = true
configs = [ "//build/config:precompiled_headers" ]
@@ -19,6 +21,7 @@ json_schema_api("api") {
# GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration
json_schema_api("api_registration") {
+ sources = schema_sources
impl_dir = "//chrome/browser/extensions/api"
bundle_registration = true
configs = [ "//build/config:precompiled_headers" ]
@@ -43,3 +46,47 @@ json_schema_api("api_registration") {
}
deps += schema_dependencies
}
+
+json_features("api_features") {
+ feature_class = "APIFeature"
+ provider_class = "APIFeatureProvider"
+ sources = [
+ "../../../../extensions/common/api/_api_features.json",
+ "_api_features.json",
+ ]
+}
+
+json_features("permission_features") {
+ feature_class = "PermissionFeature"
+ provider_class = "PermissionFeatureProvider"
+ sources = [
+ "../../../../extensions/common/api/_permission_features.json",
+ "_permission_features.json",
+ ]
+}
+
+json_features("manifest_features") {
+ feature_class = "ManifestFeature"
+ provider_class = "ManifestFeatureProvider"
+ sources = [
+ "../../../../extensions/common/api/_manifest_features.json",
+ "_manifest_features.json",
+ ]
+}
+
+json_features("behavior_features") {
+ feature_class = "BehaviorFeature"
+ provider_class = "BehaviorFeatureProvider"
+ sources = [
+ "../../../../extensions/common/api/_behavior_features.json",
+ ]
+}
+
+group("extensions_features") {
+ public_deps = [
+ ":api_features",
+ ":behavior_features",
+ ":manifest_features",
+ ":permission_features",
+ ]
+}
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/_manifest_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698