Chromium Code Reviews| 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 import("//build/config/features.gni") | |
| 6 | |
| 7 # GYP version: extensions/extensions.gyp:extensions_browser | |
| 8 source_set("browser") { | |
| 9 sources = [ | |
| 10 "admin_policy.cc", | |
| 11 "admin_policy.h", | |
| 12 # NOTE: When moving an API out of Chrome be sure to verify that the | |
| 13 # Android build still compiles. See conditions below. | |
| 14 "api/api_resource.cc", | |
| 15 "api/api_resource.h", | |
| 16 "api/api_resource_manager.h", | |
| 17 "api/app_runtime/app_runtime_api.cc", | |
| 18 "api/app_runtime/app_runtime_api.h", | |
| 19 "api/app_view/app_view_internal_api.cc", | |
| 20 "api/app_view/app_view_internal_api.h", | |
| 21 "api/async_api_function.cc", | |
| 22 "api/async_api_function.h", | |
| 23 "api/dns/dns_api.cc", | |
| 24 "api/dns/dns_api.h", | |
| 25 "api/dns/host_resolver_wrapper.cc", | |
| 26 "api/dns/host_resolver_wrapper.h", | |
| 27 "api/extensions_api_client.cc", | |
| 28 "api/extensions_api_client.h", | |
| 29 "api/power/power_api.cc", | |
| 30 "api/power/power_api.h", | |
| 31 "api/power/power_api_manager.cc", | |
| 32 "api/power/power_api_manager.h", | |
| 33 "api/runtime/runtime_api.cc", | |
| 34 "api/runtime/runtime_api.h", | |
| 35 "api/runtime/runtime_api_delegate.cc", | |
| 36 "api/runtime/runtime_api_delegate.h", | |
| 37 "api/serial/serial_api.cc", | |
| 38 "api/serial/serial_api.h", | |
| 39 "api/serial/serial_connection.cc", | |
| 40 "api/serial/serial_connection.h", | |
| 41 "api/serial/serial_event_dispatcher.cc", | |
| 42 "api/serial/serial_event_dispatcher.h", | |
| 43 "api/socket/socket.cc", | |
| 44 "api/socket/socket.h", | |
| 45 "api/socket/socket_api.cc", | |
| 46 "api/socket/socket_api.h", | |
| 47 "api/socket/tcp_socket.cc", | |
| 48 "api/socket/tcp_socket.h", | |
| 49 "api/socket/udp_socket.cc", | |
| 50 "api/socket/udp_socket.h", | |
| 51 "api/sockets_tcp/sockets_tcp_api.cc", | |
| 52 "api/sockets_tcp/sockets_tcp_api.h", | |
| 53 "api/sockets_tcp/tcp_socket_event_dispatcher.cc", | |
| 54 "api/sockets_tcp/tcp_socket_event_dispatcher.h", | |
| 55 "api/sockets_tcp_server/sockets_tcp_server_api.cc", | |
| 56 "api/sockets_tcp_server/sockets_tcp_server_api.h", | |
| 57 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc", | |
| 58 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h", | |
| 59 "api/sockets_udp/sockets_udp_api.cc", | |
| 60 "api/sockets_udp/sockets_udp_api.h", | |
| 61 "api/sockets_udp/udp_socket_event_dispatcher.cc", | |
| 62 "api/sockets_udp/udp_socket_event_dispatcher.h", | |
| 63 "api/storage/leveldb_settings_storage_factory.cc", | |
| 64 "api/storage/leveldb_settings_storage_factory.h", | |
| 65 "api/storage/local_value_store_cache.cc", | |
| 66 "api/storage/local_value_store_cache.h", | |
| 67 "api/storage/settings_namespace.cc", | |
| 68 "api/storage/settings_namespace.h", | |
| 69 "api/storage/settings_observer.h", | |
| 70 "api/storage/settings_storage_factory.h", | |
| 71 "api/storage/settings_storage_quota_enforcer.cc", | |
| 72 "api/storage/settings_storage_quota_enforcer.h", | |
| 73 "api/storage/storage_api.cc", | |
| 74 "api/storage/storage_api.h", | |
| 75 "api/storage/storage_frontend.cc", | |
| 76 "api/storage/storage_frontend.h", | |
| 77 "api/storage/value_store_cache.cc", | |
| 78 "api/storage/value_store_cache.h", | |
| 79 "api/storage/weak_unlimited_settings_storage.cc", | |
| 80 "api/storage/weak_unlimited_settings_storage.h", | |
| 81 "api/test/test_api.cc", | |
| 82 "api/test/test_api.h", | |
| 83 "api/usb/usb_api.cc", | |
| 84 "api/usb/usb_api.h", | |
| 85 "api/usb/usb_device_resource.cc", | |
| 86 "api/usb/usb_device_resource.h", | |
| 87 "api_activity_monitor.h", | |
| 88 "app_sorting.h", | |
| 89 "blacklist_state.h", | |
| 90 "blob_holder.cc", | |
| 91 "blob_holder.h", | |
| 92 "browser_context_keyed_api_factory.h", | |
| 93 "browser_context_keyed_service_factories.cc", | |
| 94 "browser_context_keyed_service_factories.h", | |
| 95 "component_extension_resource_manager.h", | |
| 96 "computed_hashes.cc", | |
| 97 "computed_hashes.h", | |
| 98 "content_hash_fetcher.cc", | |
| 99 "content_hash_fetcher.h", | |
| 100 "content_hash_reader.cc", | |
| 101 "content_hash_reader.h", | |
| 102 "content_hash_tree.cc", | |
| 103 "content_hash_tree.h", | |
| 104 "content_verifier.cc", | |
| 105 "content_verifier.h", | |
| 106 "content_verifier_delegate.h", | |
| 107 "content_verifier_io_data.cc", | |
| 108 "content_verifier_io_data.h", | |
| 109 "content_verify_job.cc", | |
| 110 "content_verify_job.h", | |
| 111 "error_map.cc", | |
| 112 "error_map.h", | |
| 113 "event_listener_map.cc", | |
| 114 "event_listener_map.h", | |
| 115 "event_router.cc", | |
| 116 "event_router.h", | |
| 117 "extension_host.cc", | |
| 118 "extension_host.h", | |
| 119 "extension_host_delegate.h", | |
| 120 "extension_error.cc", | |
| 121 "extension_error.h", | |
| 122 "extension_function.cc", | |
| 123 "extension_function.h", | |
| 124 "extension_function_dispatcher.cc", | |
| 125 "extension_function_dispatcher.h", | |
| 126 "extension_function_registry.cc", | |
| 127 "extension_function_registry.h", | |
| 128 "extension_function_util.cc", | |
| 129 "extension_function_util.h", | |
| 130 "extension_icon_image.cc", | |
| 131 "extension_icon_image.h", | |
| 132 "extension_message_filter.cc", | |
| 133 "extension_message_filter.h", | |
| 134 "extension_pref_store.cc", | |
| 135 "extension_pref_store.h", | |
| 136 "extension_pref_value_map.cc", | |
| 137 "extension_pref_value_map_factory.cc", | |
| 138 "extension_pref_value_map_factory.h", | |
| 139 "extension_pref_value_map.h", | |
| 140 "extension_prefs.cc", | |
| 141 "extension_prefs.h", | |
| 142 "extension_prefs_factory.cc", | |
| 143 "extension_prefs_factory.h", | |
| 144 "extension_prefs_observer.h", | |
| 145 "extension_prefs_scope.h", | |
| 146 "extension_protocols.cc", | |
| 147 "extension_protocols.h", | |
| 148 "extension_registry.cc", | |
| 149 "extension_registry.h", | |
| 150 "extension_registry_factory.cc", | |
| 151 "extension_registry_factory.h", | |
| 152 "extension_registry_observer.h", | |
| 153 "extension_scoped_prefs.h", | |
| 154 "extension_system.cc", | |
| 155 "extension_system.h", | |
| 156 "extension_system_provider.cc", | |
| 157 "extension_system_provider.h", | |
| 158 "extension_util.cc", | |
| 159 "extension_util.h", | |
| 160 "extension_web_contents_observer.cc", | |
| 161 "extension_web_contents_observer.h", | |
| 162 "extensions_browser_client.cc", | |
| 163 "extensions_browser_client.h", | |
| 164 "external_provider_interface.h", | |
| 165 "granted_file_entry.cc", | |
| 166 "granted_file_entry.h", | |
| 167 "image_loader.cc", | |
| 168 "image_loader.h", | |
| 169 "image_loader_factory.cc", | |
| 170 "image_loader_factory.h", | |
| 171 "image_util.cc", | |
| 172 "image_util.h", | |
| 173 "info_map.cc", | |
| 174 "info_map.h", | |
| 175 "install_flag.h", | |
| 176 "file_highlighter.cc", | |
| 177 "file_highlighter.h", | |
| 178 "file_reader.cc", | |
| 179 "file_reader.h", | |
| 180 "lazy_background_task_queue.cc", | |
| 181 "lazy_background_task_queue.h", | |
| 182 "management_policy.cc", | |
| 183 "management_policy.h", | |
| 184 "pref_names.cc", | |
| 185 "pref_names.h", | |
| 186 "process_manager.cc", | |
| 187 "process_manager.h", | |
| 188 "process_manager_delegate.h", | |
| 189 "process_manager_observer.h", | |
| 190 "process_map.cc", | |
| 191 "process_map.h", | |
| 192 "process_map_factory.cc", | |
| 193 "process_map_factory.h", | |
| 194 "quota_service.cc", | |
| 195 "quota_service.h", | |
| 196 "renderer_startup_helper.cc", | |
| 197 "renderer_startup_helper.h", | |
| 198 "runtime_data.cc", | |
| 199 "runtime_data.h", | |
| 200 "state_store.cc", | |
| 201 "state_store.h", | |
| 202 "uninstall_reason.h", | |
| 203 "update_observer.h", | |
| 204 "value_store/leveldb_value_store.cc", | |
| 205 "value_store/leveldb_value_store.h", | |
| 206 "value_store/testing_value_store.cc", | |
| 207 "value_store/testing_value_store.h", | |
| 208 "value_store/value_store.cc", | |
| 209 "value_store/value_store.h", | |
| 210 "value_store/value_store_change.cc", | |
| 211 "value_store/value_store_change.h", | |
| 212 "value_store/value_store_frontend.cc", | |
| 213 "value_store/value_store_frontend.h", | |
| 214 "value_store/value_store_util.cc", | |
| 215 "value_store/value_store_util.h", | |
| 216 "verified_contents.cc", | |
| 217 "verified_contents.h", | |
| 218 "view_type_utils.cc", | |
| 219 "view_type_utils.h", | |
| 220 ] | |
| 221 | |
| 222 deps = [ | |
| 223 "//components/keyed_service/content", | |
| 224 "//components/keyed_service/core", | |
| 225 "//components/pref_registry", | |
| 226 "//components/usb_service", | |
| 227 "//content/public/browser", | |
| 228 "//device/serial", | |
| 229 "//extensions/common", | |
| 230 "//extensions/common/api", | |
| 231 "//extensions/strings", | |
| 232 "//skia", | |
| 233 "//third_party/leveldatabase", | |
| 234 ] | |
| 235 | |
| 236 if (!enable_extensions) { | |
| 237 # Exclude all API implementations and the ExtensionsApiClient | |
| 238 # interface. Moving an API from src/chrome to src/extensions implies | |
| 239 # it can be cleanly disabled with enable_extensions==0. | |
| 240 # TODO: Eventually the entire extensions module should not be built | |
| 241 # when enable_extensions==0. | |
| 242 sources -= [ | |
|
brettw
2014/07/24 22:26:12
Personally I think it would be clearer to invert t
tfarina
2014/07/26 02:05:13
Done.
| |
| 243 "api/api_resource.cc", | |
| 244 "api/api_resource.h", | |
| 245 "api/api_resource_manager.h", | |
| 246 "api/app_runtime/app_runtime_api.cc", | |
| 247 "api/app_runtime/app_runtime_api.h", | |
| 248 "api/app_view/app_view_internal_api.cc", | |
| 249 "api/app_view/app_view_internal_api.h", | |
| 250 "api/async_api_function.cc", | |
| 251 "api/async_api_function.h", | |
| 252 "api/dns/dns_api.cc", | |
| 253 "api/dns/dns_api.h", | |
| 254 "api/dns/host_resolver_wrapper.cc", | |
| 255 "api/dns/host_resolver_wrapper.h", | |
| 256 "api/extensions_api_client.cc", | |
| 257 "api/extensions_api_client.h", | |
| 258 "api/power/power_api.cc", | |
| 259 "api/power/power_api.h", | |
| 260 "api/power/power_api_manager.cc", | |
| 261 "api/power/power_api_manager.h", | |
| 262 "api/runtime/runtime_api.cc", | |
| 263 "api/runtime/runtime_api.h", | |
| 264 "api/runtime/runtime_api_delegate.cc", | |
| 265 "api/runtime/runtime_api_delegate.h", | |
| 266 "api/serial/serial_api.cc", | |
| 267 "api/serial/serial_api.h", | |
| 268 "api/serial/serial_connection.cc", | |
| 269 "api/serial/serial_connection.h", | |
| 270 "api/serial/serial_event_dispatcher.cc", | |
| 271 "api/serial/serial_event_dispatcher.h", | |
| 272 "api/socket/socket.cc", | |
| 273 "api/socket/socket.h", | |
| 274 "api/socket/socket_api.cc", | |
| 275 "api/socket/socket_api.h", | |
| 276 "api/socket/tcp_socket.cc", | |
| 277 "api/socket/tcp_socket.h", | |
| 278 "api/socket/udp_socket.cc", | |
| 279 "api/socket/udp_socket.h", | |
| 280 "api/sockets_tcp/sockets_tcp_api.cc", | |
| 281 "api/sockets_tcp/sockets_tcp_api.h", | |
| 282 "api/sockets_tcp/tcp_socket_event_dispatcher.cc", | |
| 283 "api/sockets_tcp/tcp_socket_event_dispatcher.h", | |
| 284 "api/sockets_tcp_server/sockets_tcp_server_api.cc", | |
| 285 "api/sockets_tcp_server/sockets_tcp_server_api.h", | |
| 286 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc", | |
| 287 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h", | |
| 288 "api/sockets_udp/sockets_udp_api.cc", | |
| 289 "api/sockets_udp/sockets_udp_api.h", | |
| 290 "api/sockets_udp/udp_socket_event_dispatcher.cc", | |
| 291 "api/sockets_udp/udp_socket_event_dispatcher.h", | |
| 292 "api/storage/leveldb_settings_storage_factory.cc", | |
| 293 "api/storage/leveldb_settings_storage_factory.h", | |
| 294 "api/storage/local_value_store_cache.cc", | |
| 295 "api/storage/local_value_store_cache.h", | |
| 296 "api/storage/settings_namespace.cc", | |
| 297 "api/storage/settings_namespace.h", | |
| 298 "api/storage/settings_observer.h", | |
| 299 "api/storage/settings_storage_factory.h", | |
| 300 "api/storage/settings_storage_quota_enforcer.cc", | |
| 301 "api/storage/settings_storage_quota_enforcer.h", | |
| 302 "api/storage/storage_api.cc", | |
| 303 "api/storage/storage_api.h", | |
| 304 "api/storage/storage_frontend.cc", | |
| 305 "api/storage/storage_frontend.h", | |
| 306 "api/storage/value_store_cache.cc", | |
| 307 "api/storage/value_store_cache.h", | |
| 308 "api/storage/weak_unlimited_settings_storage.cc", | |
| 309 "api/storage/weak_unlimited_settings_storage.h", | |
| 310 "api/test/test_api.cc", | |
| 311 "api/test/test_api.h", | |
| 312 "api/usb/usb_api.cc", | |
| 313 "api/usb/usb_api.h", | |
| 314 "api/usb/usb_device_resource.cc", | |
| 315 "api/usb/usb_device_resource.h", | |
| 316 "browser_context_keyed_service_factories.cc", | |
| 317 "browser_context_keyed_service_factories.h", | |
| 318 ] | |
| 319 | |
| 320 deps -= [ | |
| 321 "//components/usb_service", | |
| 322 "//device/serial", | |
| 323 ] | |
| 324 } | |
| 325 | |
| 326 if (is_win) { | |
| 327 cflags = [ | |
| 328 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 329 ] | |
| 330 } | |
| 331 } | |
| OLD | NEW |