| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 assert(enable_extensions) | 9 assert(enable_extensions) |
| 9 | 10 |
| 10 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api | 11 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api |
| 11 json_schema_api("api") { | 12 json_schema_api("api") { |
| 13 sources = schema_sources |
| 12 schemas = true | 14 schemas = true |
| 13 bundle = true | 15 bundle = true |
| 14 configs = [ "//build/config:precompiled_headers" ] | 16 configs = [ "//build/config:precompiled_headers" ] |
| 15 bundle_name = "Chrome" | 17 bundle_name = "Chrome" |
| 16 | 18 |
| 17 deps = schema_dependencies | 19 deps = schema_dependencies |
| 18 } | 20 } |
| 19 | 21 |
| 20 # GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration | 22 # GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration |
| 21 json_schema_api("api_registration") { | 23 json_schema_api("api_registration") { |
| 24 sources = schema_sources |
| 22 impl_dir = "//chrome/browser/extensions/api" | 25 impl_dir = "//chrome/browser/extensions/api" |
| 23 bundle_registration = true | 26 bundle_registration = true |
| 24 configs = [ "//build/config:precompiled_headers" ] | 27 configs = [ "//build/config:precompiled_headers" ] |
| 25 bundle_name = "Chrome" | 28 bundle_name = "Chrome" |
| 26 | 29 |
| 27 deps = [ | 30 deps = [ |
| 28 # Different APIs include headers from these targets. | 31 # Different APIs include headers from these targets. |
| 29 "//content/public/browser", | 32 "//content/public/browser", |
| 30 "//extensions/browser", | 33 "//extensions/browser", |
| 31 | 34 |
| 32 # Different APIs include some headers from chrome/common that in turn | 35 # Different APIs include some headers from chrome/common that in turn |
| 33 # include generated headers from these targets. | 36 # include generated headers from these targets. |
| 34 # TODO(brettw) this should be made unnecessary if possible. | 37 # TODO(brettw) this should be made unnecessary if possible. |
| 35 ":api", | 38 ":api", |
| 36 "//components/metrics/proto", | 39 "//components/metrics/proto", |
| 37 "//skia", | 40 "//skia", |
| 38 "//sync", | 41 "//sync", |
| 39 "//ui/accessibility:ax_gen", | 42 "//ui/accessibility:ax_gen", |
| 40 ] | 43 ] |
| 41 if (is_chromeos) { | 44 if (is_chromeos) { |
| 42 deps += [ "//components/drive:proto" ] | 45 deps += [ "//components/drive:proto" ] |
| 43 } | 46 } |
| 44 deps += schema_dependencies | 47 deps += schema_dependencies |
| 45 } | 48 } |
| 49 |
| 50 json_features("api_features") { |
| 51 feature_class = "APIFeature" |
| 52 provider_class = "APIFeatureProvider" |
| 53 sources = [ |
| 54 "../../../../extensions/common/api/_api_features.json", |
| 55 "_api_features.json", |
| 56 ] |
| 57 } |
| 58 |
| 59 json_features("permission_features") { |
| 60 feature_class = "PermissionFeature" |
| 61 provider_class = "PermissionFeatureProvider" |
| 62 sources = [ |
| 63 "../../../../extensions/common/api/_permission_features.json", |
| 64 "_permission_features.json", |
| 65 ] |
| 66 } |
| 67 |
| 68 json_features("manifest_features") { |
| 69 feature_class = "ManifestFeature" |
| 70 provider_class = "ManifestFeatureProvider" |
| 71 sources = [ |
| 72 "../../../../extensions/common/api/_manifest_features.json", |
| 73 "_manifest_features.json", |
| 74 ] |
| 75 } |
| 76 |
| 77 json_features("behavior_features") { |
| 78 feature_class = "BehaviorFeature" |
| 79 provider_class = "BehaviorFeatureProvider" |
| 80 sources = [ |
| 81 "../../../../extensions/common/api/_behavior_features.json", |
| 82 ] |
| 83 } |
| 84 |
| 85 group("extensions_features") { |
| 86 public_deps = [ |
| 87 ":api_features", |
| 88 ":behavior_features", |
| 89 ":manifest_features", |
| 90 ":permission_features", |
| 91 ] |
| 92 } |
| OLD | NEW |