| OLD | NEW |
| 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("//tools/json_schema_compiler/json_features.gni") |
| 7 | 7 |
| 8 schema_sources = [ "identity.idl" ] | 8 schema_sources = [ "identity.idl" ] |
| 9 root_namespace = "extensions::shell::api::%(namespace)s" | 9 root_namespace = "extensions::shell::api::%(namespace)s" |
| 10 | 10 |
| 11 json_schema_api("api") { | 11 json_schema_api("api") { |
| 12 sources = schema_sources | 12 sources = schema_sources |
| 13 schemas = true | 13 schemas = true |
| 14 bundle = true | 14 bundle = true |
| 15 bundle_name = "Shell" | 15 bundle_name = "Shell" |
| 16 } | 16 } |
| 17 | 17 |
| 18 json_schema_api("api_registration") { | 18 json_schema_api("api_registration") { |
| 19 sources = schema_sources | 19 sources = schema_sources |
| 20 impl_dir = "//extensions/shell/browser/api" | 20 impl_dir = "//extensions/shell/browser/api" |
| 21 bundle_registration = true | 21 bundle_registration = true |
| 22 bundle_name = "Shell" | 22 bundle_name = "Shell" |
| 23 | 23 |
| 24 deps = [ | 24 deps = [ |
| 25 ":api", | 25 ":api", |
| 26 "//extensions/common", |
| 26 ] | 27 ] |
| 27 } | 28 } |
| 28 | 29 |
| 29 json_features("shell_api_features") { | 30 json_features("shell_api_features") { |
| 30 feature_class = "APIFeature" | 31 feature_class = "APIFeature" |
| 31 provider_class = "ShellAPIFeatureProvider" | 32 provider_class = "ShellAPIFeatureProvider" |
| 32 sources = [ | 33 sources = [ |
| 33 "../../../common/api/_api_features.json", | 34 "../../../common/api/_api_features.json", |
| 34 "_api_features.json", | 35 "_api_features.json", |
| 35 ] | 36 ] |
| (...skipping 24 matching lines...) Expand all Loading... |
| 60 } | 61 } |
| 61 | 62 |
| 62 group("extensions_features") { | 63 group("extensions_features") { |
| 63 public_deps = [ | 64 public_deps = [ |
| 64 ":shell_api_features", | 65 ":shell_api_features", |
| 65 ":shell_behavior_features", | 66 ":shell_behavior_features", |
| 66 ":shell_manifest_features", | 67 ":shell_manifest_features", |
| 67 ":shell_permission_features", | 68 ":shell_permission_features", |
| 68 ] | 69 ] |
| 69 } | 70 } |
| OLD | NEW |