| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 | 7 |
| 8 # GYP version: extensions/extensions.gyp:extensions_browser | 8 # GYP version: extensions/extensions.gyp:extensions_browser |
| 9 source_set("browser") { | 9 source_set("browser") { |
| 10 sources = [ | 10 sources = [ |
| 11 "admin_policy.cc", | |
| 12 "admin_policy.h", | |
| 13 "api_activity_monitor.h", | |
| 14 "app_sorting.h", | |
| 15 "blacklist_state.h", | |
| 16 "blob_holder.cc", | |
| 17 "blob_holder.h", | |
| 18 "browser_context_keyed_api_factory.h", | |
| 19 "component_extension_resource_manager.h", | |
| 20 "computed_hashes.cc", | |
| 21 "computed_hashes.h", | |
| 22 "content_hash_fetcher.cc", | |
| 23 "content_hash_fetcher.h", | |
| 24 "content_hash_reader.cc", | |
| 25 "content_hash_reader.h", | |
| 26 "content_hash_tree.cc", | |
| 27 "content_hash_tree.h", | |
| 28 "content_verifier.cc", | |
| 29 "content_verifier.h", | |
| 30 "content_verifier_delegate.h", | |
| 31 "content_verifier_io_data.cc", | |
| 32 "content_verifier_io_data.h", | |
| 33 "content_verify_job.cc", | |
| 34 "content_verify_job.h", | |
| 35 "error_map.cc", | |
| 36 "error_map.h", | |
| 37 "event_listener_map.cc", | |
| 38 "event_listener_map.h", | |
| 39 "event_router.cc", | |
| 40 "event_router.h", | |
| 41 "extension_error.cc", | |
| 42 "extension_error.h", | |
| 43 "extension_function.cc", | |
| 44 "extension_function.h", | |
| 45 "extension_function_dispatcher.cc", | |
| 46 "extension_function_dispatcher.h", | |
| 47 "extension_function_registry.cc", | |
| 48 "extension_function_registry.h", | |
| 49 "extension_function_util.cc", | |
| 50 "extension_function_util.h", | |
| 51 "extension_host.cc", | |
| 52 "extension_host.h", | |
| 53 "extension_host_delegate.h", | |
| 54 "extension_icon_image.cc", | |
| 55 "extension_icon_image.h", | |
| 56 "extension_message_filter.cc", | |
| 57 "extension_message_filter.h", | |
| 58 "extension_pref_store.cc", | |
| 59 "extension_pref_store.h", | |
| 60 "extension_pref_value_map.cc", | |
| 61 "extension_pref_value_map.h", | |
| 62 "extension_pref_value_map_factory.cc", | |
| 63 "extension_pref_value_map_factory.h", | |
| 64 "extension_prefs.cc", | |
| 65 "extension_prefs.h", | |
| 66 "extension_prefs_factory.cc", | |
| 67 "extension_prefs_factory.h", | |
| 68 "extension_prefs_observer.h", | |
| 69 "extension_prefs_scope.h", | |
| 70 "extension_protocols.cc", | |
| 71 "extension_protocols.h", | |
| 72 "extension_registry.cc", | |
| 73 "extension_registry.h", | |
| 74 "extension_registry_factory.cc", | |
| 75 "extension_registry_factory.h", | |
| 76 "extension_registry_observer.h", | |
| 77 "extension_scoped_prefs.h", | |
| 78 "extension_system.cc", | |
| 79 "extension_system.h", | |
| 80 "extension_system_provider.cc", | |
| 81 "extension_system_provider.h", | |
| 82 "extension_util.cc", | |
| 83 "extension_util.h", | |
| 84 "extension_web_contents_observer.cc", | |
| 85 "extension_web_contents_observer.h", | |
| 86 "extensions_browser_client.cc", | |
| 87 "extensions_browser_client.h", | |
| 88 "external_provider_interface.h", | |
| 89 "file_highlighter.cc", | |
| 90 "file_highlighter.h", | |
| 91 "file_reader.cc", | |
| 92 "file_reader.h", | |
| 93 "granted_file_entry.cc", | |
| 94 "granted_file_entry.h", | |
| 95 "image_loader.cc", | |
| 96 "image_loader.h", | |
| 97 "image_loader_factory.cc", | |
| 98 "image_loader_factory.h", | |
| 99 "image_util.cc", | |
| 100 "image_util.h", | |
| 101 "info_map.cc", | |
| 102 "info_map.h", | |
| 103 "install_flag.h", | |
| 104 "lazy_background_task_queue.cc", | |
| 105 "lazy_background_task_queue.h", | |
| 106 "management_policy.cc", | |
| 107 "management_policy.h", | |
| 108 "pref_names.cc", | |
| 109 "pref_names.h", | |
| 110 "process_manager.cc", | |
| 111 "process_manager.h", | |
| 112 "process_manager_delegate.h", | |
| 113 "process_manager_observer.h", | |
| 114 "process_map.cc", | |
| 115 "process_map.h", | |
| 116 "process_map_factory.cc", | |
| 117 "process_map_factory.h", | |
| 118 "quota_service.cc", | |
| 119 "quota_service.h", | |
| 120 "renderer_startup_helper.cc", | |
| 121 "renderer_startup_helper.h", | |
| 122 "runtime_data.cc", | |
| 123 "runtime_data.h", | |
| 124 "state_store.cc", | |
| 125 "state_store.h", | |
| 126 "uninstall_reason.h", | |
| 127 "update_observer.h", | |
| 128 "value_store/leveldb_value_store.cc", | |
| 129 "value_store/leveldb_value_store.h", | |
| 130 "value_store/testing_value_store.cc", | |
| 131 "value_store/testing_value_store.h", | |
| 132 "value_store/value_store.cc", | |
| 133 "value_store/value_store.h", | |
| 134 "value_store/value_store_change.cc", | |
| 135 "value_store/value_store_change.h", | |
| 136 "value_store/value_store_frontend.cc", | |
| 137 "value_store/value_store_frontend.h", | |
| 138 "value_store/value_store_util.cc", | |
| 139 "value_store/value_store_util.h", | |
| 140 "verified_contents.cc", | |
| 141 "verified_contents.h", | |
| 142 "view_type_utils.cc", | |
| 143 "view_type_utils.h", | |
| 144 ] | 11 ] |
| 145 | 12 |
| 146 deps = [ | 13 deps = [ |
| 147 "//components/keyed_service/content", | 14 "//components/keyed_service/content", |
| 148 "//components/keyed_service/core", | 15 "//components/keyed_service/core", |
| 149 "//components/pref_registry", | 16 "//components/pref_registry", |
| 150 "//content/public/browser", | 17 "//content/public/browser", |
| 151 "//extensions/common", | 18 "//extensions/common", |
| 152 "//extensions/common/api", | 19 "//extensions/common/api", |
| 153 "//extensions/strings", | 20 "//extensions/strings", |
| 154 "//skia", | 21 "//skia", |
| 155 "//third_party/leveldatabase", | 22 "//third_party/leveldatabase", |
| 156 ] | 23 ] |
| 157 | 24 |
| 158 if (enable_extensions) { | 25 if (enable_extensions) { |
| 159 # Includes all API implementations and the ExtensionsApiClient | 26 # Includes all API implementations and the ExtensionsApiClient |
| 160 # interface. Moving an API from src/chrome to src/extensions implies | 27 # interface. Moving an API from src/chrome to src/extensions implies |
| 161 # it can be cleanly disabled with enable_extensions=false. | 28 # it can be cleanly disabled with enable_extensions=false. |
| 162 # TODO: Eventually the entire extensions module should not be built | 29 # TODO: Eventually the entire extensions module should not be built |
| 163 # when enable_extensions=false. | 30 # when enable_extensions=false. |
| 164 sources += [ | 31 sources += [ |
| 165 # NOTE: When moving an API out of Chrome be sure to verify that the | 32 "admin_policy.cc", |
| 166 # Android build still compiles. See conditions below. | 33 "admin_policy.h", |
| 167 "api/api_resource.cc", | 34 "api/api_resource.cc", |
| 168 "api/api_resource.h", | 35 "api/api_resource.h", |
| 169 "api/api_resource_manager.h", | 36 "api/api_resource_manager.h", |
| 170 "api/app_runtime/app_runtime_api.cc", | 37 "api/app_runtime/app_runtime_api.cc", |
| 171 "api/app_runtime/app_runtime_api.h", | 38 "api/app_runtime/app_runtime_api.h", |
| 172 "api/app_view/app_view_internal_api.cc", | 39 "api/app_view/app_view_internal_api.cc", |
| 173 "api/app_view/app_view_internal_api.h", | 40 "api/app_view/app_view_internal_api.h", |
| 174 "api/async_api_function.cc", | 41 "api/async_api_function.cc", |
| 175 "api/async_api_function.h", | 42 "api/async_api_function.h", |
| 176 "api/cast_channel/cast_auth_util.h", | 43 "api/cast_channel/cast_auth_util.h", |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 "api/storage/value_store_cache.cc", | 112 "api/storage/value_store_cache.cc", |
| 246 "api/storage/value_store_cache.h", | 113 "api/storage/value_store_cache.h", |
| 247 "api/storage/weak_unlimited_settings_storage.cc", | 114 "api/storage/weak_unlimited_settings_storage.cc", |
| 248 "api/storage/weak_unlimited_settings_storage.h", | 115 "api/storage/weak_unlimited_settings_storage.h", |
| 249 "api/test/test_api.cc", | 116 "api/test/test_api.cc", |
| 250 "api/test/test_api.h", | 117 "api/test/test_api.h", |
| 251 "api/usb/usb_api.cc", | 118 "api/usb/usb_api.cc", |
| 252 "api/usb/usb_api.h", | 119 "api/usb/usb_api.h", |
| 253 "api/usb/usb_device_resource.cc", | 120 "api/usb/usb_device_resource.cc", |
| 254 "api/usb/usb_device_resource.h", | 121 "api/usb/usb_device_resource.h", |
| 122 "api_activity_monitor.h", |
| 123 "app_sorting.h", |
| 124 "blacklist_state.h", |
| 125 "blob_holder.cc", |
| 126 "blob_holder.h", |
| 127 "browser_context_keyed_api_factory.h", |
| 255 "browser_context_keyed_service_factories.cc", | 128 "browser_context_keyed_service_factories.cc", |
| 256 "browser_context_keyed_service_factories.h", | 129 "browser_context_keyed_service_factories.h", |
| 130 "component_extension_resource_manager.h", |
| 131 "computed_hashes.cc", |
| 132 "computed_hashes.h", |
| 133 "content_hash_fetcher.cc", |
| 134 "content_hash_fetcher.h", |
| 135 "content_hash_reader.cc", |
| 136 "content_hash_reader.h", |
| 137 "content_hash_tree.cc", |
| 138 "content_hash_tree.h", |
| 139 "content_verifier.cc", |
| 140 "content_verifier.h", |
| 141 "content_verifier_delegate.h", |
| 142 "content_verifier_io_data.cc", |
| 143 "content_verifier_io_data.h", |
| 144 "content_verify_job.cc", |
| 145 "content_verify_job.h", |
| 146 "error_map.cc", |
| 147 "error_map.h", |
| 148 "event_listener_map.cc", |
| 149 "event_listener_map.h", |
| 150 "event_router.cc", |
| 151 "event_router.h", |
| 152 "extension_error.cc", |
| 153 "extension_error.h", |
| 154 "extension_function.cc", |
| 155 "extension_function.h", |
| 156 "extension_function_dispatcher.cc", |
| 157 "extension_function_dispatcher.h", |
| 158 "extension_function_registry.cc", |
| 159 "extension_function_registry.h", |
| 160 "extension_function_util.cc", |
| 161 "extension_function_util.h", |
| 162 "extension_host.cc", |
| 163 "extension_host.h", |
| 164 "extension_host_delegate.h", |
| 165 "extension_icon_image.cc", |
| 166 "extension_icon_image.h", |
| 167 "extension_message_filter.cc", |
| 168 "extension_message_filter.h", |
| 169 "extension_pref_store.cc", |
| 170 "extension_pref_store.h", |
| 171 "extension_pref_value_map.cc", |
| 172 "extension_pref_value_map.h", |
| 173 "extension_pref_value_map_factory.cc", |
| 174 "extension_pref_value_map_factory.h", |
| 175 "extension_prefs.cc", |
| 176 "extension_prefs.h", |
| 177 "extension_prefs_factory.cc", |
| 178 "extension_prefs_factory.h", |
| 179 "extension_prefs_observer.h", |
| 180 "extension_prefs_scope.h", |
| 181 "extension_protocols.cc", |
| 182 "extension_protocols.h", |
| 183 "extension_registry.cc", |
| 184 "extension_registry.h", |
| 185 "extension_registry_factory.cc", |
| 186 "extension_registry_factory.h", |
| 187 "extension_registry_observer.h", |
| 188 "extension_scoped_prefs.h", |
| 189 "extension_system.cc", |
| 190 "extension_system.h", |
| 191 "extension_system_provider.cc", |
| 192 "extension_system_provider.h", |
| 193 "extension_util.cc", |
| 194 "extension_util.h", |
| 195 "extension_web_contents_observer.cc", |
| 196 "extension_web_contents_observer.h", |
| 197 "extensions_browser_client.cc", |
| 198 "extensions_browser_client.h", |
| 199 "external_provider_interface.h", |
| 200 "file_highlighter.cc", |
| 201 "file_highlighter.h", |
| 202 "file_reader.cc", |
| 203 "file_reader.h", |
| 204 "granted_file_entry.cc", |
| 205 "granted_file_entry.h", |
| 206 "image_loader.cc", |
| 207 "image_loader.h", |
| 208 "image_loader_factory.cc", |
| 209 "image_loader_factory.h", |
| 210 "image_util.cc", |
| 211 "image_util.h", |
| 212 "info_map.cc", |
| 213 "info_map.h", |
| 214 "install_flag.h", |
| 215 "lazy_background_task_queue.cc", |
| 216 "lazy_background_task_queue.h", |
| 217 "management_policy.cc", |
| 218 "management_policy.h", |
| 219 "pref_names.cc", |
| 220 "pref_names.h", |
| 221 "process_manager.cc", |
| 222 "process_manager.h", |
| 223 "process_manager_delegate.h", |
| 224 "process_manager_observer.h", |
| 225 "process_map.cc", |
| 226 "process_map.h", |
| 227 "process_map_factory.cc", |
| 228 "process_map_factory.h", |
| 229 "quota_service.cc", |
| 230 "quota_service.h", |
| 231 "renderer_startup_helper.cc", |
| 232 "renderer_startup_helper.h", |
| 233 "runtime_data.cc", |
| 234 "runtime_data.h", |
| 235 "state_store.cc", |
| 236 "state_store.h", |
| 237 "uninstall_reason.h", |
| 238 "update_observer.h", |
| 239 "value_store/leveldb_value_store.cc", |
| 240 "value_store/leveldb_value_store.h", |
| 241 "value_store/testing_value_store.cc", |
| 242 "value_store/testing_value_store.h", |
| 243 "value_store/value_store.cc", |
| 244 "value_store/value_store.h", |
| 245 "value_store/value_store_change.cc", |
| 246 "value_store/value_store_change.h", |
| 247 "value_store/value_store_frontend.cc", |
| 248 "value_store/value_store_frontend.h", |
| 249 "value_store/value_store_util.cc", |
| 250 "value_store/value_store_util.h", |
| 251 "verified_contents.cc", |
| 252 "verified_contents.h", |
| 253 "view_type_utils.cc", |
| 254 "view_type_utils.h", |
| 257 ] | 255 ] |
| 258 | 256 |
| 259 deps += [ | 257 deps += [ |
| 260 "//components/usb_service", | 258 "//components/usb_service", |
| 261 "//crypto:platform", | 259 "//crypto:platform", |
| 262 "//device/hid", | 260 "//device/hid", |
| 263 "//device/serial", | 261 "//device/serial", |
| 264 "//extensions/browser/api/cast_channel:cast_channel_proto", | 262 "//extensions/browser/api/cast_channel:cast_channel_proto", |
| 265 ] | 263 ] |
| 266 | 264 |
| 267 if (use_openssl) { | 265 if (use_openssl) { |
| 268 sources += [ | 266 sources += [ |
| 269 "api/cast_channel/cast_auth_util_openssl.cc", | 267 "api/cast_channel/cast_auth_util_openssl.cc", |
| 270 ] | 268 ] |
| 271 } else { | 269 } else { |
| 272 sources += [ | 270 sources += [ |
| 273 "api/cast_channel/cast_auth_util_nss.cc", | 271 "api/cast_channel/cast_auth_util_nss.cc", |
| 274 ] | 272 ] |
| 275 } | 273 } |
| 276 } | 274 } |
| 277 | 275 |
| 278 if (is_win) { | 276 if (is_win) { |
| 279 cflags = [ | 277 cflags = [ |
| 280 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 278 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 281 ] | 279 ] |
| 282 } | 280 } |
| 283 } | 281 } |
| OLD | NEW |