mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add GN configuration (issue #1403)
This commit is contained in:
27
libcef/common/extensions/api/BUILD.gn
Normal file
27
libcef/common/extensions/api/BUILD.gn
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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.
|
||||
|
||||
import("//build/json_schema_api.gni")
|
||||
import("schemas.gni")
|
||||
|
||||
json_schema_api("api") {
|
||||
schemas = true
|
||||
bundle = true
|
||||
configs = [ "//build/config:precompiled_headers" ]
|
||||
bundle_name = "Chrome"
|
||||
|
||||
deps = schema_dependencies
|
||||
}
|
||||
|
||||
json_schema_api("api_registration") {
|
||||
impl_dir = "//cef/libcef/browser/extensions/api"
|
||||
bundle_registration = true
|
||||
configs = [ "//build/config:precompiled_headers" ]
|
||||
bundle_name = "Chrome"
|
||||
|
||||
deps = [
|
||||
":api",
|
||||
]
|
||||
deps += schema_dependencies
|
||||
}
|
16
libcef/common/extensions/api/schemas.gni
Normal file
16
libcef/common/extensions/api/schemas.gni
Normal file
@@ -0,0 +1,16 @@
|
||||
# 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.
|
||||
|
||||
gypi_values = exec_script("//build/gypi_to_gn.py",
|
||||
[ rebase_path("schemas.gypi") ],
|
||||
"scope",
|
||||
[ "schemas.gypi" ])
|
||||
|
||||
sources = gypi_values.schema_files
|
||||
|
||||
uncompiled_sources = gypi_values.non_compiled_schema_files
|
||||
|
||||
root_namespace = "extensions::api::%(namespace)s"
|
||||
schema_include_rules = "//cef/libcef/browser/extensions/api:extensions::api::%(namespace)s"
|
||||
schema_dependencies = [ "//extensions/common/api" ]
|
Reference in New Issue
Block a user