Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / api.gyp
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.
4
5 {
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               'accessibility_private.json',
40               'activity_log_private.json',
41               'alarms.idl',
42               'app_current_window_internal.idl',
43               'app_window.idl',
44               'audio.idl',
45               'automation_internal.idl',
46               'automation.idl',
47               'autotest_private.idl',
48               'bluetooth.idl',
49               'bluetooth_low_energy.idl',
50               'bluetooth_private.json',
51               'bluetooth_socket.idl',
52               'bookmark_manager_private.json',
53               'bookmarks.json',
54               'browser.idl',
55               'braille_display_private.idl',
56               'cast_channel.idl',
57               'cloud_print_private.json',
58               'command_line_private.json',
59               'content_settings.json',
60               'context_menus.json',
61               'context_menus_internal.json',
62               'cookies.json',
63               'debugger.json',
64               'desktop_capture.json',
65               'developer_private.idl',
66               'dial.idl',
67               'downloads.idl',
68               'downloads_internal.idl',
69               'echo_private.json',
70               'enterprise_platform_keys_private.json',
71               'events.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               'screenlock_private.idl',
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                 'sync_file_system.idl',
149                 'tab_capture.idl',
150                 'tabs.json',
151                 'types.json',
152                 'webview.json',
153                 'web_navigation.json',
154                 'web_request.json',
155                 'windows.json',
156               ],
157           }],
158           ['chromeos==1', {
159             'schema_files': [
160               'accessibility_features.json',
161               'diagnostics.idl',
162               'file_browser_handler_internal.json',
163               'first_run_private.json',
164               'log_private.idl',
165               'wallpaper.json',
166               'wallpaper_private.json',
167               'webcam_private.idl',
168             ],
169           }],
170           ['enable_webrtc==1', {
171             'schema_files': [
172               'cast_streaming_rtp_stream.idl',
173               'cast_streaming_session.idl',
174               'cast_streaming_udp_transport.idl',
175             ],
176           }],
177         ],
178         'cc_dir': 'chrome/common/extensions/api',
179         'root_namespace': 'extensions::api',
180       },
181       'dependencies': [
182         '<(DEPTH)/content/content.gyp:content_browser',
183         '<(DEPTH)/skia/skia.gyp:skia',
184         '<(DEPTH)/sync/sync.gyp:sync',
185       ],
186       'conditions': [
187         ['chromeos==1', {
188           'dependencies': [
189             '<(DEPTH)/chrome/chrome.gyp:drive_proto',
190           ],
191         }],
192       ],
193     },
194   ],
195 }