summaryrefslogtreecommitdiffstats
path: root/extensions/common/api/api.gyp
blob: f5c34799a3fe81c0e90fed9b051ac77e8d3f6e2c (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
# 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.

{
  'targets': [
    {
      'target_name': 'extensions_api',
      'type': 'static_library',
      'sources': [
        '<@(schema_files)',
      ],
      # TODO(jschuh): http://crbug.com/167187 size_t -> int
      'msvs_disabled_warnings': [ 4267 ],
      'includes': [
        '../../../build/json_schema_bundle_compile.gypi',
        '../../../build/json_schema_compile.gypi',
      ],
      'variables': {
        'chromium_code': 1,
        'non_compiled_schema_files': [
        ],
        'conditions': [
          ['enable_extensions==1', {
            'schema_files': [
              'app_runtime.idl',
              'app_view_internal.json',
              'dns.idl',
              'extensions_manifest_types.json',
              'power.idl',
              'runtime.json',
              'serial.idl',
              'socket.idl',
              'sockets_tcp.idl',
              'sockets_tcp_server.idl',
              'sockets_udp.idl',
              'storage.json',
              'test.json',
              'usb.idl',
            ],
          }, {
            # TODO: Eliminate these on Android. See crbug.com/305852.
            'schema_files': [
              'extensions_manifest_types.json',
              'runtime.json',
            ],
          }],
        ],
        'cc_dir': 'extensions/common/api',
        'root_namespace': 'extensions::core_api',
        'impl_dir': 'extensions/browser/api',
      },
      'dependencies': [
        '<(DEPTH)/device/serial/serial.gyp:device_serial',
        '<(DEPTH)/skia/skia.gyp:skia',
      ],
    },
  ],
}