Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / schemas.gypi
1 # Copyright 2014 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   'sources': [
7     '<@(schema_files)',
8   ],
9   'variables': {
10     'main_schema_files': [
11       'accessibility_private.json',
12       'activity_log_private.json',
13       'alarms.idl',
14       'audio.idl',
15       'automation.idl',
16       'automation_internal.idl',
17       'autotest_private.idl',
18       'bookmark_manager_private.json',
19       'bookmarks.json',
20       'braille_display_private.idl',
21       'browser.idl',
22       'chrome_web_view_internal.json',
23       'cloud_print_private.json',
24       'command_line_private.json',
25       'content_settings.json',
26       'context_menus_internal.json',
27       'context_menus.json',
28       'cookies.json',
29       'copresence.idl',
30       'copresence_private.idl',
31       'debugger.json',
32       'desktop_capture.json',
33       'developer_private.idl',
34       'dial.idl',
35       'document_scan.idl',
36       'downloads.idl',
37       'downloads_internal.idl',
38       'easy_unlock_private.idl',
39       'echo_private.json',
40       'enterprise_platform_keys_private.json',
41       'experience_sampling_private.json',
42       'feedback_private.idl',
43       'file_manager_private.idl',
44       'file_manager_private_internal.idl',
45       'file_system.idl',
46       'file_system_provider.idl',
47       'file_system_provider_internal.idl',
48       'font_settings.json',
49       'gcd_private.idl',
50       'gcm.json',
51       'hangouts_private.idl',
52       'history.json',
53       'hotword_private.idl',
54       'i18n.json',
55       'identity.idl',
56       'identity_private.idl',
57       'idle.json',
58       'image_writer_private.idl',
59       'input_ime.json',
60       'location.idl',
61       'manifest_types.json',
62       'mdns.idl',
63       'media_galleries.idl',
64       'media_galleries_private.idl',
65       'metrics_private.json',
66       'networking_private.json',
67       'notification_provider.idl',
68       'notifications.idl',
69       'omnibox.json',
70       'page_capture.json',
71       'permissions.json',
72       'preferences_private.json',
73       'printer_provider.idl',
74       'push_messaging.idl',
75       'reading_list_private.json',
76       'screenlock_private.idl',
77       'sessions.json',
78       'signed_in_devices.idl',
79       'streams_private.idl',
80       'synced_notifications_private.idl',
81       'sync_file_system.idl',
82       'system_indicator.idl',
83       'system_private.json',
84       'tab_capture.idl',
85       'tabs.json',
86       'terminal_private.json',
87       'types.json',
88       'web_navigation.json',
89       # Despite the name, this API does not rely on any
90       # WebRTC-specific bits and as such does not belong in
91       # the enable_webrtc==0 section below.
92       'webrtc_audio_private.idl',
93       'webrtc_logging_private.idl',
94       'webstore_private.json',
95       'windows.json',
96     ],
97     'main_schema_include_rules': [
98       'extensions/common/api:extensions::core_api::%(namespace)s',
99     ],
100     'main_non_compiled_schema_files': [
101       'browsing_data.json',
102       'chromeos_info_private.json',
103       'extension.json',
104       'idltest.idl',
105       'infobars.json',
106       'media_player_private.json',
107       'music_manager_private.idl',
108       'principals_private.idl',
109       'top_sites.json',
110     ],
111
112     # ChromeOS-specific schemas.
113     'chromeos_schema_files': [
114       'accessibility_features.json',
115       'diagnostics.idl',
116       'enterprise_platform_keys.idl',
117       'enterprise_platform_keys_internal.idl',
118       'file_browser_handler_internal.json',
119       'first_run_private.json',
120       'log_private.idl',
121     ],
122
123     # ChromeOS-specific schemas which have not been ported to Athena.
124     'chromeos_non_athena_schema_files': [
125       'wallpaper.json',
126       'wallpaper_private.json',
127     ],
128
129     'webrtc_schema_files': [
130       'cast_streaming_rtp_stream.idl',
131       'cast_streaming_session.idl',
132       'cast_streaming_udp_transport.idl',
133     ],
134
135     'non_compiled_schema_files': [
136       '<@(main_non_compiled_schema_files)',
137     ],
138     'schema_dependencies': [
139       '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
140     ],
141     'schema_files': [
142       '<@(main_schema_files)',
143     ],
144     'schema_include_rules': [
145       '<@(main_schema_include_rules)',
146     ],
147
148     'chromium_code': 1,
149     # Disable schema compiler to generate model extension API code.
150     # Only register the extension functions in extension system.
151     'conditions': [
152       ['chromeos==1', {
153         'schema_files': [
154           '<@(chromeos_schema_files)',
155         ],
156         'conditions': [
157           ['use_athena==0', {
158             'schema_files': [
159               '<@(chromeos_non_athena_schema_files)',
160             ],
161           }],
162         ],
163       }],
164       ['enable_webrtc==1', {
165         'schema_files': [
166           '<@(webrtc_schema_files)',
167         ],
168       }],
169     ],
170     'cc_dir': 'chrome/common/extensions/api',
171     'root_namespace': 'extensions::api::%(namespace)s',
172     'impl_dir_': 'chrome/browser/extensions/api',
173   },
174 }