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

Side by Side 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, 4 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/json_schema_api.gni") 5 import("//build/json_schema_api.gni")
6 import("//tools/json_schema_compiler/json_features.gni")
6 import("schemas.gni") 7 import("schemas.gni")
7 8
8 # GYP version: extensions/shell/common/api/api.gyp:shell_api 9 # GYP version: extensions/shell/common/api/api.gyp:shell_api
9 json_schema_api("api") { 10 json_schema_api("api") {
11 sources = schema_sources
10 schemas = true 12 schemas = true
11 bundle = true 13 bundle = true
12 bundle_name = "Shell" 14 bundle_name = "Shell"
13 } 15 }
14 16
15 # GYP version: extensions/shell/browser/api/api_registration.gyp:shell_api_regis tration 17 # GYP version: extensions/shell/browser/api/api_registration.gyp:shell_api_regis tration
16 json_schema_api("api_registration") { 18 json_schema_api("api_registration") {
19 sources = schema_sources
17 impl_dir = "//extensions/shell/browser/api" 20 impl_dir = "//extensions/shell/browser/api"
18 bundle_registration = true 21 bundle_registration = true
19 bundle_name = "Shell" 22 bundle_name = "Shell"
20 23
21 deps = [ 24 deps = [
22 ":api", 25 ":api",
23 ] 26 ]
24 } 27 }
28
29 json_features("shell_api_features") {
30 feature_class = "APIFeature"
31 provider_class = "ShellAPIFeatureProvider"
32 sources = [
33 "../../../common/api/_api_features.json",
34 "_api_features.json",
35 ]
36 }
37
38 json_features("shell_permission_features") {
39 feature_class = "PermissionFeature"
40 provider_class = "ShellPermissionFeatureProvider"
41 sources = [
42 "../../../common/api/_permission_features.json",
43 ]
44 }
45
46 json_features("shell_manifest_features") {
47 feature_class = "ManifestFeature"
48 provider_class = "ShellManifestFeatureProvider"
49 sources = [
50 "../../../common/api/_manifest_features.json",
51 ]
52 }
53
54 json_features("shell_behavior_features") {
55 feature_class = "BehaviorFeature"
56 provider_class = "ShellBehaviorFeatureProvider"
57 sources = [
58 "../../../common/api/_behavior_features.json",
59 ]
60 }
61
62 group("extensions_features") {
63 public_deps = [
64 ":shell_api_features",
65 ":shell_behavior_features",
66 ":shell_manifest_features",
67 ":shell_permission_features",
68 ]
69 }
OLDNEW
« 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