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

Unified Diff: extensions/shell/common/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 | « extensions/shell/app_shell.gyp ('k') | extensions/shell/common/api/api.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/common/api/BUILD.gn
diff --git a/extensions/shell/common/api/BUILD.gn b/extensions/shell/common/api/BUILD.gn
index 35ed47e9d3500c323e0aa39ad89b439589faf1af..f2a30d7dc6282aaa3defff0540d5802f306dbe42 100644
--- a/extensions/shell/common/api/BUILD.gn
+++ b/extensions/shell/common/api/BUILD.gn
@@ -3,10 +3,12 @@
# found in the LICENSE file.
import("//build/json_schema_api.gni")
+import("//tools/json_schema_compiler/json_features.gni")
import("schemas.gni")
# GYP version: extensions/shell/common/api/api.gyp:shell_api
json_schema_api("api") {
+ sources = schema_sources
schemas = true
bundle = true
bundle_name = "Shell"
@@ -14,6 +16,7 @@ json_schema_api("api") {
# GYP version: extensions/shell/browser/api/api_registration.gyp:shell_api_registration
json_schema_api("api_registration") {
+ sources = schema_sources
impl_dir = "//extensions/shell/browser/api"
bundle_registration = true
bundle_name = "Shell"
@@ -22,3 +25,45 @@ json_schema_api("api_registration") {
":api",
]
}
+
+json_features("shell_api_features") {
+ feature_class = "APIFeature"
+ provider_class = "ShellAPIFeatureProvider"
+ sources = [
+ "../../../common/api/_api_features.json",
+ "_api_features.json",
+ ]
+}
+
+json_features("shell_permission_features") {
+ feature_class = "PermissionFeature"
+ provider_class = "ShellPermissionFeatureProvider"
+ sources = [
+ "../../../common/api/_permission_features.json",
+ ]
+}
+
+json_features("shell_manifest_features") {
+ feature_class = "ManifestFeature"
+ provider_class = "ShellManifestFeatureProvider"
+ sources = [
+ "../../../common/api/_manifest_features.json",
+ ]
+}
+
+json_features("shell_behavior_features") {
+ feature_class = "BehaviorFeature"
+ provider_class = "ShellBehaviorFeatureProvider"
+ sources = [
+ "../../../common/api/_behavior_features.json",
+ ]
+}
+
+group("extensions_features") {
+ public_deps = [
+ ":shell_api_features",
+ ":shell_behavior_features",
+ ":shell_manifest_features",
+ ":shell_permission_features",
+ ]
+}
« no previous file with comments | « extensions/shell/app_shell.gyp ('k') | extensions/shell/common/api/api.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698