Upstream version 5.34.104.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': '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           'streams_private.idl',
34           'top_sites.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_runtime.idl',
43               'app_window.idl',
44               'audio.idl',
45               'autotest_private.idl',
46               'bluetooth.idl',
47               'bookmark_manager_private.json',
48               'bookmarks.json',
49               'braille_display_private.idl',
50               'cast_channel.idl',
51               'cloud_print_private.json',
52               'command_line_private.json',
53               'content_settings.json',
54               'context_menus.json',
55               'cookies.json',
56               'debugger.json',
57               'desktop_capture.json',
58               'developer_private.idl',
59               'dial.idl',
60               'dns.idl',
61               'downloads.idl',
62               'downloads_internal.idl',
63               'echo_private.json',
64               'enterprise_platform_keys_private.json',
65               'events.json',
66               'experimental_accessibility.json',
67               'feedback_private.idl',
68               'file_browser_private.idl',
69               'file_system.idl',
70               'file_system_provider.idl',
71               'font_settings.json',
72               'gcm.json',
73               'hangouts_private.idl',
74               'hid.idl',
75               'history.json',
76               'hotword_private.idl',
77               'i18n.json',
78               'identity.idl',
79               'identity_private.idl',
80               'idle.json',
81               'image_writer_private.idl',
82               'input_ime.json',
83               'location.idl',
84               'management.json',
85               'manifest_types.json',
86               'mdns.idl',
87               'media_galleries.idl',
88               'media_galleries_private.idl',
89               'metrics_private.json',
90               'networking_private.json',
91               'notifications.idl',
92               'omnibox.json',
93               'page_capture.json',
94               'permissions.json',
95               'preferences_private.json',
96               'power.idl',
97               'push_messaging.idl',
98               'reading_list_private.json',
99               'runtime.json',
100               'serial.idl',
101               'sessions.json',
102               'signed_in_devices.idl',
103               'socket.idl',
104               'sockets_tcp.idl',
105               'sockets_tcp_server.idl',
106               'sockets_udp.idl',
107               'storage.json',
108               'sync_file_system.idl',
109               'system_cpu.idl',
110               'system_display.idl',
111               'system_indicator.idl',
112               'system_memory.idl',
113               'system_network.idl',
114               'system_private.json',
115               'system_storage.idl',
116               'tab_capture.idl',
117               'tabs.json',
118               'terminal_private.json',
119               'test.json',
120               'types.json',
121               'usb.idl',
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_runtime.idl',
140                 'app_window.idl',
141                 'context_menus.json',
142                 'downloads.idl',
143                 'events.json',
144                 'feedback_private.idl',
145                 'file_system.idl',
146                 'manifest_types.json',
147                 'omnibox.json',
148                 'permissions.json',
149                 'runtime.json',
150                 'storage.json',
151                 'sync_file_system.idl',
152                 'tab_capture.idl',
153                 'tabs.json',
154                 'types.json',
155                 'web_navigation.json',
156                 'web_request.json',
157                 'windows.json',
158               ],
159           }],
160           ['chromeos==1', {
161             'schema_files': [
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             ],
170           }],
171           ['enable_webrtc==1', {
172             'schema_files': [
173               'cast_streaming_rtp_stream.idl',
174               'cast_streaming_session.idl',
175               'cast_streaming_udp_transport.idl',
176             ],
177           }],
178         ],
179         'cc_dir': 'chrome/common/extensions/api',
180         'root_namespace': 'extensions::api',
181       },
182       'dependencies': [
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 }