Chromium Code Reviews| Index: extensions/browser/api/BUILD.gn |
| diff --git a/extensions/browser/api/BUILD.gn b/extensions/browser/api/BUILD.gn |
| index 93b704f606c83ef177cac5f7c56b855b0abe1d87..0797f2eadba46ab266eda17b4736a4412491068c 100644 |
| --- a/extensions/browser/api/BUILD.gn |
| +++ b/extensions/browser/api/BUILD.gn |
| @@ -2,6 +2,9 @@ |
| # 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("//extensions/common/api/schema.gni") |
| + |
| source_set("api") { |
| sources = [ |
| "api_resource.cc", |
| @@ -75,6 +78,7 @@ source_set("api") { |
| deps = [ |
| "//base:i18n", |
| "//content/public/browser", |
| + "//extensions/strings", |
| ] |
| if (is_chromeos) { |
| @@ -86,3 +90,23 @@ source_set("api") { |
| ] |
| } |
| } |
| + |
| +json_schema_api("api_registration") { |
| + sources = |
| + rebase_path(extensions_api_schema_files, ".", "//extensions/common/api") |
|
Devlin
2016/10/27 16:00:59
Can we assert() some of these as a sanity check?
Dirk Pranke
2016/10/27 21:28:44
What would you be asserting?
|
| + impl_dir = "//extensions/browser/api" |
| + bundle_registration = true |
| + bundle_name = "" |
| + root_namespace = extensions_api_root_namespace |
| + uncompiled_sources = rebase_path(extensions_api_uncompiled_sources, |
| + ".", |
| + "//extensions/common/api") |
|
Devlin
2016/10/27 16:00:59
gn accepts fully qualified paths (e.g. //extension
Dirk Pranke
2016/10/27 21:28:44
Use get_path_info(extension_api_schema_files, "abs
|
| + |
| + deps = [ |
| + ":api", |
| + "//device/serial", |
| + "//extensions/common/api", |
| + "//extensions/common/api/cast_channel:cast_channel_proto", |
| + "//skia", |
| + ] |
| +} |