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
3# found in the LICENSE file.
4
5{
6  'sources': [
7    '<@(schema_files)',
8  ],
9  'variables': {
10    'chromium_code': 1,
11    'main_schema_files': [
12      'app_current_window_internal.idl',
13      'app_runtime.idl',
14      'app_view_internal.json',
15      'app_window.idl',
16      'bluetooth.idl',
17      'bluetooth_low_energy.idl',
18      'bluetooth_private.json',
19      'bluetooth_socket.idl',
20      'cast_channel.idl',
21      'dns.idl',
22      'events.json',
23      'extensions_manifest_types.json',
24      'extension_options_internal.idl',
25      'extension_types.json',
26      'guest_view_internal.json',
27      'hid.idl',
28      'mime_handler_view_guest_internal.json',
29      'power.idl',
30      'runtime.json',
31      'serial.idl',
32      'socket.idl',
33      'sockets_tcp.idl',
34      'sockets_tcp_server.idl',
35      'sockets_udp.idl',
36      'storage.json',
37      'system_cpu.idl',
38      'system_display.idl',
39      'system_memory.idl',
40      'system_network.idl',
41      'system_storage.idl',
42      'test.json',
43      'usb.idl',
44      'usb_private.idl',
45      'web_request.json',
46      'web_view_internal.json',
47    ],
48    'non_compiled_schema_files': [
49    ],
50    'main_non_compiled_schema_files': [
51      'web_request_internal.json',
52    ],
53    # TODO(thestig) Do not include this file in non-extensions builds.
54    # Then the conditional and else block can go away.
55    # Do the same for extensions/common/api/schemas.gni.
56    'conditions': [
57      ['enable_extensions==1', {
58        'non_compiled_schema_files': [
59          '<@(main_non_compiled_schema_files)',
60        ],
61        'schema_files': [
62          '<@(main_schema_files)',
63        ],
64      }, {
65        'schema_files': [
66        ],
67      }],
68    ],
69    'cc_dir': 'extensions/common/api',
70    'root_namespace': 'extensions::core_api::%(namespace)s',
71    'impl_dir_': 'extensions/browser/api',
72  },
73}
74