Fix transparent avatar icons.
[chromium-blink-merge.git] / extensions / extensions.gyp
blobd61f64a7d73ae7b9609cd8a2ae4086fabaa01472
1 # Copyright 2013 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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //extensions/common:mojo
12       'target_name': 'extensions_common_mojo',
13       # The type of this target must be none. This is so that resources can
14       # depend upon this target for generating the js bindings files. Any
15       # generated cpp files must be listed explicitly in extensions_common
16       'type': 'none',
17       'includes': [
18         '../mojo/public/tools/bindings/mojom_bindings_generator.gypi',
19       ],
20       'sources': [
21         'common/mojo/keep_alive.mojom',
22         'common/mojo/stash.mojom',
23       ],
24     },
25     {
26       # GN version: //extensions/common
27       'target_name': 'extensions_common_constants',
28       'type': 'static_library',
29       'include_dirs': [
30         '..',
31         '<(INTERMEDIATE_DIR)',
32       ],
33       'sources': [
34         # Note: sources list duplicated in GN build.
35         'common/constants.cc',
36         'common/constants.h',
37       ],
38       # Disable c4267 warnings until we fix size_t to int truncations.
39       'msvs_disabled_warnings': [ 4267, ],
40     },
41     {
42       # GN version: //extensions/common
43       'target_name': 'extensions_common',
44       'type': 'static_library',
45       'dependencies': [
46         '../components/components.gyp:crx_file',
47         '../components/components.gyp:url_matcher',
48         '../content/content.gyp:content_common',
49         '../crypto/crypto.gyp:crypto',
50         '../device/bluetooth/bluetooth.gyp:device_bluetooth',
51         # For Mojo generated headers for generated_api.cc.
52         '../device/serial/serial.gyp:device_serial_mojo',
53         '../device/usb/usb.gyp:device_usb',
54         '../ipc/ipc.gyp:ipc',
55         '../net/net.gyp:net',
56         '../third_party/re2/re2.gyp:re2',
57         '../ui/base/ui_base.gyp:ui_base',
58         '../ui/gfx/gfx.gyp:gfx_geometry',
59         '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
60         '../url/url.gyp:url_lib',
61         '../third_party/libxml/libxml.gyp:libxml',
62         'common/api/api.gyp:extensions_api',
63         'extensions_resources.gyp:extensions_resources',
64         'extensions_strings.gyp:extensions_strings',
65         'extensions_common_constants',
66         'extensions_common_mojo',
67       ],
68       'include_dirs': [
69         '..',
70         '<(INTERMEDIATE_DIR)',
71       ],
72       'sources': [
73         # Note: sources list duplicated in GN build.
74         'common/api/bluetooth/bluetooth_manifest_data.cc',
75         'common/api/bluetooth/bluetooth_manifest_data.h',
76         'common/api/bluetooth/bluetooth_manifest_handler.cc',
77         'common/api/bluetooth/bluetooth_manifest_handler.h',
78         'common/api/bluetooth/bluetooth_manifest_permission.cc',
79         'common/api/bluetooth/bluetooth_manifest_permission.h',
80         'common/api/messaging/message.h',
81         'common/api/sockets/sockets_manifest_data.cc',
82         'common/api/sockets/sockets_manifest_data.h',
83         'common/api/sockets/sockets_manifest_handler.cc',
84         'common/api/sockets/sockets_manifest_handler.h',
85         'common/api/sockets/sockets_manifest_permission.cc',
86         'common/api/sockets/sockets_manifest_permission.h',
87         'common/common_manifest_handlers.cc',
88         'common/common_manifest_handlers.h',
89         'common/csp_validator.cc',
90         'common/csp_validator.h',
91         'common/dom_action_types.h',
92         'common/draggable_region.cc',
93         'common/draggable_region.h',
94         'common/error_utils.cc',
95         'common/error_utils.h',
96         'common/event_filter.cc',
97         'common/event_filter.h',
98         'common/event_filtering_info.cc',
99         'common/event_filtering_info.h',
100         'common/event_matcher.cc',
101         'common/event_matcher.h',
102         'common/extension.cc',
103         'common/extension.h',
104         'common/extension_api.cc',
105         'common/extension_api.h',
106         'common/extension_icon_set.cc',
107         'common/extension_icon_set.h',
108         'common/extension_l10n_util.cc',
109         'common/extension_l10n_util.h',
110         'common/extension_message_generator.cc',
111         'common/extension_message_generator.h',
112         'common/extension_messages.cc',
113         'common/extension_messages.h',
114         'common/extension_paths.cc',
115         'common/extension_paths.h',
116         'common/extension_resource.cc',
117         'common/extension_resource.h',
118         'common/extension_set.cc',
119         'common/extension_set.h',
120         'common/extension_urls.cc',
121         'common/extension_urls.h',
122         'common/extension_utility_messages.h',
123         'common/extensions_client.cc',
124         'common/extensions_client.h',
125         'common/feature_switch.cc',
126         'common/feature_switch.h',
127         'common/features/api_feature.cc',
128         'common/features/api_feature.h',
129         'common/features/base_feature_provider.cc',
130         'common/features/base_feature_provider.h',
131         'common/features/complex_feature.cc',
132         'common/features/complex_feature.h',
133         'common/features/feature.cc',
134         'common/features/feature.h',
135         'common/features/feature_provider.cc',
136         'common/features/feature_provider.h',
137         'common/features/json_feature_provider_source.cc',
138         'common/features/json_feature_provider_source.h',
139         'common/features/manifest_feature.cc',
140         'common/features/manifest_feature.h',
141         'common/features/permission_feature.cc',
142         'common/features/permission_feature.h',
143         'common/features/simple_feature.cc',
144         'common/features/simple_feature.h',
145         'common/features/simple_feature_filter.cc',
146         'common/features/simple_feature_filter.h',
147         'common/file_util.cc',
148         'common/file_util.h',
149         'common/guest_view/guest_view_constants.cc',
150         'common/guest_view/guest_view_constants.h',
151         'common/install_warning.cc',
152         'common/install_warning.h',
153         'common/manifest.cc',
154         'common/manifest.h',
155         'common/manifest_constants.cc',
156         'common/manifest_constants.h',
157         'common/manifest_handler.cc',
158         'common/manifest_handler.h',
159         'common/manifest_handler_helpers.cc',
160         'common/manifest_handler_helpers.h',
161         'common/manifest_handlers/background_info.cc',
162         'common/manifest_handlers/background_info.h',
163         'common/manifest_handlers/csp_info.cc',
164         'common/manifest_handlers/csp_info.h',
165         'common/manifest_handlers/externally_connectable.cc',
166         'common/manifest_handlers/externally_connectable.h',
167         'common/manifest_handlers/file_handler_info.cc',
168         'common/manifest_handlers/file_handler_info.h',
169         'common/manifest_handlers/icons_handler.cc',
170         'common/manifest_handlers/icons_handler.h',
171         'common/manifest_handlers/incognito_info.cc',
172         'common/manifest_handlers/incognito_info.h',
173         'common/manifest_handlers/kiosk_mode_info.cc',
174         'common/manifest_handlers/kiosk_mode_info.h',
175         'common/manifest_handlers/launcher_page_info.cc',
176         'common/manifest_handlers/launcher_page_info.h',
177         'common/manifest_handlers/oauth2_manifest_handler.cc',
178         'common/manifest_handlers/oauth2_manifest_handler.h',
179         'common/manifest_handlers/offline_enabled_info.cc',
180         'common/manifest_handlers/offline_enabled_info.h',
181         'common/manifest_handlers/options_page_info.cc',
182         'common/manifest_handlers/options_page_info.h',
183         'common/manifest_handlers/permissions_parser.cc',
184         'common/manifest_handlers/permissions_parser.h',
185         'common/manifest_handlers/requirements_info.cc',
186         'common/manifest_handlers/requirements_info.h',
187         'common/manifest_handlers/sandboxed_page_info.cc',
188         'common/manifest_handlers/sandboxed_page_info.h',
189         'common/manifest_handlers/shared_module_info.cc',
190         'common/manifest_handlers/shared_module_info.h',
191         'common/manifest_handlers/web_accessible_resources_info.cc',
192         'common/manifest_handlers/web_accessible_resources_info.h',
193         'common/manifest_handlers/webview_info.cc',
194         'common/manifest_handlers/webview_info.h',
195         'common/manifest_url_handlers.cc',
196         'common/manifest_url_handlers.h',
197         'common/message_bundle.cc',
198         'common/message_bundle.h',
199         'common/one_shot_event.cc',
200         'common/one_shot_event.h',
201         'common/permissions/api_permission.cc',
202         'common/permissions/api_permission.h',
203         'common/permissions/api_permission_set.cc',
204         'common/permissions/api_permission_set.h',
205         'common/permissions/base_set_operators.h',
206         'common/permissions/extensions_api_permissions.cc',
207         'common/permissions/extensions_api_permissions.h',
208         'common/permissions/manifest_permission.cc',
209         'common/permissions/manifest_permission.h',
210         'common/permissions/manifest_permission_set.cc',
211         'common/permissions/manifest_permission_set.h',
212         'common/permissions/media_galleries_permission.cc',
213         'common/permissions/media_galleries_permission.h',
214         'common/permissions/media_galleries_permission_data.cc',
215         'common/permissions/media_galleries_permission_data.h',
216         'common/permissions/permission_message.cc',
217         'common/permissions/permission_message.h',
218         'common/permissions/permission_message_provider.cc',
219         'common/permissions/permission_message_provider.h',
220         'common/permissions/permission_message_util.cc',
221         'common/permissions/permission_message_util.h',
222         'common/permissions/permission_set.cc',
223         'common/permissions/permission_set.h',
224         'common/permissions/permissions_data.cc',
225         'common/permissions/permissions_data.h',
226         'common/permissions/permissions_info.cc',
227         'common/permissions/permissions_info.h',
228         'common/permissions/permissions_provider.h',
229         'common/permissions/set_disjunction_permission.h',
230         'common/permissions/settings_override_permission.cc',
231         'common/permissions/settings_override_permission.h',
232         'common/permissions/socket_permission.cc',
233         'common/permissions/socket_permission.h',
234         'common/permissions/socket_permission_data.cc',
235         'common/permissions/socket_permission_data.h',
236         'common/permissions/socket_permission_entry.cc',
237         'common/permissions/socket_permission_entry.h',
238         'common/permissions/usb_device_permission.cc',
239         'common/permissions/usb_device_permission.h',
240         'common/permissions/usb_device_permission_data.cc',
241         'common/permissions/usb_device_permission_data.h',
242         'common/stack_frame.cc',
243         'common/stack_frame.h',
244         'common/switches.cc',
245         'common/switches.h',
246         'common/update_manifest.cc',
247         'common/update_manifest.h',
248         'common/url_pattern.cc',
249         'common/url_pattern.h',
250         'common/url_pattern_set.cc',
251         'common/url_pattern_set.h',
252         'common/user_script.cc',
253         'common/user_script.h',
254         'common/value_counter.cc',
255         'common/value_counter.h',
256         'common/view_type.cc',
257         'common/view_type.h',
258         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.cc',
259         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.h',
260         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.cc',
261         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.h',
262       ],
263       # Disable c4267 warnings until we fix size_t to int truncations.
264       'msvs_disabled_warnings': [ 4267, ],
265       'conditions': [
266         ['disable_nacl==0', {
267           # NaClModulesHandler does not use any code in NaCl, so no dependency
268           # on nacl_common.
269           'sources': [
270             'common/manifest_handlers/nacl_modules_handler.cc',
271             'common/manifest_handlers/nacl_modules_handler.h',
272           ],
273         }],
274       ],
275     },
276     {
277       # GN version: //extensions/browser
278       'target_name': 'extensions_browser',
279       'type': 'static_library',
280       'dependencies': [
281         '../base/base.gyp:base',
282         '../base/base.gyp:base_prefs',
283         '../components/components.gyp:copresence_sockets',
284         '../components/components.gyp:keyed_service_content',
285         '../components/components.gyp:keyed_service_core',
286         '../components/components.gyp:pref_registry',
287         '../components/components.gyp:sessions_content',
288         '../components/components.gyp:storage_monitor',
289         '../components/components.gyp:web_cache_browser',
290         '../components/components.gyp:web_modal',
291         '../content/content.gyp:content_browser',
292         '../device/bluetooth/bluetooth.gyp:device_bluetooth',
293         '../device/serial/serial.gyp:device_serial',
294         '../google_apis/google_apis.gyp:google_apis',
295         '../skia/skia.gyp:skia',
296         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
297         '../third_party/re2/re2.gyp:re2',
298         'browser/api/api_registration.gyp:extensions_api_registration',
299         'common/api/api.gyp:cast_channel_proto',
300         'common/api/api.gyp:extensions_api',
301         'extensions_common',
302         'extensions_resources.gyp:extensions_resources',
303         'extensions_strings.gyp:extensions_strings',
304       ],
305       'include_dirs': [
306         '..',
307         '<(INTERMEDIATE_DIR)',
308         # Needed to access generated API headers.
309         '<(SHARED_INTERMEDIATE_DIR)',
310       ],
311       'sources': [
312         # Note: sources list duplicated in GN build.
313         # NOTE: When moving an API out of Chrome be sure to verify that the
314         # Android build still compiles. See conditions below.
315         'browser/api/activity_log/web_request_constants.cc',
316         'browser/api/activity_log/web_request_constants.h',
317         'browser/api/api_resource.cc',
318         'browser/api/api_resource.h',
319         'browser/api/api_resource_manager.h',
320         'browser/api/app_current_window_internal/app_current_window_internal_api.cc',
321         'browser/api/app_current_window_internal/app_current_window_internal_api.h',
322         'browser/api/app_runtime/app_runtime_api.cc',
323         'browser/api/app_runtime/app_runtime_api.h',
324         'browser/api/app_view/app_view_guest_internal_api.cc',
325         'browser/api/app_view/app_view_guest_internal_api.h',
326         'browser/api/app_window/app_window_api.cc',
327         'browser/api/app_window/app_window_api.h',
328         'browser/api/guest_view/guest_view_internal_api.cc',
329         'browser/api/guest_view/guest_view_internal_api.h',
330         'browser/api/async_api_function.cc',
331         'browser/api/async_api_function.h',
332         'browser/api/bluetooth/bluetooth_api.cc',
333         'browser/api/bluetooth/bluetooth_api.h',
334         'browser/api/bluetooth/bluetooth_api_pairing_delegate.cc',
335         'browser/api/bluetooth/bluetooth_api_pairing_delegate.h',
336         'browser/api/bluetooth/bluetooth_api_utils.cc',
337         'browser/api/bluetooth/bluetooth_api_utils.h',
338         'browser/api/bluetooth/bluetooth_event_router.cc',
339         'browser/api/bluetooth/bluetooth_event_router.h',
340         'browser/api/bluetooth/bluetooth_extension_function.cc',
341         'browser/api/bluetooth/bluetooth_extension_function.h',
342         'browser/api/bluetooth/bluetooth_private_api.cc',
343         'browser/api/bluetooth/bluetooth_private_api.h',
344         'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.cc',
345         'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h',
346         'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc',
347         'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.h',
348         'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc',
349         'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h',
350         'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc',
351         'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h',
352         'browser/api/bluetooth_low_energy/utils.cc',
353         'browser/api/bluetooth_low_energy/utils.h',
354         'browser/api/bluetooth_socket/bluetooth_api_socket.cc',
355         'browser/api/bluetooth_socket/bluetooth_api_socket.h',
356         'browser/api/bluetooth_socket/bluetooth_socket_api.cc',
357         'browser/api/bluetooth_socket/bluetooth_socket_api.h',
358         'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc',
359         'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h',
360         'browser/api/capture_web_contents_function.cc',
361         'browser/api/capture_web_contents_function.h',
362         'browser/api/cast_channel/cast_auth_ica.cc',
363         'browser/api/cast_channel/cast_auth_ica.h',
364         'browser/api/cast_channel/cast_auth_util.cc',
365         'browser/api/cast_channel/cast_auth_util.h',
366         'browser/api/cast_channel/cast_channel_api.cc',
367         'browser/api/cast_channel/cast_channel_api.h',
368         'browser/api/cast_channel/cast_framer.cc',
369         'browser/api/cast_channel/cast_framer.h',
370         'browser/api/cast_channel/cast_message_util.cc',
371         'browser/api/cast_channel/cast_message_util.h',
372         'browser/api/cast_channel/cast_socket.cc',
373         'browser/api/cast_channel/cast_socket.h',
374         'browser/api/cast_channel/cast_framer.cc',
375         'browser/api/cast_channel/cast_framer.h',
376         'browser/api/cast_channel/cast_transport.h',
377         'browser/api/cast_channel/cast_transport.cc',
378         'browser/api/cast_channel/logger.cc',
379         'browser/api/cast_channel/logger.h',
380         'browser/api/cast_channel/logger_util.cc',
381         'browser/api/cast_channel/logger_util.h',
382         'browser/api/copresence_socket/copresence_socket_api.cc',
383         'browser/api/copresence_socket/copresence_socket_api.h',
384         'browser/api/copresence_socket/copresence_socket_resources.cc',
385         'browser/api/copresence_socket/copresence_socket_resources.h',
386         'browser/api/declarative/deduping_factory.h',
387         'browser/api/declarative/declarative_api.cc',
388         'browser/api/declarative/declarative_api.h',
389         'browser/api/declarative/declarative_rule.h',
390         'browser/api/declarative/rules_cache_delegate.cc',
391         'browser/api/declarative/rules_cache_delegate.h',
392         'browser/api/declarative/rules_registry.cc',
393         'browser/api/declarative/rules_registry.h',
394         'browser/api/declarative/rules_registry_service.cc',
395         'browser/api/declarative/rules_registry_service.h',
396         'browser/api/declarative/test_rules_registry.cc',
397         'browser/api/declarative/test_rules_registry.h',
398         'browser/api/declarative_content/content_rules_registry.h',
399         'browser/api/declarative_webrequest/request_stage.cc',
400         'browser/api/declarative_webrequest/request_stage.h',
401         'browser/api/declarative_webrequest/webrequest_action.cc',
402         'browser/api/declarative_webrequest/webrequest_action.h',
403         'browser/api/declarative_webrequest/webrequest_condition.cc',
404         'browser/api/declarative_webrequest/webrequest_condition.h',
405         'browser/api/declarative_webrequest/webrequest_condition_attribute.cc',
406         'browser/api/declarative_webrequest/webrequest_condition_attribute.h',
407         'browser/api/declarative_webrequest/webrequest_constants.cc',
408         'browser/api/declarative_webrequest/webrequest_constants.h',
409         'browser/api/declarative_webrequest/webrequest_rules_registry.cc',
410         'browser/api/declarative_webrequest/webrequest_rules_registry.h',
411         'browser/api/device_permissions_manager.cc',
412         'browser/api/device_permissions_manager.h',
413         'browser/api/device_permissions_prompt.cc',
414         'browser/api/device_permissions_prompt.h',
415         'browser/api/dns/dns_api.cc',
416         'browser/api/dns/dns_api.h',
417         'browser/api/dns/host_resolver_wrapper.cc',
418         'browser/api/dns/host_resolver_wrapper.h',
419         'browser/api/execute_code_function.cc',
420         'browser/api/execute_code_function.h',
421         'browser/api/extensions_api_client.cc',
422         'browser/api/extensions_api_client.h',
423         'browser/api/hid/hid_api.cc',
424         'browser/api/hid/hid_api.h',
425         'browser/api/hid/hid_connection_resource.cc',
426         'browser/api/hid/hid_connection_resource.h',
427         'browser/api/hid/hid_device_manager.cc',
428         'browser/api/hid/hid_device_manager.h',
429         'browser/api/messaging/native_message_host.cc',
430         'browser/api/power/power_api.cc',
431         'browser/api/power/power_api.h',
432         'browser/api/power/power_api_manager.cc',
433         'browser/api/power/power_api_manager.h',
434         'browser/api/runtime/runtime_api.cc',
435         'browser/api/runtime/runtime_api.h',
436         'browser/api/runtime/runtime_api_delegate.cc',
437         'browser/api/runtime/runtime_api_delegate.h',
438         'browser/api/serial/serial_api.cc',
439         'browser/api/serial/serial_api.h',
440         'browser/api/serial/serial_connection.cc',
441         'browser/api/serial/serial_connection.h',
442         'browser/api/serial/serial_event_dispatcher.cc',
443         'browser/api/serial/serial_event_dispatcher.h',
444         'browser/api/socket/socket.cc',
445         'browser/api/socket/socket.h',
446         'browser/api/socket/socket_api.cc',
447         'browser/api/socket/socket_api.h',
448         'browser/api/socket/tcp_socket.cc',
449         'browser/api/socket/tcp_socket.h',
450         'browser/api/socket/tls_socket.cc',
451         'browser/api/socket/tls_socket.h',
452         'browser/api/socket/udp_socket.cc',
453         'browser/api/socket/udp_socket.h',
454         'browser/api/sockets_tcp/sockets_tcp_api.cc',
455         'browser/api/sockets_tcp/sockets_tcp_api.h',
456         'browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc',
457         'browser/api/sockets_tcp/tcp_socket_event_dispatcher.h',
458         'browser/api/sockets_tcp_server/sockets_tcp_server_api.cc',
459         'browser/api/sockets_tcp_server/sockets_tcp_server_api.h',
460         'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc',
461         'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h',
462         'browser/api/sockets_udp/sockets_udp_api.cc',
463         'browser/api/sockets_udp/sockets_udp_api.h',
464         'browser/api/sockets_udp/udp_socket_event_dispatcher.cc',
465         'browser/api/sockets_udp/udp_socket_event_dispatcher.h',
466         'browser/api/storage/leveldb_settings_storage_factory.cc',
467         'browser/api/storage/leveldb_settings_storage_factory.h',
468         'browser/api/storage/local_value_store_cache.cc',
469         'browser/api/storage/local_value_store_cache.h',
470         'browser/api/storage/settings_namespace.cc',
471         'browser/api/storage/settings_namespace.h',
472         'browser/api/storage/settings_observer.h',
473         'browser/api/storage/settings_storage_factory.h',
474         'browser/api/storage/settings_storage_quota_enforcer.cc',
475         'browser/api/storage/settings_storage_quota_enforcer.h',
476         'browser/api/storage/storage_api.cc',
477         'browser/api/storage/storage_api.h',
478         'browser/api/storage/storage_frontend.cc',
479         'browser/api/storage/storage_frontend.h',
480         'browser/api/storage/value_store_cache.cc',
481         'browser/api/storage/value_store_cache.h',
482         'browser/api/storage/weak_unlimited_settings_storage.cc',
483         'browser/api/storage/weak_unlimited_settings_storage.h',
484         'browser/api/system_cpu/cpu_info_provider.cc',
485         'browser/api/system_cpu/cpu_info_provider.h',
486         'browser/api/system_cpu/cpu_info_provider_linux.cc',
487         'browser/api/system_cpu/cpu_info_provider_mac.cc',
488         'browser/api/system_cpu/cpu_info_provider_win.cc',
489         'browser/api/system_cpu/system_cpu_api.cc',
490         'browser/api/system_cpu/system_cpu_api.h',
491         'browser/api/system_display/display_info_provider.cc',
492         'browser/api/system_display/display_info_provider.h',
493         'browser/api/system_display/system_display_api.cc',
494         'browser/api/system_display/system_display_api.h',
495         'browser/api/system_info/system_info_api.cc',
496         'browser/api/system_info/system_info_api.h',
497         'browser/api/system_info/system_info_provider.cc',
498         'browser/api/system_info/system_info_provider.h',
499         'browser/api/system_memory/memory_info_provider.cc',
500         'browser/api/system_memory/memory_info_provider.h',
501         'browser/api/system_memory/system_memory_api.cc',
502         'browser/api/system_memory/system_memory_api.h',
503         'browser/api/system_network/system_network_api.cc',
504         'browser/api/system_network/system_network_api.h',
505         'browser/api/system_storage/storage_info_provider.cc',
506         'browser/api/system_storage/storage_info_provider.h',
507         'browser/api/system_storage/system_storage_api.cc',
508         'browser/api/system_storage/system_storage_api.h',
509         'browser/api/test/test_api.cc',
510         'browser/api/test/test_api.h',
511         'browser/api/usb/usb_api.cc',
512         'browser/api/usb/usb_api.h',
513         'browser/api/usb/usb_device_resource.cc',
514         'browser/api/usb/usb_device_resource.h',
515         'browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc',
516         'browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h',
517         'browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h',
518         'browser/api/web_request/form_data_parser.cc',
519         'browser/api/web_request/form_data_parser.h',
520         'browser/api/web_request/upload_data_presenter.cc',
521         'browser/api/web_request/upload_data_presenter.h',
522         'browser/api/web_request/web_request_api.cc',
523         'browser/api/web_request/web_request_api.h',
524         'browser/api/web_request/web_request_api_constants.cc',
525         'browser/api/web_request/web_request_api_constants.h',
526         'browser/api/web_request/web_request_api_helpers.cc',
527         'browser/api/web_request/web_request_api_helpers.h',
528         'browser/api/web_request/web_request_event_router_delegate.cc',
529         'browser/api/web_request/web_request_event_router_delegate.h',
530         'browser/api/web_request/web_request_permissions.cc',
531         'browser/api/web_request/web_request_permissions.h',
532         'browser/api/web_request/web_request_time_tracker.cc',
533         'browser/api/web_request/web_request_time_tracker.h',
534         'browser/api/web_view/web_view_internal_api.cc',
535         'browser/api/web_view/web_view_internal_api.h',
536         'browser/api_activity_monitor.h',
537         'browser/app_sorting.h',
538         'browser/app_window/app_delegate.h',
539         'browser/app_window/app_web_contents_helper.cc',
540         'browser/app_window/app_web_contents_helper.h',
541         'browser/app_window/app_window.cc',
542         'browser/app_window/app_window.h',
543         'browser/app_window/app_window_contents.cc',
544         'browser/app_window/app_window_contents.h',
545         'browser/app_window/app_window_geometry_cache.cc',
546         'browser/app_window/app_window_geometry_cache.h',
547         'browser/app_window/app_window_registry.cc',
548         'browser/app_window/app_window_registry.h',
549         'browser/app_window/app_window_client.cc',
550         'browser/app_window/app_window_client.h',
551         'browser/app_window/native_app_window.h',
552         'browser/app_window/size_constraints.cc',
553         'browser/app_window/size_constraints.h',
554         'browser/blacklist_state.h',
555         'browser/blob_holder.cc',
556         'browser/blob_holder.h',
557         'browser/browser_context_keyed_api_factory.h',
558         'browser/browser_context_keyed_service_factories.cc',
559         'browser/browser_context_keyed_service_factories.h',
560         'browser/component_extension_resource_manager.h',
561         'browser/computed_hashes.cc',
562         'browser/computed_hashes.h',
563         'browser/content_hash_fetcher.cc',
564         'browser/content_hash_fetcher.h',
565         'browser/content_hash_reader.cc',
566         'browser/content_hash_reader.h',
567         'browser/content_hash_tree.cc',
568         'browser/content_hash_tree.h',
569         'browser/content_verifier.cc',
570         'browser/content_verifier.h',
571         'browser/content_verifier_delegate.h',
572         'browser/content_verifier_io_data.cc',
573         'browser/content_verifier_io_data.h',
574         'browser/content_verify_job.cc',
575         'browser/content_verify_job.h',
576         'browser/error_map.cc',
577         'browser/error_map.h',
578         'browser/event_listener_map.cc',
579         'browser/event_listener_map.h',
580         'browser/event_router.cc',
581         'browser/event_router.h',
582         'browser/extension_host.cc',
583         'browser/extension_host.h',
584         'browser/extension_host_delegate.h',
585         'browser/extension_error.cc',
586         'browser/extension_error.h',
587         'browser/extension_function.cc',
588         'browser/extension_function.h',
589         'browser/extension_function_dispatcher.cc',
590         'browser/extension_function_dispatcher.h',
591         'browser/extension_function_registry.cc',
592         'browser/extension_function_registry.h',
593         'browser/extension_function_util.cc',
594         'browser/extension_function_util.h',
595         'browser/extension_icon_image.cc',
596         'browser/extension_icon_image.h',
597         'browser/extension_message_filter.cc',
598         'browser/extension_message_filter.h',
599         'browser/extension_pref_store.cc',
600         'browser/extension_pref_store.h',
601         'browser/extension_pref_value_map.cc',
602         'browser/extension_pref_value_map_factory.cc',
603         'browser/extension_pref_value_map_factory.h',
604         'browser/extension_pref_value_map.h',
605         'browser/extension_prefs.cc',
606         'browser/extension_prefs.h',
607         'browser/extension_prefs_factory.cc',
608         'browser/extension_prefs_factory.h',
609         'browser/extension_prefs_observer.h',
610         'browser/extension_prefs_scope.h',
611         'browser/extension_protocols.cc',
612         'browser/extension_protocols.h',
613         'browser/extension_registry.cc',
614         'browser/extension_registry.h',
615         'browser/extension_registry_factory.cc',
616         'browser/extension_registry_factory.h',
617         'browser/extension_registry_observer.h',
618         'browser/extension_scoped_prefs.h',
619         'browser/extension_system.cc',
620         'browser/extension_system.h',
621         'browser/extension_system_provider.cc',
622         'browser/extension_system_provider.h',
623         'browser/extension_util.cc',
624         'browser/extension_util.h',
625         'browser/extension_web_contents_observer.cc',
626         'browser/extension_web_contents_observer.h',
627         'browser/extensions_browser_client.cc',
628         'browser/extensions_browser_client.h',
629         'browser/external_provider_interface.h',
630         'browser/granted_file_entry.cc',
631         'browser/granted_file_entry.h',
632         'browser/guest_view/app_view/app_view_constants.cc',
633         'browser/guest_view/app_view/app_view_constants.h',
634         'browser/guest_view/app_view/app_view_guest.cc',
635         'browser/guest_view/app_view/app_view_guest.h',
636         'browser/guest_view/app_view/app_view_guest_delegate.cc',
637         'browser/guest_view/app_view/app_view_guest_delegate.h',
638         'browser/guest_view/extension_options/extension_options_constants.cc',
639         'browser/guest_view/extension_options/extension_options_constants.h',
640         'browser/guest_view/extension_options/extension_options_guest.cc',
641         'browser/guest_view/extension_options/extension_options_guest.h',
642         'browser/guest_view/extension_options/extension_options_guest_delegate.cc',
643         'browser/guest_view/extension_options/extension_options_guest_delegate.h',
644         'browser/guest_view/guest_view_base.cc',
645         'browser/guest_view/guest_view_base.h',
646         'browser/guest_view/guest_view_manager_factory.h',
647         'browser/guest_view/guest_view_manager.cc',
648         'browser/guest_view/guest_view_manager.h',
649         'browser/guest_view/guest_view.h',
650         'browser/guest_view/mime_handler_view/mime_handler_view_constants.cc',
651         'browser/guest_view/mime_handler_view/mime_handler_view_constants.h',
652         'browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.cc',
653         'browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h',
654         'browser/guest_view/mime_handler_view/mime_handler_view_guest.cc',
655         'browser/guest_view/mime_handler_view/mime_handler_view_guest.h',
656         'browser/guest_view/web_view/javascript_dialog_helper.cc',
657         'browser/guest_view/web_view/javascript_dialog_helper.h',
658         'browser/guest_view/web_view/web_view_constants.cc',
659         'browser/guest_view/web_view/web_view_constants.h',
660         'browser/guest_view/web_view/web_view_find_helper.cc',
661         'browser/guest_view/web_view/web_view_find_helper.h',
662         'browser/guest_view/web_view/web_view_guest.cc',
663         'browser/guest_view/web_view/web_view_guest.h',
664         'browser/guest_view/web_view/web_view_guest_delegate.h',
665         'browser/guest_view/web_view/web_view_permission_types.h',
666         'browser/guest_view/web_view/web_view_permission_helper.cc',
667         'browser/guest_view/web_view/web_view_permission_helper.h',
668         'browser/guest_view/web_view/web_view_permission_helper_delegate.cc',
669         'browser/guest_view/web_view/web_view_permission_helper_delegate.h',
670         'browser/guest_view/web_view/web_view_renderer_state.cc',
671         'browser/guest_view/web_view/web_view_renderer_state.h',
672         'browser/image_loader.cc',
673         'browser/image_loader.h',
674         'browser/image_loader_factory.cc',
675         'browser/image_loader_factory.h',
676         'browser/image_util.cc',
677         'browser/image_util.h',
678         'browser/info_map.cc',
679         'browser/info_map.h',
680         'browser/install/crx_installer_error.h',
681         'browser/install/extension_install_ui.cc',
682         'browser/install/extension_install_ui.h',
683         'browser/install_flag.h',
684         'browser/file_highlighter.cc',
685         'browser/file_highlighter.h',
686         'browser/file_reader.cc',
687         'browser/file_reader.h',
688         'browser/lazy_background_task_queue.cc',
689         'browser/lazy_background_task_queue.h',
690         'browser/management_policy.cc',
691         'browser/management_policy.h',
692         'browser/mojo/keep_alive_impl.cc',
693         'browser/mojo/keep_alive_impl.h',
694         'browser/mojo/service_registration_manager.cc',
695         'browser/mojo/service_registration_manager.h',
696         'browser/mojo/stash_backend.cc',
697         'browser/mojo/stash_backend.h',
698         'browser/notification_types.h',
699         'browser/null_app_sorting.cc',
700         'browser/null_app_sorting.h',
701         'browser/pref_names.cc',
702         'browser/pref_names.h',
703         'browser/process_manager.cc',
704         'browser/process_manager.h',
705         'browser/process_manager_delegate.h',
706         'browser/process_manager_factory.cc',
707         'browser/process_manager_factory.h',
708         'browser/process_manager_observer.h',
709         'browser/process_map.cc',
710         'browser/process_map.h',
711         'browser/process_map_factory.cc',
712         'browser/process_map_factory.h',
713         'browser/quota_service.cc',
714         'browser/quota_service.h',
715         'browser/renderer_startup_helper.cc',
716         'browser/renderer_startup_helper.h',
717         'browser/runtime_data.cc',
718         'browser/runtime_data.h',
719         'browser/script_execution_observer.h',
720         'browser/script_executor.cc',
721         'browser/script_executor.h',
722         'browser/state_store.cc',
723         'browser/state_store.h',
724         'browser/suggest_permission_util.cc',
725         'browser/suggest_permission_util.h',
726         'browser/uninstall_reason.h',
727         'browser/update_observer.h',
728         'browser/updater/extension_cache.h',
729         'browser/updater/extension_downloader.cc',
730         'browser/updater/extension_downloader.h',
731         'browser/updater/extension_downloader_delegate.cc',
732         'browser/updater/extension_downloader_delegate.h',
733         'browser/updater/manifest_fetch_data.cc',
734         'browser/updater/manifest_fetch_data.h',
735         'browser/updater/null_extension_cache.cc',
736         'browser/updater/null_extension_cache.h',
737         'browser/updater/request_queue.h',
738         'browser/updater/request_queue_impl.h',
739         'browser/updater/safe_manifest_parser.cc',
740         'browser/updater/safe_manifest_parser.h',
741         'browser/url_request_util.cc',
742         'browser/url_request_util.h',
743         'browser/value_store/leveldb_value_store.cc',
744         'browser/value_store/leveldb_value_store.h',
745         'browser/value_store/testing_value_store.cc',
746         'browser/value_store/testing_value_store.h',
747         'browser/value_store/value_store.cc',
748         'browser/value_store/value_store.h',
749         'browser/value_store/value_store_change.cc',
750         'browser/value_store/value_store_change.h',
751         'browser/value_store/value_store_frontend.cc',
752         'browser/value_store/value_store_frontend.h',
753         'browser/value_store/value_store_util.cc',
754         'browser/value_store/value_store_util.h',
755         'browser/verified_contents.cc',
756         'browser/verified_contents.h',
757         'browser/view_type_utils.cc',
758         'browser/view_type_utils.h',
759         'browser/warning_service.cc',
760         'browser/warning_service.h',
761         'browser/warning_service_factory.cc',
762         'browser/warning_service_factory.h',
763         'browser/warning_set.cc',
764         'browser/warning_set.h',
765       ],
766       'conditions': [
767         # This condition exists only because the extensions_common_constants
768         # target is always built and thus this file gets evaluated by GYP.
769         # This does not need to be replicated into extensions/browser/BUILD.gn.
770         ['OS == "ios" or OS == "android"', {
771           'dependencies!': [
772             '../components/components.gyp:storage_monitor',
773           ],
774         }],
775         ['use_openssl==1', {
776           'sources': [
777             'browser/api/cast_channel/cast_auth_util_openssl.cc',
778           ],
779           'dependencies': [
780             '../third_party/boringssl/boringssl.gyp:boringssl',
781           ],
782         }, {
783           'sources': [
784             # cast_auth_util_nss.cc uses NSS functions.
785             'browser/api/cast_channel/cast_auth_util_nss.cc',
786           ],
787           'conditions': [
788             ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
789               'dependencies': [
790                 '../build/linux/system.gyp:ssl',
791               ],
792             }],
793             ['OS == "mac" or OS == "ios" or OS == "win"', {
794               'dependencies': [
795                 '../third_party/nss/nss.gyp:nspr',
796                 '../third_party/nss/nss.gyp:nss',
797               ],
798             }],
799           ],
800         }],
801       ],
802       # Disable c4267 warnings until we fix size_t to int truncations.
803       'msvs_disabled_warnings': [ 4267, ],
804     },
805     {
806       # GN version: //extensions/renderer
807       'target_name': 'extensions_renderer',
808       'type': 'static_library',
809       'dependencies': [
810         'extensions_resources.gyp:extensions_resources',
811         '../content/content.gyp:content_resources',
812         '../gin/gin.gyp:gin',
813         '../mojo/public/mojo_public.gyp:mojo_js_bindings',
814         '../third_party/WebKit/public/blink.gyp:blink',
815       ],
816       'include_dirs': [
817         '..',
818       ],
819       'sources': [
820         # Note: sources list duplicated in GN build.
821         'renderer/activity_log_converter_strategy.cc',
822         'renderer/activity_log_converter_strategy.h',
823         'renderer/api_activity_logger.cc',
824         'renderer/api_activity_logger.h',
825         'renderer/api_definitions_natives.cc',
826         'renderer/api_definitions_natives.h',
827         'renderer/app_runtime_custom_bindings.cc',
828         'renderer/app_runtime_custom_bindings.h',
829         'renderer/app_window_custom_bindings.cc',
830         'renderer/app_window_custom_bindings.h',
831         'renderer/binding_generating_native_handler.cc',
832         'renderer/binding_generating_native_handler.h',
833         'renderer/blob_native_handler.cc',
834         'renderer/blob_native_handler.h',
835         'renderer/console.cc',
836         'renderer/console.h',
837         'renderer/content_watcher.cc',
838         'renderer/content_watcher.h',
839         'renderer/context_menus_custom_bindings.cc',
840         'renderer/context_menus_custom_bindings.h',
841         'renderer/css_native_handler.cc',
842         'renderer/css_native_handler.h',
843         'renderer/default_dispatcher_delegate.cc',
844         'renderer/default_dispatcher_delegate.h',
845         'renderer/dispatcher.cc',
846         'renderer/dispatcher.h',
847         'renderer/dispatcher_delegate.h',
848         'renderer/document_custom_bindings.cc',
849         'renderer/document_custom_bindings.h',
850         'renderer/dom_activity_logger.cc',
851         'renderer/dom_activity_logger.h',
852         'renderer/event_bindings.cc',
853         'renderer/event_bindings.h',
854         'renderer/extension_groups.h',
855         'renderer/extension_helper.cc',
856         'renderer/extension_helper.h',
857         'renderer/extensions_render_frame_observer.cc',
858         'renderer/extensions_render_frame_observer.h',
859         'renderer/extensions_renderer_client.cc',
860         'renderer/extensions_renderer_client.h',
861         'renderer/file_system_natives.cc',
862         'renderer/file_system_natives.h',
863         'renderer/guest_view/guest_view_container.cc',
864         'renderer/guest_view/guest_view_container.h',
865         'renderer/guest_view/guest_view_internal_custom_bindings.cc',
866         'renderer/guest_view/guest_view_internal_custom_bindings.h',
867         'renderer/i18n_custom_bindings.cc',
868         'renderer/i18n_custom_bindings.h',
869         'renderer/id_generator_custom_bindings.cc',
870         'renderer/id_generator_custom_bindings.h',
871         'renderer/lazy_background_page_native_handler.cc',
872         'renderer/lazy_background_page_native_handler.h',
873         'renderer/logging_native_handler.cc',
874         'renderer/logging_native_handler.h',
875         'renderer/messaging_bindings.cc',
876         'renderer/messaging_bindings.h',
877         'renderer/module_system.cc',
878         'renderer/module_system.h',
879         'renderer/native_handler.cc',
880         'renderer/native_handler.h',
881         'renderer/object_backed_native_handler.cc',
882         'renderer/object_backed_native_handler.h',
883         'renderer/print_native_handler.cc',
884         'renderer/print_native_handler.h',
885         'renderer/process_info_native_handler.cc',
886         'renderer/process_info_native_handler.h',
887         'renderer/programmatic_script_injector.cc',
888         'renderer/programmatic_script_injector.h',
889         'renderer/render_view_observer_natives.cc',
890         'renderer/request_sender.cc',
891         'renderer/request_sender.h',
892         'renderer/resource_bundle_source_map.cc',
893         'renderer/resource_bundle_source_map.h',
894         'renderer/resources/app_runtime_custom_bindings.js',
895         'renderer/resources/app_window_custom_bindings.js',
896         'renderer/resources/binding.js',
897         'renderer/resources/context_menus_custom_bindings.js',
898         'renderer/resources/declarative_webrequest_custom_bindings.js',
899         'renderer/resources/entry_id_manager.js',
900         'renderer/resources/event.js',
901         'renderer/resources/extension.css',
902         'renderer/resources/extension_custom_bindings.js',
903         'renderer/resources/extension_fonts.css',
904         'renderer/resources/greasemonkey_api.js',
905         'renderer/resources/i18n_custom_bindings.js',
906         'renderer/resources/image_util.js',
907         'renderer/resources/json_schema.js',
908         'renderer/resources/last_error.js',
909         'renderer/resources/messaging.js',
910         'renderer/resources/messaging_utils.js',
911         'renderer/resources/permissions_custom_bindings.js',
912         'renderer/resources/platform_app.css',
913         'renderer/resources/platform_app.js',
914         'renderer/resources/runtime_custom_bindings.js',
915         'renderer/resources/schema_utils.js',
916         'renderer/resources/send_request.js',
917         'renderer/resources/set_icon.js',
918         'renderer/resources/storage_area.js',
919         'renderer/resources/test_custom_bindings.js',
920         'renderer/resources/uncaught_exception_handler.js',
921         'renderer/resources/unload_event.js',
922         'renderer/resources/utils.js',
923         'renderer/resources/extensions/web_view.js',
924         'renderer/resources/extensions/web_view_events.js',
925         'renderer/resources/extensions/web_view_experimental.js',
926         'renderer/resources/web_request_custom_bindings.js',
927         'renderer/resources/web_request_internal_custom_bindings.js',
928         'renderer/runtime_custom_bindings.cc',
929         'renderer/runtime_custom_bindings.h',
930         'renderer/safe_builtins.cc',
931         'renderer/safe_builtins.h',
932         'renderer/scoped_persistent.h',
933         'renderer/script_context.cc',
934         'renderer/script_context.h',
935         'renderer/script_context_set.cc',
936         'renderer/script_context_set.h',
937         'renderer/script_injection.cc',
938         'renderer/script_injection.h',
939         'renderer/script_injection_manager.cc',
940         'renderer/script_injection_manager.h',
941         'renderer/script_injector.h',
942         'renderer/scripts_run_info.cc',
943         'renderer/scripts_run_info.h',
944         'renderer/send_request_natives.cc',
945         'renderer/send_request_natives.h',
946         'renderer/set_icon_natives.cc',
947         'renderer/set_icon_natives.h',
948         'renderer/static_v8_external_one_byte_string_resource.cc',
949         'renderer/static_v8_external_one_byte_string_resource.h',
950         'renderer/test_features_native_handler.cc',
951         'renderer/test_features_native_handler.h',
952         'renderer/user_gestures_native_handler.cc',
953         'renderer/user_gestures_native_handler.h',
954         'renderer/user_script_injector.cc',
955         'renderer/user_script_injector.h',
956         'renderer/user_script_set.cc',
957         'renderer/user_script_set.h',
958         'renderer/user_script_set_manager.cc',
959         'renderer/user_script_set_manager.h',
960         'renderer/utils_native_handler.cc',
961         'renderer/utils_native_handler.h',
962         'renderer/v8_context_native_handler.cc',
963         'renderer/v8_context_native_handler.h',
964         'renderer/v8_schema_registry.cc',
965         'renderer/v8_schema_registry.h',
966       ],
967       # Disable c4267 warnings until we fix size_t to int truncations.
968       'msvs_disabled_warnings': [ 4267, ],
969     },
970     {
971       # GN version: //extensions:test_support
972       'target_name': 'extensions_test_support',
973       'type': 'static_library',
974       'dependencies': [
975         '../base/base.gyp:base',
976         '../components/components.gyp:user_prefs',
977         '../content/content.gyp:content_browser',
978         '../content/content.gyp:content_common',
979         '../content/content_shell_and_tests.gyp:test_support_content',
980         '../net/net.gyp:net_test_support',
981         '../testing/gtest.gyp:gtest',
982         'browser/api/api_registration.gyp:extensions_api_registration',
983         'common/api/api.gyp:extensions_api',
984         'extensions_browser',
985         'extensions_common',
986         'extensions_resources.gyp:extensions_resources',
987       ],
988       'include_dirs': [
989         '..',
990         '<(SHARED_INTERMEDIATE_DIR)',
991       ],
992       'sources': [
993         # Note: sources list duplicated in GN build.
994         'browser/api/dns/mock_host_resolver_creator.cc',
995         'browser/api/dns/mock_host_resolver_creator.h',
996         'browser/api/storage/settings_test_util.cc',
997         'browser/api/storage/settings_test_util.h',
998         'browser/api_test_utils.cc',
999         'browser/api_test_utils.h',
1000         'browser/api_unittest.cc',
1001         'browser/api_unittest.h',
1002         'browser/extension_error_test_util.cc',
1003         'browser/extension_error_test_util.h',
1004         'browser/extensions_test.cc',
1005         'browser/extensions_test.h',
1006         'browser/guest_view/test_guest_view_manager.cc',
1007         'browser/guest_view/test_guest_view_manager.h',
1008         'browser/mock_extension_system.cc',
1009         'browser/mock_extension_system.h',
1010         'browser/test_extension_registry_observer.cc',
1011         'browser/test_extension_registry_observer.h',
1012         'browser/test_extensions_browser_client.cc',
1013         'browser/test_extensions_browser_client.h',
1014         'browser/test_management_policy.cc',
1015         'browser/test_management_policy.h',
1016         'browser/test_runtime_api_delegate.cc',
1017         'browser/test_runtime_api_delegate.h',
1018         'common/extension_builder.cc',
1019         'common/extension_builder.h',
1020         'common/manifest_test.cc',
1021         'common/manifest_test.h',
1022         'common/test_util.cc',
1023         'common/test_util.h',
1024         'common/value_builder.cc',
1025         'common/value_builder.h',
1026         'renderer/test_extensions_renderer_client.cc',
1027         'renderer/test_extensions_renderer_client.h',
1028         'test/extension_test_message_listener.cc',
1029         'test/extension_test_message_listener.h',
1030         'test/result_catcher.cc',
1031         'test/result_catcher.h',
1032         'test/test_extensions_client.cc',
1033         'test/test_extensions_client.h',
1034         'test/test_permission_message_provider.cc',
1035         'test/test_permission_message_provider.h',
1036         'test/test_service_registration_manager.cc',
1037         'test/test_service_registration_manager.h',
1038       ],
1039       # Disable c4267 warnings until we fix size_t to int truncations.
1040       'msvs_disabled_warnings': [ 4267, ],
1041     },
1042     {
1043       # The pak file generated by this target is intended to be shared by
1044       # both shell and test targets. It was combined because it might help a
1045       # little bit with build time by avoiding a repack step (one instead of
1046       # two).
1047       'target_name': 'extensions_shell_and_test_pak',
1048       'type': 'none',
1049       'dependencies': [
1050         '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
1051         '../content/content.gyp:content_resources',
1052         '../content/content_shell_and_tests.gyp:content_shell_resources',
1053         '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
1054         '../ui/resources/ui_resources.gyp:ui_resources',
1055         '../ui/strings/ui_strings.gyp:ui_strings',
1056         'extensions_resources.gyp:extensions_resources',
1057         'extensions_strings.gyp:extensions_strings',
1058         'shell/app_shell_resources.gyp:app_shell_resources',
1059       ],
1060       'actions': [
1061         {
1062           'action_name': 'repack_extensions_shell_and_test_pak',
1063           'variables': {
1064             'pak_inputs': [
1065               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
1066               '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
1067               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
1068               '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
1069               '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_browser_resources_100_percent.pak',
1070               '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resources.pak',
1071               '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
1072               '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/app_shell_resources.pak',
1073               '<(SHARED_INTERMEDIATE_DIR)/extensions/strings/extensions_strings_en-US.pak',
1074               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
1075               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
1076               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
1077               '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
1078             ],
1079             'pak_output': '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
1080           },
1081           'includes': [ '../build/repack_action.gypi' ],
1082         },
1083       ],
1084     },
1085     {
1086       'target_name': 'extensions_unittests',
1087       'type': 'executable',
1088       'dependencies': [
1089         '../base/base.gyp:base',
1090         '../base/base.gyp:base_prefs_test_support',
1091         '../base/base.gyp:test_support_base',
1092         '../components/components.gyp:keyed_service_content',
1093         '../components/components.gyp:user_prefs',
1094         '../content/content_shell_and_tests.gyp:test_support_content',
1095         '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
1096         '../device/serial/serial.gyp:device_serial',
1097         '../device/serial/serial.gyp:device_serial_test_util',
1098         '../mojo/edk/mojo_edk.gyp:mojo_system_impl',
1099         '../mojo/mojo_base.gyp:mojo_environment_chromium',
1100         '../mojo/mojo_base.gyp:mojo_js_bindings_lib',
1101         '../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
1102         '../testing/gmock.gyp:gmock',
1103         '../testing/gtest.gyp:gtest',
1104         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1105         'common/api/api.gyp:cast_channel_proto',
1106         'extensions_common',
1107         'extensions_renderer',
1108         'extensions_resources.gyp:extensions_resources',
1109         'extensions_shell_and_test_pak',
1110         'extensions_strings.gyp:extensions_strings',
1111         'extensions_test_support',
1112       ],
1113       # Needed for third_party libraries like leveldb.
1114       'include_dirs': [
1115         '..',
1116       ],
1117       'sources': [
1118         'browser/api/api_resource_manager_unittest.cc',
1119         'browser/api/bluetooth/bluetooth_event_router_unittest.cc',
1120         'browser/api/cast_channel/cast_auth_ica_unittest.cc',
1121         'browser/api/cast_channel/cast_channel_api_unittest.cc',
1122         'browser/api/cast_channel/cast_framer_unittest.cc',
1123         'browser/api/cast_channel/cast_socket_unittest.cc',
1124         'browser/api/cast_channel/cast_transport_unittest.cc',
1125         'browser/api/cast_channel/logger_unittest.cc',
1126         'browser/api/declarative/declarative_rule_unittest.cc',
1127         'browser/api/declarative/deduping_factory_unittest.cc',
1128         'browser/api/declarative/rules_registry_unittest.cc',
1129         'browser/api/declarative_webrequest/webrequest_condition_unittest.cc',
1130         'browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc',
1131         'browser/api/power/power_api_unittest.cc',
1132         'browser/api/sockets_tcp/sockets_tcp_api_unittest.cc',
1133         'browser/api/storage/settings_quota_unittest.cc',
1134         'browser/api/storage/storage_api_unittest.cc',
1135         'browser/api/storage/storage_frontend_unittest.cc',
1136         'browser/api/web_request/form_data_parser_unittest.cc',
1137         'browser/api/web_request/upload_data_presenter_unittest.cc',
1138         'browser/api/web_request/web_request_time_tracker_unittest.cc',
1139         'browser/app_window/app_window_geometry_cache_unittest.cc',
1140         'browser/computed_hashes_unittest.cc',
1141         'browser/content_hash_tree_unittest.cc',
1142         'browser/event_listener_map_unittest.cc',
1143         'browser/event_router_unittest.cc',
1144         'browser/error_map_unittest.cc',
1145         'browser/extension_icon_image_unittest.cc',
1146         'browser/extension_pref_value_map_unittest.cc',
1147         'browser/extension_registry_unittest.cc',
1148         'browser/file_highlighter_unittest.cc',
1149         'browser/file_reader_unittest.cc',
1150         'browser/guest_view/guest_view_manager_unittest.cc',
1151         'browser/image_loader_unittest.cc',
1152         'browser/image_util_unittest.cc',
1153         'browser/info_map_unittest.cc',
1154         'browser/lazy_background_task_queue_unittest.cc',
1155         'browser/management_policy_unittest.cc',
1156         'browser/mojo/keep_alive_impl_unittest.cc',
1157         'browser/mojo/stash_backend_unittest.cc',
1158         'browser/process_manager_unittest.cc',
1159         'browser/process_map_unittest.cc',
1160         'browser/quota_service_unittest.cc',
1161         'browser/runtime_data_unittest.cc',
1162         'browser/value_store/leveldb_value_store_unittest.cc',
1163         'browser/value_store/testing_value_store_unittest.cc',
1164         'browser/value_store/value_store_change_unittest.cc',
1165         'browser/value_store/value_store_frontend_unittest.cc',
1166         'browser/value_store/value_store_unittest.cc',
1167         'browser/value_store/value_store_unittest.h',
1168         'browser/verified_contents_unittest.cc',
1169         'browser/warning_service_unittest.cc',
1170         'common/api/sockets/sockets_manifest_permission_unittest.cc',
1171         'common/csp_validator_unittest.cc',
1172         'common/event_filter_unittest.cc',
1173         'common/extension_l10n_util_unittest.cc',
1174         'common/extension_resource_unittest.cc',
1175         'common/extension_set_unittest.cc',
1176         'common/features/base_feature_provider_unittest.cc',
1177         'common/features/complex_feature_unittest.cc',
1178         'common/features/simple_feature_unittest.cc',
1179         'common/file_util_unittest.cc',
1180         'common/manifest_handler_unittest.cc',
1181         'common/manifest_handlers/externally_connectable_unittest.cc',
1182         'common/manifest_handlers/file_handler_manifest_unittest.cc',
1183         'common/manifest_handlers/oauth2_manifest_unittest.cc',
1184         'common/manifest_handlers/shared_module_manifest_unittest.cc',
1185         'common/message_bundle_unittest.cc',
1186         'common/one_shot_event_unittest.cc',
1187         'common/permissions/api_permission_set_unittest.cc',
1188         'common/permissions/manifest_permission_set_unittest.cc',
1189         'common/permissions/socket_permission_unittest.cc',
1190         'common/permissions/usb_device_permission_unittest.cc',
1191         'common/stack_frame_unittest.cc',
1192         'common/url_pattern_set_unittest.cc',
1193         'common/url_pattern_unittest.cc',
1194         'common/user_script_unittest.cc',
1195         'renderer/activity_log_converter_strategy_unittest.cc',
1196         'renderer/api/serial/data_receiver_unittest.cc',
1197         'renderer/api/serial/data_sender_unittest.cc',
1198         'renderer/api/serial/serial_api_unittest.cc',
1199         'renderer/api_test_base.cc',
1200         'renderer/api_test_base.h',
1201         'renderer/api_test_base_unittest.cc',
1202         'renderer/event_unittest.cc',
1203         'renderer/json_schema_unittest.cc',
1204         'renderer/mojo/keep_alive_client_unittest.cc',
1205         'renderer/messaging_utils_unittest.cc',
1206         'renderer/module_system_test.cc',
1207         'renderer/module_system_test.h',
1208         'renderer/module_system_unittest.cc',
1209         'renderer/safe_builtins_unittest.cc',
1210         'renderer/script_context_set_unittest.cc',
1211         'renderer/utils_unittest.cc',
1212         'test/extensions_unittests_main.cc',
1213       ],
1214       # Disable c4267 warnings until we fix size_t to int truncations.
1215       'msvs_disabled_warnings': [ 4267, ],
1216       'conditions': [
1217         ['OS=="win" and win_use_allocator_shim==1', {
1218           'dependencies': [
1219             '../base/allocator/allocator.gyp:allocator',
1220           ],
1221         }],
1222       ],
1223     },
1224   ]