Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / common / extensions / api / api.gyp
blobf701e84898bbaca3a953002dac45c29e82f5dfd7
1 # Copyright (c) 2012 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.
6   'targets': [
7     {
8       'target_name': 'chrome_api',
9       'type': 'static_library',
10       'sources': [
11         '<@(schema_files)',
12       ],
13       # TODO(jschuh): http://crbug.com/167187 size_t -> int
14       'msvs_disabled_warnings': [ 4267 ],
15       'includes': [
16         '../../../../build/json_schema_bundle_compile.gypi',
17         '../../../../build/json_schema_compile.gypi',
18       ],
19       'variables': {
20         'chromium_code': 1,
21         # Disable schema compiler to generate model extension API code.
22         # Only register the extension functions in extension system.
23         'non_compiled_schema_files': [
24           'adview.json',
25           'browsing_data.json',
26           'chromeos_info_private.json',
27           'extension.json',
28           'idltest.idl',
29           'infobars.json',
30           'media_player_private.json',
31           'music_manager_private.idl',
32           'principals_private.idl',
33           'top_sites.json',
34           'web_request_internal.json',
35         ],
36         'conditions': [
37           ['OS!="android"', {
38             'schema_files': [
39               'activity_log_private.json',
40               'alarms.idl',
41               'app_current_window_internal.idl',
42               'app_window.idl',
43               'audio.idl',
44               'automation_internal.idl',
45               'automation.idl',
46               'autotest_private.idl',
47               'bluetooth.idl',
48               'bluetooth_low_energy.idl',
49               'bluetooth_private.json',
50               'bluetooth_socket.idl',
51               'bookmark_manager_private.json',
52               'bookmarks.json',
53               'browser.idl',
54               'braille_display_private.idl',
55               'cast_channel.idl',
56               'cloud_print_private.json',
57               'command_line_private.json',
58               'content_settings.json',
59               'context_menus.json',
60               'context_menus_internal.json',
61               'cookies.json',
62               'debugger.json',
63               'desktop_capture.json',
64               'developer_private.idl',
65               'dial.idl',
66               'downloads.idl',
67               'downloads_internal.idl',
68               'echo_private.json',
69               'enterprise_platform_keys_private.json',
70               'events.json',
71               'experimental_accessibility.json',
72               'feedback_private.idl',
73               'file_browser_private.idl',
74               'file_system.idl',
75               'file_system_provider.idl',
76               'file_system_provider_internal.idl',
77               'font_settings.json',
78               'gcm.json',
79               'hangouts_private.idl',
80               'hid.idl',
81               'history.json',
82               'hotword_private.idl',
83               'i18n.json',
84               'identity.idl',
85               'identity_private.idl',
86               'idle.json',
87               'image_writer_private.idl',
88               'input_ime.json',
89               'location.idl',
90               'management.json',
91               'manifest_types.json',
92               'mdns.idl',
93               'media_galleries.idl',
94               'media_galleries_private.idl',
95               'metrics_private.json',
96               'networking_private.json',
97               'notifications.idl',
98               'omnibox.json',
99               'page_capture.json',
100               'permissions.json',
101               'preferences_private.json',
102               'power.idl',
103               'push_messaging.idl',
104               'reading_list_private.json',
105               'runtime.json',
106               'serial.idl',
107               'sessions.json',
108               'signed_in_devices.idl',
109               'streams_private.idl',
110               'sync_file_system.idl',
111               'system_cpu.idl',
112               'system_display.idl',
113               'system_indicator.idl',
114               'system_memory.idl',
115               'system_network.idl',
116               'system_private.json',
117               'system_storage.idl',
118               'tab_capture.idl',
119               'tabs.json',
120               'terminal_private.json',
121               'types.json',
122               'virtual_keyboard_private.json',
123               'web_navigation.json',
124               'web_request.json',
125               # Despite the name, this API does not rely on any
126               # WebRTC-specific bits and as such does not belong in
127               # the enable_webrtc=0 section below.
128               'webrtc_audio_private.idl',
129               'webrtc_logging_private.idl',
130               'webstore_private.json',
131               'webview.json',
132               'windows.json',
133             ],
134           }, {  # OS=="android"
135               'schema_files': [
136                 # These should be eliminated. See crbug.com/305852.
137                 'activity_log_private.json',
138                 'alarms.idl',
139                 'app_window.idl',
140                 'context_menus.json',
141                 'downloads.idl',
142                 'events.json',
143                 'feedback_private.idl',
144                 'file_system.idl',
145                 'manifest_types.json',
146                 'omnibox.json',
147                 'permissions.json',
148                 'runtime.json',
149                 'sync_file_system.idl',
150                 'tab_capture.idl',
151                 'tabs.json',
152                 'types.json',
153                 'webview.json',
154                 'web_navigation.json',
155                 'web_request.json',
156                 'windows.json',
157               ],
158           }],
159           ['chromeos==1', {
160             'schema_files': [
161               'accessibility_features.json',
162               'diagnostics.idl',
163               'file_browser_handler_internal.json',
164               'first_run_private.json',
165               'log_private.idl',
166               'screenlock_private.idl',
167               'wallpaper.json',
168               'wallpaper_private.json',
169               'webcam_private.idl',
170             ],
171           }],
172           ['enable_webrtc==1', {
173             'schema_files': [
174               'cast_streaming_rtp_stream.idl',
175               'cast_streaming_session.idl',
176               'cast_streaming_udp_transport.idl',
177             ],
178           }],
179         ],
180         'cc_dir': 'chrome/common/extensions/api',
181         'root_namespace': 'extensions::api',
182       },
183       'dependencies': [
184         '<(DEPTH)/content/content.gyp:content_browser',
185         '<(DEPTH)/skia/skia.gyp:skia',
186         '<(DEPTH)/sync/sync.gyp:sync',
187       ],
188       'conditions': [
189         ['chromeos==1', {
190           'dependencies': [
191             '<(DEPTH)/chrome/chrome.gyp:drive_proto',
192           ],
193         }],
194       ],
195     },
196   ],