summaryrefslogtreecommitdiffstats
path: root/extensions/common/api/schemas.gypi
blob: 3ee747fce0894e82e9e6fd08b7c2106a39b2a227 (plain)
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
# 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.

{
  'sources': [
    '<@(schema_files)',
  ],
  'variables': {
    'chromium_code': 1,
    'main_schema_files': [
      'app_current_window_internal.idl',
      'app_runtime.idl',
      'app_view_internal.json',
      'app_window.idl',
      'bluetooth.idl',
      'bluetooth_low_energy.idl',
      'bluetooth_private.json',
      'bluetooth_socket.idl',
      'cast_channel.idl',
      'copresence_socket.idl',
      'dns.idl',
      'events.json',
      'extensions_manifest_types.json',
      'extension_options_internal.idl',
      'extension_types.json',
      'guest_view_internal.json',
      'hid.idl',
      'mime_handler_view_guest_internal.json',
      'power.idl',
      'runtime.json',
      'serial.idl',
      'shell_private.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',
      'web_request.json',
      'web_view_internal.json',
    ],
    'non_compiled_schema_files': [
    ],
    'main_non_compiled_schema_files': [
      'web_request_internal.json',
    ],
    # TODO(thestig) Do not include this file in non-extensions builds.
    # Then the conditional and else block can go away.
    # Do the same for extensions/common/api/schemas.gni.
    'conditions': [
      ['enable_extensions==1', {
        'non_compiled_schema_files': [
          '<@(main_non_compiled_schema_files)',
        ],
        'schema_files': [
          '<@(main_schema_files)',
        ],
      }, {
        'schema_files': [
        ],
      }],
    ],
    'cc_dir': 'extensions/common/api',
    'root_namespace': 'extensions::core_api::%(namespace)s',
    'impl_dir_': 'extensions/browser/api',
  },
}