| 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 # These duplicate other lists and are the only ones used on Android. They | |
| 11 # should be eliminated. See crbug.com/305852. | |
| 12 'android_schema_files': [ | |
| 13 'manifest_types.json', | |
| 14 ], | |
| 15 | |
| 16 # These are used everywhere except Android. | |
| 17 'main_schema_files': [ | |
| 18 'accessibility_private.json', | |
| 19 'activity_log_private.json', | |
| 20 'alarms.idl', | |
| 21 'app_current_window_internal.idl', | |
| 22 'app_window.idl', | |
| 23 'audio.idl', | |
| 24 'automation.idl', | |
| 25 'automation_internal.idl', | |
| 26 'autotest_private.idl', | |
| 27 'bluetooth.idl', | |
| 28 'bluetooth_low_energy.idl', | |
| 29 'bluetooth_private.json', | |
| 30 'bluetooth_socket.idl', | |
| 31 'bookmark_manager_private.json', | |
| 32 'bookmarks.json', | |
| 33 'braille_display_private.idl', | |
| 34 'browser.idl', | |
| 35 'cloud_print_private.json', | |
| 36 'command_line_private.json', | |
| 37 'content_settings.json', | |
| 38 'context_menus_internal.json', | |
| 39 'context_menus.json', | |
| 40 'cookies.json', | |
| 41 'copresence.idl', | |
| 42 'copresence_private.idl', | |
| 43 'debugger.json', | |
| 44 'desktop_capture.json', | |
| 45 'developer_private.idl', | |
| 46 'dial.idl', | |
| 47 'downloads.idl', | |
| 48 'downloads_internal.idl', | |
| 49 'easy_unlock_private.idl', | |
| 50 'echo_private.json', | |
| 51 'enterprise_platform_keys_private.json', | |
| 52 'events.json', | |
| 53 'experience_sampling_private.json', | |
| 54 'extension_options_internal.idl', | |
| 55 'feedback_private.idl', | |
| 56 'file_browser_private.idl', | |
| 57 'file_browser_private_internal.idl', | |
| 58 'file_system.idl', | |
| 59 'file_system_provider.idl', | |
| 60 'file_system_provider_internal.idl', | |
| 61 'font_settings.json', | |
| 62 'gcd_private.idl', | |
| 63 'gcm.json', | |
| 64 'guest_view_internal.json', | |
| 65 'hangouts_private.idl', | |
| 66 'history.json', | |
| 67 'hotword_private.idl', | |
| 68 'i18n.json', | |
| 69 'identity.idl', | |
| 70 'identity_private.idl', | |
| 71 'idle.json', | |
| 72 'image_writer_private.idl', | |
| 73 'input_ime.json', | |
| 74 'location.idl', | |
| 75 'management.json', | |
| 76 'manifest_types.json', | |
| 77 'mdns.idl', | |
| 78 'media_galleries.idl', | |
| 79 'media_galleries_private.idl', | |
| 80 'metrics_private.json', | |
| 81 'networking_private.json', | |
| 82 'notification_provider.idl', | |
| 83 'notifications.idl', | |
| 84 'omnibox.json', | |
| 85 'page_capture.json', | |
| 86 'permissions.json', | |
| 87 'preferences_private.json', | |
| 88 'push_messaging.idl', | |
| 89 'reading_list_private.json', | |
| 90 'screenlock_private.idl', | |
| 91 'sessions.json', | |
| 92 'signed_in_devices.idl', | |
| 93 'streams_private.idl', | |
| 94 'synced_notifications_private.idl', | |
| 95 'sync_file_system.idl', | |
| 96 'system_cpu.idl', | |
| 97 'system_display.idl', | |
| 98 'system_indicator.idl', | |
| 99 'system_memory.idl', | |
| 100 'system_network.idl', | |
| 101 'system_private.json', | |
| 102 'system_storage.idl', | |
| 103 'tab_capture.idl', | |
| 104 'tabs.json', | |
| 105 'terminal_private.json', | |
| 106 'types.json', | |
| 107 'virtual_keyboard_private.json', | |
| 108 'web_navigation.json', | |
| 109 'web_request.json', | |
| 110 # Despite the name, this API does not rely on any | |
| 111 # WebRTC-specific bits and as such does not belong in | |
| 112 # the enable_webrtc==0 section below. | |
| 113 'webrtc_audio_private.idl', | |
| 114 'webrtc_logging_private.idl', | |
| 115 'webstore_private.json', | |
| 116 'web_view_internal.json', | |
| 117 'windows.json', | |
| 118 ], | |
| 119 'main_non_compiled_schema_files': [ | |
| 120 'browsing_data.json', | |
| 121 'chromeos_info_private.json', | |
| 122 'extension.json', | |
| 123 'idltest.idl', | |
| 124 'infobars.json', | |
| 125 'media_player_private.json', | |
| 126 'music_manager_private.idl', | |
| 127 'principals_private.idl', | |
| 128 'top_sites.json', | |
| 129 'web_request_internal.json', | |
| 130 ], | |
| 131 | |
| 132 # ChromeOS-specific schemas. | |
| 133 'chromeos_schema_files': [ | |
| 134 'accessibility_features.json', | |
| 135 'diagnostics.idl', | |
| 136 'enterprise_platform_keys.idl', | |
| 137 'enterprise_platform_keys_internal.idl', | |
| 138 'file_browser_handler_internal.json', | |
| 139 'first_run_private.json', | |
| 140 'log_private.idl', | |
| 141 'wallpaper.json', | |
| 142 'wallpaper_private.json', | |
| 143 'webcam_private.idl', | |
| 144 ], | |
| 145 'chromeos_branded_schema_files': [ | |
| 146 'ledger/ledger.idl', | |
| 147 ], | |
| 148 | |
| 149 'webrtc_schema_files': [ | |
| 150 'cast_streaming_rtp_stream.idl', | |
| 151 'cast_streaming_session.idl', | |
| 152 'cast_streaming_udp_transport.idl', | |
| 153 ], | |
| 154 | |
| 155 'chromium_code': 1, | |
| 156 # Disable schema compiler to generate model extension API code. | |
| 157 # Only register the extension functions in extension system. | |
| 158 'conditions': [ | |
| 159 ['enable_extensions==1', { | |
| 160 'non_compiled_schema_files': [ | |
| 161 '<@(main_non_compiled_schema_files)', | |
| 162 ], | |
| 163 'schema_files': [ | |
| 164 '<@(main_schema_files)', | |
| 165 ], | |
| 166 }, { # enable_extensions==0 | |
| 167 'non_compiled_schema_files': [ | |
| 168 ], | |
| 169 'schema_files': [ | |
| 170 # These should be eliminated. See crbug.com/305852. | |
| 171 '<@(android_schema_files)', | |
| 172 ], | |
| 173 }], | |
| 174 ['chromeos==1', { | |
| 175 'schema_files': [ | |
| 176 '<@(chromeos_schema_files)', | |
| 177 ], | |
| 178 }], | |
| 179 ['enable_extensions==1 and enable_webrtc==1', { | |
| 180 'schema_files': [ | |
| 181 '<@(webrtc_schema_files)', | |
| 182 ], | |
| 183 }], | |
| 184 ['branding=="Chrome" and chromeos==1', { | |
| 185 'schema_files': [ | |
| 186 '<@(chromeos_branded_schema_files)', | |
| 187 ], | |
| 188 }], | |
| 189 ], | |
| 190 'cc_dir': 'chrome/common/extensions/api', | |
| 191 'root_namespace': 'extensions::api::%(namespace)s', | |
| 192 'impl_dir_': 'chrome/browser/extensions/api', | |
| 193 }, | |
| 194 } | |
| OLD | NEW |