2016-06-23 19:42:00 +02:00
|
|
|
# Copyright 2016 The Chromium Embedded Framework Authors. Portions copyright
|
|
|
|
# 2014 the Chromium Authors. All rights reserved. Use of this source code is
|
|
|
|
# governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
2016-08-31 13:25:56 +02:00
|
|
|
import("//tools/json_schema_compiler/json_features.gni")
|
2016-11-23 21:54:29 +01:00
|
|
|
#import("//tools/json_schema_compiler/json_schema_api.gni")
|
2016-06-23 19:42:00 +02:00
|
|
|
|
2016-08-31 13:25:56 +02:00
|
|
|
# TODO(cef): Enable if/when CEF exposes its own Mojo APIs. See README.txt for
|
|
|
|
# details.
|
2016-10-17 20:14:44 +02:00
|
|
|
#schema_sources = [
|
|
|
|
# # TODO(cef): Add CEF-specific Mojo APIs here.
|
|
|
|
#]
|
|
|
|
#
|
|
|
|
#uncompiled_sources = [
|
|
|
|
#]
|
|
|
|
#
|
|
|
|
#root_namespace = "extensions::api::cef::%(namespace)s"
|
|
|
|
#schema_include_rules = "//cef/libcef/browser/extensions/api:extensions::api::cef::%(namespace)s"
|
|
|
|
#schema_dependencies = [ "//extensions/common/api" ]
|
|
|
|
#
|
2018-09-04 11:43:21 +02:00
|
|
|
#generated_json_strings("api") {
|
2016-08-31 13:25:56 +02:00
|
|
|
# sources = schema_sources
|
|
|
|
# schemas = true
|
|
|
|
# configs = [ "//build/config:precompiled_headers" ]
|
|
|
|
# bundle_name = "Cef"
|
|
|
|
#
|
|
|
|
# deps = schema_dependencies
|
|
|
|
#}
|
|
|
|
#
|
2018-09-04 11:43:21 +02:00
|
|
|
#function_registration("api_registration") {
|
2016-08-31 13:25:56 +02:00
|
|
|
# sources = schema_sources
|
|
|
|
# impl_dir = "//cef/libcef/browser/extensions/api"
|
|
|
|
# configs = [ "//build/config:precompiled_headers" ]
|
|
|
|
# bundle_name = "Cef"
|
|
|
|
#
|
|
|
|
# deps = [
|
|
|
|
# ":api",
|
|
|
|
# ]
|
|
|
|
# deps += schema_dependencies
|
|
|
|
#}
|
2016-06-23 19:42:00 +02:00
|
|
|
|
2016-08-31 13:25:56 +02:00
|
|
|
json_features("cef_api_features") {
|
2017-01-23 18:36:54 +01:00
|
|
|
feature_type = "APIFeature"
|
2018-07-24 00:32:02 +02:00
|
|
|
method_name = "AddCEFAPIFeatures"
|
2016-08-31 13:25:56 +02:00
|
|
|
sources = [
|
|
|
|
"_api_features.json",
|
|
|
|
]
|
2016-06-23 19:42:00 +02:00
|
|
|
}
|
|
|
|
|
2016-08-31 13:25:56 +02:00
|
|
|
json_features("cef_permission_features") {
|
2017-01-23 18:36:54 +01:00
|
|
|
feature_type = "PermissionFeature"
|
2018-07-24 00:32:02 +02:00
|
|
|
method_name = "AddCEFPermissionFeatures"
|
2016-08-31 13:25:56 +02:00
|
|
|
sources = [
|
|
|
|
"_permission_features.json",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
json_features("cef_manifest_features") {
|
2017-01-23 18:36:54 +01:00
|
|
|
feature_type = "ManifestFeature"
|
2018-07-24 00:32:02 +02:00
|
|
|
method_name = "AddCEFManifestFeatures"
|
2016-08-31 13:25:56 +02:00
|
|
|
sources = [
|
|
|
|
# Use the same manifest features as Chrome.
|
|
|
|
"//chrome/common/extensions/api/_manifest_features.json",
|
|
|
|
]
|
|
|
|
}
|
2016-06-23 19:42:00 +02:00
|
|
|
|
2016-08-31 13:25:56 +02:00
|
|
|
group("extensions_features") {
|
|
|
|
public_deps = [
|
|
|
|
":cef_api_features",
|
|
|
|
":cef_manifest_features",
|
|
|
|
":cef_permission_features",
|
2018-07-24 00:32:02 +02:00
|
|
|
"//extensions/common/api:extensions_features",
|
2016-06-23 19:42:00 +02:00
|
|
|
]
|
|
|
|
}
|