summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/api.gyp
blob: 76c69bbab7898e521f9cd910c4be3d71748ef040 (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
# 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': [
          'browserAction.json',
          'declarative.json',
          'experimental.record.json',
          'experimental.fontSettings.json',
          'permissions.json',
          'storage.json',
          'tabs.json',
          'windows.json',
        ],
        'idl_schema_files': [
          'alarms.idl',
          'experimental.bluetooth.idl',
          'experimental.dns.idl',
          'experimental.idltest.idl',
          'experimental.serial.idl',
          'experimental.socket.idl',
          'experimental.usb.idl',
        ],
        'cc_dir': 'chrome/common/extensions/api',
        'root_namespace': 'extensions::api',
      },
      'conditions': [
        ['OS=="android"', {
          'idl_schema_files!': [
            'experimental.usb.idl',
          ],
        }],
      ],
    },
  ],
}