Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Unified Diff: extensions/common/api/BUILD.gn

Issue 2302743003: Inline extensions .gypi files into GN build. (Closed)
Patch Set: ChromeOS Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/BUILD.gn ('k') | extensions/common/api/api.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/BUILD.gn
diff --git a/extensions/common/api/BUILD.gn b/extensions/common/api/BUILD.gn
index 6dff0bead4d81becd12e9aa24a904fb14bc547bf..0276c5705c67534ccd2847f5179d072a585adb9e 100644
--- a/extensions/common/api/BUILD.gn
+++ b/extensions/common/api/BUILD.gn
@@ -5,19 +5,88 @@
import("//build/config/features.gni")
import("//build/json_schema_api.gni")
import("//mojo/public/tools/bindings/mojom.gni")
-import("schemas.gni")
assert(enable_extensions)
+schema_files = [
+ "alarms.idl",
+ "app_current_window_internal.idl",
+ "app_runtime.idl",
+ "app_view_guest_internal.json",
+ "app_window.idl",
+ "audio.idl",
+ "bluetooth.idl",
+ "bluetooth_private.idl",
+ "bluetooth_socket.idl",
+ "cast_channel.idl",
+ "clipboard.idl",
+ "document_scan.idl",
+ "display_source.idl",
+ "dns.idl",
+ "events.json",
+ "extensions_manifest_types.json",
+ "extension_options_internal.idl",
+ "extension_view_internal.json",
+ "extension_types.json",
+ "guest_view_internal.json",
+ "management.json",
+ "hid.idl",
+ "idle.json",
+ "mime_handler_private.idl",
+ "mime_handler_view_guest_internal.json",
+ "mojo_private.idl",
+ "networking_private.idl",
+ "power.idl",
+ "printer_provider.idl",
+ "printer_provider_internal.idl",
+ "runtime.json",
+ "serial.idl",
+ "socket.idl",
+ "sockets_tcp.idl",
+ "sockets_tcp_server.idl",
+ "sockets_udp.idl",
+ "storage.json",
+ "system_cpu.idl",
+ "system_display.idl",
+ "system_memory.idl",
+ "system_network.idl",
+ "system_storage.idl",
+ "test.json",
+ "usb.idl",
+ "virtual_keyboard_private.json",
+ "web_request.json",
+ "web_view_internal.json",
+]
+
+if (is_chromeos) {
+ schema_files += [
+ "diagnostics.idl",
+ "networking_config.idl",
+ "vpn_provider.idl",
+ "webcam_private.idl",
+ ]
+}
+
+uncompiled_sources = [ "web_request_internal.json" ]
+
+uncompiled_bundle_schema_sources = [
+ "declarative_web_request.json",
+ "web_view_request.json",
+]
+
+root_namespace = "extensions::api::%(namespace)s"
+
json_schema_api("generated_api") {
+ sources = schema_files
schemas = true
bundle = true
bundle_name = ""
+
+ # Inherit uncompiled_sources, uncompiled_bundle_schema_sources, and
+ # root_namespace.
}
-# GYP version: extensions/common/api/api.gyp:extensions_api_mojom
mojom("mojom") {
- sources = []
sources = [
"mime_handler.mojom",
]
@@ -25,7 +94,6 @@ mojom("mojom") {
use_new_wrapper_types = false
}
-# GYP version: extensions/common/api/api.gyp:extensions_api
group("api") {
public_deps = [
":generated_api",
@@ -33,8 +101,8 @@ group("api") {
]
}
-# GYP version: extensions/browser/api/api_registration.gyp:extensions_api_registration
json_schema_api("api_registration") {
+ sources = schema_files
impl_dir = "//extensions/browser/api"
bundle_registration = true
bundle_name = ""
@@ -45,4 +113,7 @@ json_schema_api("api_registration") {
"//extensions/common/api/cast_channel:cast_channel_proto",
"//skia",
]
+
+ # Inherit uncompiled_sources, uncompiled_bundle_schema_sources, and
+ # root_namespace.
}
« no previous file with comments | « extensions/common/BUILD.gn ('k') | extensions/common/api/api.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698