summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/api.gyp
blob: 1184700bc3082b65b20064b6602eed3cbd50fb6c (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
# Copyright (c) 2012 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.

{
  'targets': [
    {
      'target_name': 'api',
      'type': 'static_library',
      'sources': [
        '<@(idl_schema_files)',
        '<@(json_schema_files)',
      ],
      'includes': [
        '../../../../build/json_schema_bundle_compile.gypi',
        '../../../../build/json_schema_compile.gypi',
      ],
      'variables': {
        'chromium_code': 1,
        'json_schema_files': [
          'content_settings.json',
          'cookies.json',
          'debugger.json',
          'events.json',
          'experimental_record.json',
          'file_browser_handler_internal.json',
          'i18n.json',
          'font_settings.json',
          'history.json',
          'page_capture.json',
          'permissions.json',
          'storage.json',
          'tabs.json',
          'web_navigation.json',
          'windows.json',
        ],
        'idl_schema_files': [
          'alarms.idl',
          'app_window.idl',
          'downloads.idl',
          'experimental_bluetooth.idl',
          'experimental_discovery.idl',
          'experimental_dns.idl',
          'experimental_identity.idl',
          'experimental_idltest.idl',
          'experimental_media_galleries.idl',
          'experimental_serial.idl',
          'experimental_usb.idl',
          'file_system.idl',
          'media_galleries.idl',
          'socket.idl',
        ],
        'cc_dir': 'chrome/common/extensions/api',
        'root_namespace': 'extensions::api',
      },
      'conditions': [
        ['OS=="android"', {
          'idl_schema_files!': [
            'experimental_usb.idl',
          ],
        }],
        ['OS!="chromeos"', {
          'json_schema_files!': [
            'file_browser_handler_internal.json',
          ],
        }],
      ],
    },
  ],
}