File: schema.gni

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (133 lines) | stat: -rw-r--r-- 3,763 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//extensions/buildflags/buildflags.gni")

# APIs and features included in both normal desktop builds and the experimental
# desktop-android build.
# TODO(https://crbug.com/356905053): Continue moving more here.
extensions_api_schema_files_ = [
  "alarms.idl",
  "declarative_net_request.idl",
  "events.json",
  "extension_types.json",
  "file_handlers.idl",
  "i18n.json",
  "idle.json",
  "management.json",
  "metrics_private.json",
  "offscreen.idl",
  "power.idl",
  "runtime.json",
  "storage.json",
  "system_cpu.idl",
  "system_memory.idl",
  "system_network.idl",
  "test.json",
  "types.json",
  "user_scripts.idl",
  "web_request.json",
]

# Schemas that should be used only to auto-generate the C++ types.
# In many cases, this includes schemas used to generate types used in manifest
# parsing.
extensions_types_only_schema_files_ = [
  "content_scripts.idl",
  "cross_origin_isolation.idl",
  "extensions_manifest_types.json",
  "incognito.json",
  "oauth2.idl",
  "requirements.json",
  "shared_module.idl",
  "web_accessible_resources_mv2.idl",
  "web_accessible_resources.idl",
]

# APIs that are not currently supported on the experimental desktop-android.
if (enable_extensions) {
  extensions_api_schema_files_ += [
    "app_current_window_internal.idl",
    "app_runtime.idl",
    "app_view_guest_internal.json",
    "app_window.idl",
    "audio.idl",
    "automation_internal.idl",
    "automation.idl",
    "bluetooth_low_energy.idl",
    "bluetooth_private.idl",
    "bluetooth_socket.idl",
    "bluetooth.idl",
    "cec_private.idl",
    "clipboard.idl",
    "dns.idl",
    "extension_options_internal.idl",
    "feedback_private.idl",
    "file_system.idl",
    "guest_view_internal.json",
    "hid.idl",
    "icon_variants.idl",
    "mime_handler_private.idl",
    "mime_handler_view_guest_internal.json",
    "mojo_private.idl",
    "networking_private.idl",
    "printer_provider_internal.idl",
    "printer_provider.idl",
    "scripts_internal.idl",
    "serial.idl",
    "socket.idl",
    "sockets_tcp_server.idl",
    "sockets_tcp.idl",
    "sockets_udp.idl",
    "system_display.idl",
    "system_storage.idl",
    "usb.idl",
    "virtual_keyboard_private.json",
    "virtual_keyboard.idl",
    "web_view_internal.json",
  ]

  if (is_chromeos) {
    extensions_api_schema_files_ += [
      "diagnostics.idl",
      "media_perception_private.idl",
      "webcam_private.idl",
    ]
  }
}

# In the experimental desktop-android configuration, we still need to compile
# the C++ types for certain APIs, since they are used from outside the
# extensions layer. These should be removed as we add support for the full
# API by moving these entries to the `extensions_api_schema_files_` above.
if (enable_desktop_android_extensions) {
  extensions_types_only_schema_files_ += [
    "clipboard.idl",
    "icon_variants.idl",
    "scripts_internal.idl",
    "system_display.idl",
    "usb.idl",
    "virtual_keyboard_private.json",
    "virtual_keyboard.idl",
  ]
}

extensions_api_schema_files =
    get_path_info(extensions_api_schema_files_, "abspath")

extensions_types_only_schema_files =
    get_path_info(extensions_types_only_schema_files_, "abspath")

extensions_api_uncompiled_sources =
    get_path_info([ "web_request_internal.json" ], "abspath")

extensions_api_uncompiled_bundle_schema_sources =
    get_path_info([
                    "declarative_web_request.json",
                    "web_view_request.json",
                  ],
                  "abspath")

extensions_api_root_namespace = "extensions::api::%(namespace)s"