OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/json_schema_api.gni") | 6 import("//build/json_schema_api.gni") |
7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
8 import("schemas.gni") | |
9 | 8 |
10 assert(enable_extensions) | 9 assert(enable_extensions) |
11 | 10 |
| 11 schema_files = [ |
| 12 "alarms.idl", |
| 13 "app_current_window_internal.idl", |
| 14 "app_runtime.idl", |
| 15 "app_view_guest_internal.json", |
| 16 "app_window.idl", |
| 17 "audio.idl", |
| 18 "bluetooth.idl", |
| 19 "bluetooth_private.idl", |
| 20 "bluetooth_socket.idl", |
| 21 "cast_channel.idl", |
| 22 "clipboard.idl", |
| 23 "document_scan.idl", |
| 24 "display_source.idl", |
| 25 "dns.idl", |
| 26 "events.json", |
| 27 "extensions_manifest_types.json", |
| 28 "extension_options_internal.idl", |
| 29 "extension_view_internal.json", |
| 30 "extension_types.json", |
| 31 "guest_view_internal.json", |
| 32 "management.json", |
| 33 "hid.idl", |
| 34 "idle.json", |
| 35 "mime_handler_private.idl", |
| 36 "mime_handler_view_guest_internal.json", |
| 37 "mojo_private.idl", |
| 38 "networking_private.idl", |
| 39 "power.idl", |
| 40 "printer_provider.idl", |
| 41 "printer_provider_internal.idl", |
| 42 "runtime.json", |
| 43 "serial.idl", |
| 44 "socket.idl", |
| 45 "sockets_tcp.idl", |
| 46 "sockets_tcp_server.idl", |
| 47 "sockets_udp.idl", |
| 48 "storage.json", |
| 49 "system_cpu.idl", |
| 50 "system_display.idl", |
| 51 "system_memory.idl", |
| 52 "system_network.idl", |
| 53 "system_storage.idl", |
| 54 "test.json", |
| 55 "usb.idl", |
| 56 "virtual_keyboard_private.json", |
| 57 "web_request.json", |
| 58 "web_view_internal.json", |
| 59 ] |
| 60 |
| 61 if (is_chromeos) { |
| 62 schema_files += [ |
| 63 "diagnostics.idl", |
| 64 "networking_config.idl", |
| 65 "vpn_provider.idl", |
| 66 "webcam_private.idl", |
| 67 ] |
| 68 } |
| 69 |
| 70 uncompiled_sources = [ "web_request_internal.json" ] |
| 71 |
| 72 uncompiled_bundle_schema_sources = [ |
| 73 "declarative_web_request.json", |
| 74 "web_view_request.json", |
| 75 ] |
| 76 |
| 77 root_namespace = "extensions::api::%(namespace)s" |
| 78 |
12 json_schema_api("generated_api") { | 79 json_schema_api("generated_api") { |
| 80 sources = schema_files |
13 schemas = true | 81 schemas = true |
14 bundle = true | 82 bundle = true |
15 bundle_name = "" | 83 bundle_name = "" |
| 84 |
| 85 # Inherit uncompiled_sources, uncompiled_bundle_schema_sources, and |
| 86 # root_namespace. |
16 } | 87 } |
17 | 88 |
18 # GYP version: extensions/common/api/api.gyp:extensions_api_mojom | |
19 mojom("mojom") { | 89 mojom("mojom") { |
20 sources = [] | |
21 sources = [ | 90 sources = [ |
22 "mime_handler.mojom", | 91 "mime_handler.mojom", |
23 ] | 92 ] |
24 | 93 |
25 use_new_wrapper_types = false | 94 use_new_wrapper_types = false |
26 } | 95 } |
27 | 96 |
28 # GYP version: extensions/common/api/api.gyp:extensions_api | |
29 group("api") { | 97 group("api") { |
30 public_deps = [ | 98 public_deps = [ |
31 ":generated_api", | 99 ":generated_api", |
32 ":mojom", | 100 ":mojom", |
33 ] | 101 ] |
34 } | 102 } |
35 | 103 |
36 # GYP version: extensions/browser/api/api_registration.gyp:extensions_api_regist
ration | |
37 json_schema_api("api_registration") { | 104 json_schema_api("api_registration") { |
| 105 sources = schema_files |
38 impl_dir = "//extensions/browser/api" | 106 impl_dir = "//extensions/browser/api" |
39 bundle_registration = true | 107 bundle_registration = true |
40 bundle_name = "" | 108 bundle_name = "" |
41 | 109 |
42 deps = [ | 110 deps = [ |
43 ":api", | 111 ":api", |
44 "//device/serial", | 112 "//device/serial", |
45 "//extensions/common/api/cast_channel:cast_channel_proto", | 113 "//extensions/common/api/cast_channel:cast_channel_proto", |
46 "//skia", | 114 "//skia", |
47 ] | 115 ] |
| 116 |
| 117 # Inherit uncompiled_sources, uncompiled_bundle_schema_sources, and |
| 118 # root_namespace. |
48 } | 119 } |
OLD | NEW |