| OLD | NEW |
| (Empty) |
| 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_features.json', | |
| 12 'accessibility_private.json', | |
| 13 'activity_log_private.json', | |
| 14 'autofill_private.idl', | |
| 15 'automation.idl', | |
| 16 'automation_internal.idl', | |
| 17 'autotest_private.idl', | |
| 18 'bluetooth_low_energy.idl', | |
| 19 'bookmark_manager_private.json', | |
| 20 'bookmarks.json', | |
| 21 'braille_display_private.idl', | |
| 22 'browser.idl', | |
| 23 'chrome_web_view_internal.json', | |
| 24 'cloud_print_private.json', | |
| 25 'command_line_private.json', | |
| 26 'content_settings.json', | |
| 27 'context_menus_internal.json', | |
| 28 'context_menus.json', | |
| 29 'cookies.json', | |
| 30 'cryptotoken_private.idl', | |
| 31 'dashboard_private.json', | |
| 32 'data_reduction_proxy.json', | |
| 33 'debugger.json', | |
| 34 'desktop_capture.json', | |
| 35 'developer_private.idl', | |
| 36 'dial.idl', | |
| 37 'downloads.idl', | |
| 38 'downloads_internal.idl', | |
| 39 'easy_unlock_private.idl', | |
| 40 'experience_sampling_private.json', | |
| 41 'feedback_private.idl', | |
| 42 'file_system.idl', | |
| 43 'font_settings.json', | |
| 44 'gcm.json', | |
| 45 'history.json', | |
| 46 'hotword_private.idl', | |
| 47 'i18n.json', | |
| 48 'identity.idl', | |
| 49 'identity_private.idl', | |
| 50 'image_writer_private.idl', | |
| 51 'inline_install_private.idl', | |
| 52 'instance_id.json', | |
| 53 'language_settings_private.idl', | |
| 54 'manifest_types.json', | |
| 55 'media_galleries.idl', | |
| 56 'metrics_private.json', | |
| 57 'notification_provider.idl', | |
| 58 'notifications.idl', | |
| 59 'omnibox.json', | |
| 60 'page_capture.json', | |
| 61 'passwords_private.idl', | |
| 62 'permissions.json', | |
| 63 'preferences_private.json', | |
| 64 'quick_unlock_private.idl', | |
| 65 'resources_private.idl', | |
| 66 'screenlock_private.idl', | |
| 67 'sessions.json', | |
| 68 'settings_private.idl', | |
| 69 'signed_in_devices.idl', | |
| 70 'streams_private.idl', | |
| 71 'sync_file_system.idl', | |
| 72 'system_indicator.idl', | |
| 73 'system_private.json', | |
| 74 'tab_capture.idl', | |
| 75 'tabs.json', | |
| 76 'types.json', | |
| 77 'web_navigation.json', | |
| 78 # Despite the name, this API does not rely on any | |
| 79 # WebRTC-specific bits and as such does not belong in | |
| 80 # the enable_webrtc==0 section below. | |
| 81 'webrtc_audio_private.idl', | |
| 82 'webrtc_desktop_capture_private.idl', | |
| 83 'webrtc_logging_private.idl', | |
| 84 'webstore_private.json', | |
| 85 'webstore_widget_private.idl', | |
| 86 'windows.json', | |
| 87 ], | |
| 88 'main_schema_include_rules': [ | |
| 89 'extensions/common/api:extensions::api::%(namespace)s', | |
| 90 ], | |
| 91 'main_non_compiled_schema_files': [ | |
| 92 'browsing_data.json', | |
| 93 'extension.json', | |
| 94 'idltest.idl', | |
| 95 'music_manager_private.idl', | |
| 96 'top_sites.json', | |
| 97 ], | |
| 98 | |
| 99 # ChromeOS-specific schemas. | |
| 100 'chromeos_schema_files': [ | |
| 101 'cast_devices_private.idl', | |
| 102 'certificate_provider.idl', | |
| 103 'certificate_provider_internal.idl', | |
| 104 'echo_private.json', | |
| 105 'enterprise_device_attributes.idl', | |
| 106 'enterprise_platform_keys.idl', | |
| 107 'enterprise_platform_keys_internal.idl', | |
| 108 'enterprise_platform_keys_private.json', | |
| 109 'file_browser_handler_internal.json', | |
| 110 'file_manager_private.idl', | |
| 111 'file_manager_private_internal.idl', | |
| 112 'file_system_provider.idl', | |
| 113 'file_system_provider_internal.idl', | |
| 114 'first_run_private.json', | |
| 115 'input_ime.json', | |
| 116 'input_method_private.json', | |
| 117 'launcher_search_provider.idl', | |
| 118 'log_private.idl', | |
| 119 'platform_keys.idl', | |
| 120 'platform_keys_internal.idl', | |
| 121 'terminal_private.json', | |
| 122 'users_private.idl', | |
| 123 'wallpaper.json', | |
| 124 'wallpaper_private.json', | |
| 125 ], | |
| 126 'chromeos_non_compiled_schema_files': [ | |
| 127 'chromeos_info_private.json', | |
| 128 'media_player_private.json', | |
| 129 ], | |
| 130 | |
| 131 'service_discovery_schema_files': [ | |
| 132 'gcd_private.idl', | |
| 133 'mdns.idl', | |
| 134 ], | |
| 135 | |
| 136 'webrtc_schema_files': [ | |
| 137 'cast_streaming_receiver_session.idl', | |
| 138 'cast_streaming_rtp_stream.idl', | |
| 139 'cast_streaming_session.idl', | |
| 140 'cast_streaming_udp_transport.idl', | |
| 141 ], | |
| 142 'app_list_schema_files': [ | |
| 143 # TODO(tapted): Move this into chromeos_schema_files. | |
| 144 'launcher_page.idl', | |
| 145 ], | |
| 146 | |
| 147 'task_manager_dependent_schema_files': [ | |
| 148 'processes.idl', | |
| 149 ], | |
| 150 | |
| 151 # Input IME schema. | |
| 152 'input_ime_schema_file': [ | |
| 153 'input_ime.json', | |
| 154 ], | |
| 155 | |
| 156 'non_compiled_schema_files': [ | |
| 157 '<@(main_non_compiled_schema_files)', | |
| 158 ], | |
| 159 | |
| 160 'non_compiled_bundle_schema_files': [ | |
| 161 'app.json', | |
| 162 'browser_action.json', | |
| 163 'commands.json', | |
| 164 'declarative_content.json', | |
| 165 'file_browser_handler.json', | |
| 166 'page_action.json', | |
| 167 'privacy.json', | |
| 168 'proxy.json', | |
| 169 'tts_engine.json', | |
| 170 'tts.json', | |
| 171 'types_private.json', | |
| 172 'webstore.json', | |
| 173 ], | |
| 174 | |
| 175 # On ChromeOS, input_method_private is fully compiled (as part of | |
| 176 # schema_files), and so gets added to the bundle already. On other | |
| 177 # platforms, we still need it added to the bundle. | |
| 178 # TODO(devlin): That's weird. Investigate. | |
| 179 'non_chromeos_non_compiled_bundle_schema_files': [ | |
| 180 'input_method_private.json', | |
| 181 ], | |
| 182 | |
| 183 'schema_dependencies': [ | |
| 184 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api', | |
| 185 ], | |
| 186 'schema_files': [ | |
| 187 '<@(main_schema_files)', | |
| 188 ], | |
| 189 'schema_include_rules': [ | |
| 190 '<@(main_schema_include_rules)', | |
| 191 ], | |
| 192 | |
| 193 'chromium_code': 1, | |
| 194 # Disable schema compiler to generate model extension API code. | |
| 195 # Only register the extension functions in extension system. | |
| 196 'conditions': [ | |
| 197 ['enable_task_manager==1', { | |
| 198 'schema_files': [ | |
| 199 '<@(task_manager_dependent_schema_files)', | |
| 200 ], | |
| 201 }], | |
| 202 ['chromeos==1', { | |
| 203 'schema_files': [ | |
| 204 '<@(chromeos_schema_files)', | |
| 205 ], | |
| 206 'non_compiled_schema_files': [ | |
| 207 '<@(chromeos_non_compiled_schema_files)', | |
| 208 ], | |
| 209 }, { # chromeos==0 | |
| 210 'conditions': [ | |
| 211 ['OS=="linux" or OS=="win"', { | |
| 212 'schema_files': [ | |
| 213 '<@(input_ime_schema_file)', | |
| 214 ], | |
| 215 }], | |
| 216 ], | |
| 217 }], | |
| 218 ['enable_service_discovery==1', { | |
| 219 'schema_files': [ | |
| 220 '<@(service_discovery_schema_files)', | |
| 221 ], | |
| 222 }], | |
| 223 ['enable_webrtc==1', { | |
| 224 'schema_files': [ | |
| 225 '<@(webrtc_schema_files)', | |
| 226 ], | |
| 227 }], | |
| 228 ['enable_app_list==1', { | |
| 229 'schema_files': [ | |
| 230 '<@(app_list_schema_files)', | |
| 231 ], | |
| 232 }], | |
| 233 ], | |
| 234 'cc_dir': 'chrome/common/extensions/api', | |
| 235 'root_namespace': 'extensions::api::%(namespace)s', | |
| 236 'bundle_name': 'Chrome', | |
| 237 'impl_dir_': 'chrome/browser/extensions/api', | |
| 238 }, | |
| 239 } | |
| OLD | NEW |