summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/api.gyp
blob: 7d143d8b7aba7fbb9111371c3487a181cc77ad1c (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# 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': [
        '<@(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,
        'conditions': [
          ['OS!="android"', {
            'schema_files': [
              'activity_log_private.json',
              'adview.json',
              'alarms.idl',
              'app_current_window_internal.idl',
              'app_runtime.idl',
              'app_window.idl',
              'audio.idl',
              'autotest_private.idl',
              'bluetooth.idl',
              'bookmark_manager_private.json',
              'bookmarks.json',
              'braille_display_private.idl',
              'browsing_data.json',
              'cast_channel.idl',
              'chromeos_info_private.json',
              'cloud_print_private.json',
              'command_line_private.json',
              'content_settings.json',
              'context_menus.json',
              'cookies.json',
              'debugger.json',
              'desktop_capture.json',
              'developer_private.idl',
              'dial.idl',
              'dns.idl',
              'downloads.idl',
              'downloads_internal.idl',
              'echo_private.json',
              'enterprise_platform_keys_private.json',
              'events.json',
              'experimental_accessibility.json',
              'experimental_discovery.idl',
              'experimental_history.json',
              'experimental_identity.idl',
              'extension.json',
              'feedback_private.idl',
              'file_browser_private.json',
              'file_system.idl',
              'font_settings.json',
              'hangouts_private.idl',
              'history.json',
              'i18n.json',
              'identity.idl',
              'identity_private.idl',
              'idle.json',
              'idltest.idl',
              'image_writer_private.idl',
              'infobars.json',
              'input_ime.json',
              'location.idl',
              'management.json',
              'manifest_types.json',
              'mdns.idl',
              'media_galleries.idl',
              'media_galleries_private.idl',
              'media_player_private.json',
              'metrics_private.json',
              'music_manager_private.idl',
              'networking_private.json',
              'notifications.idl',
              'omnibox.json',
              'page_capture.json',
              'permissions.json',
              'power.idl',
              'preferences_private.json',
              'principals_private.idl',
              'push_messaging.idl',
              'runtime.json',
              'serial.idl',
              'sessions.json',
              'signed_in_devices.idl',
              'socket.idl',
              'sockets_tcp.idl',
              'sockets_tcp_server.idl',
              'sockets_udp.idl',
              'storage.json',
              'sync_file_system.idl',
              'system_cpu.idl',
              'system_display.idl',
              'system_indicator.idl',
              'system_memory.idl',
              'system_private.json',
              'system_storage.idl',
              'tab_capture.idl',
              'tabs.json',
              'terminal_private.json',
              'test.json',
              'top_sites.json',
              'usb.idl',
              'virtual_keyboard_private.json',
              'web_navigation.json',
              'web_request.json',
              'webstore_private.json',
              'webview.json',
              'windows.json',
            ],
          }, {  # OS=="android"
              'schema_files': [
                # These should be eliminated. See crbug.com/305852.
                'activity_log_private.json',
                'alarms.idl',
                'app_runtime.idl',
                'app_window.idl',
                'context_menus.json',
                'downloads.idl',
                'events.json',
                'feedback_private.idl',
                'file_system.idl',
                'manifest_types.json',
                'omnibox.json',
                'permissions.json',
                'runtime.json',
                'storage.json',
                'sync_file_system.idl',
                'tab_capture.idl',
                'tabs.json',
                'web_navigation.json',
                'web_request.json',
                'windows.json',
              ],
          }],
          ['chromeos==1', {
            'schema_files': [
              'diagnostics.idl',
              'file_browser_handler_internal.json',
              'log_private.idl',
              'wallpaper.json',
              'wallpaper_private.json',
            ],
          }],
          ['enable_webrtc==1', {
            'schema_files': [
              'webrtc_cast_send_transport.idl',
              'webrtc_cast_udp_transport.idl',
              'webrtc_logging_private.idl',
            ],
          }],
        ],
        'cc_dir': 'chrome/common/extensions/api',
        'root_namespace': 'extensions::api',
      },
      'dependencies': [
        '<(DEPTH)/skia/skia.gyp:skia',
        '<(DEPTH)/sync/sync.gyp:sync',
      ],
      'conditions': [
        ['chromeos==1', {
          'dependencies': [
            '<(DEPTH)/chrome/chrome.gyp:drive_proto',
          ],
        }],
      ],
    },
  ],
}