Connect X11 ConfigureNotify events to Mojo
[chromium-blink-merge.git] / extensions / extensions.gyp
blob79cbe9b5c4c6e6cb8ddfbf8e15a3f38bdf60008c
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       'target_name': 'extensions_common',
12       'type': 'static_library',
13       'dependencies': [
14         # TODO(benwells): figure out what to do with the api target and
15         # api resources compiled into the chrome resource bundle.
16         # http://crbug.com/162530
17         '../chrome/chrome_resources.gyp:chrome_resources',
18         '../components/components.gyp:url_matcher',
19         '../content/content.gyp:content_common',
20         '../crypto/crypto.gyp:crypto',
21         '../ipc/ipc.gyp:ipc',
22         '../net/net.gyp:net',
23         '../third_party/re2/re2.gyp:re2',
24         '../ui/base/ui_base.gyp:ui_base',
25         '../ui/gfx/gfx.gyp:gfx_geometry',
26         '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
27         '../url/url.gyp:url_lib',
28         'common/api/api.gyp:extensions_api',
29         'extensions_strings.gyp:extensions_strings',
30       ],
31       'include_dirs': [
32         '..',
33         '<(INTERMEDIATE_DIR)',
34       ],
35       'sources': [
36         'common/ad_injection_constants.cc',
37         'common/ad_injection_constants.h',
38         'common/api/messaging/message.h',
39         'common/api/sockets/sockets_manifest_data.cc',
40         'common/api/sockets/sockets_manifest_data.h',
41         'common/api/sockets/sockets_manifest_handler.cc',
42         'common/api/sockets/sockets_manifest_handler.h',
43         'common/api/sockets/sockets_manifest_permission.cc',
44         'common/api/sockets/sockets_manifest_permission.h',
45         'common/common_manifest_handlers.cc',
46         'common/common_manifest_handlers.h',
47         'common/constants.cc',
48         'common/constants.h',
49         'common/crx_file.cc',
50         'common/crx_file.h',
51         'common/csp_validator.cc',
52         'common/csp_validator.h',
53         'common/dom_action_types.h',
54         'common/draggable_region.cc',
55         'common/draggable_region.h',
56         'common/error_utils.cc',
57         'common/error_utils.h',
58         'common/event_filter.cc',
59         'common/event_filter.h',
60         'common/event_filtering_info.cc',
61         'common/event_filtering_info.h',
62         'common/event_matcher.cc',
63         'common/event_matcher.h',
64         'common/extension.cc',
65         'common/extension.h',
66         'common/extension_api.cc',
67         'common/extension_api.h',
68         'common/extension_api_stub.cc',
69         'common/extension_icon_set.cc',
70         'common/extension_icon_set.h',
71         'common/extension_l10n_util.cc',
72         'common/extension_l10n_util.h',
73         'common/extension_message_generator.cc',
74         'common/extension_message_generator.h',
75         'common/extension_messages.cc',
76         'common/extension_messages.h',
77         'common/extension_paths.cc',
78         'common/extension_paths.h',
79         'common/extension_resource.cc',
80         'common/extension_resource.h',
81         'common/extension_set.cc',
82         'common/extension_set.h',
83         'common/extension_urls.cc',
84         'common/extension_urls.h',
85         'common/extensions_client.cc',
86         'common/extensions_client.h',
87         'common/feature_switch.cc',
88         'common/feature_switch.h',
89         'common/features/api_feature.cc',
90         'common/features/api_feature.h',
91         'common/features/base_feature_provider.cc',
92         'common/features/base_feature_provider.h',
93         'common/features/complex_feature.cc',
94         'common/features/complex_feature.h',
95         'common/features/feature.cc',
96         'common/features/feature.h',
97         'common/features/feature_provider.cc',
98         'common/features/feature_provider.h',
99         'common/features/json_feature_provider_source.cc',
100         'common/features/json_feature_provider_source.h',
101         'common/features/manifest_feature.cc',
102         'common/features/manifest_feature.h',
103         'common/features/permission_feature.cc',
104         'common/features/permission_feature.h',
105         'common/features/simple_feature.cc',
106         'common/features/simple_feature.h',
107         'common/features/simple_feature_filter.cc',
108         'common/features/simple_feature_filter.h',
109         'common/file_util.cc',
110         'common/file_util.h',
111         'common/id_util.cc',
112         'common/id_util.h',
113         'common/install_warning.cc',
114         'common/install_warning.h',
115         'common/manifest.cc',
116         'common/manifest.h',
117         'common/manifest_constants.cc',
118         'common/manifest_constants.h',
119         'common/manifest_handler.cc',
120         'common/manifest_handler.h',
121         'common/manifest_handler_helpers.cc',
122         'common/manifest_handler_helpers.h',
123         'common/manifest_handlers/background_info.cc',
124         'common/manifest_handlers/background_info.h',
125         'common/manifest_handlers/csp_info.cc',
126         'common/manifest_handlers/csp_info.h',
127         'common/manifest_handlers/externally_connectable.cc',
128         'common/manifest_handlers/externally_connectable.h',
129         'common/manifest_handlers/file_handler_info.cc',
130         'common/manifest_handlers/file_handler_info.h',
131         'common/manifest_handlers/icons_handler.cc',
132         'common/manifest_handlers/icons_handler.h',
133         'common/manifest_handlers/incognito_info.cc',
134         'common/manifest_handlers/incognito_info.h',
135         'common/manifest_handlers/kiosk_mode_info.cc',
136         'common/manifest_handlers/kiosk_mode_info.h',
137         'common/manifest_handlers/offline_enabled_info.cc',
138         'common/manifest_handlers/offline_enabled_info.h',
139         'common/manifest_handlers/permissions_parser.cc',
140         'common/manifest_handlers/permissions_parser.h',
141         'common/manifest_handlers/requirements_info.cc',
142         'common/manifest_handlers/requirements_info.h',
143         'common/manifest_handlers/sandboxed_page_info.cc',
144         'common/manifest_handlers/sandboxed_page_info.h',
145         'common/manifest_handlers/shared_module_info.cc',
146         'common/manifest_handlers/shared_module_info.h',
147         'common/manifest_handlers/web_accessible_resources_info.cc',
148         'common/manifest_handlers/web_accessible_resources_info.h',
149         'common/manifest_handlers/webview_info.cc',
150         'common/manifest_handlers/webview_info.h',
151         'common/message_bundle.cc',
152         'common/message_bundle.h',
153         'common/one_shot_event.cc',
154         'common/one_shot_event.h',
155         'common/permissions/api_permission.cc',
156         'common/permissions/api_permission.h',
157         'common/permissions/api_permission_set.cc',
158         'common/permissions/api_permission_set.h',
159         'common/permissions/base_set_operators.h',
160         'common/permissions/extensions_api_permissions.cc',
161         'common/permissions/extensions_api_permissions.h',
162         'common/permissions/manifest_permission.cc',
163         'common/permissions/manifest_permission.h',
164         'common/permissions/manifest_permission_set.cc',
165         'common/permissions/manifest_permission_set.h',
166         'common/permissions/media_galleries_permission.cc',
167         'common/permissions/media_galleries_permission.h',
168         'common/permissions/media_galleries_permission_data.cc',
169         'common/permissions/media_galleries_permission_data.h',
170         'common/permissions/permission_message.cc',
171         'common/permissions/permission_message.h',
172         'common/permissions/permission_message_provider.cc',
173         'common/permissions/permission_message_provider.h',
174         'common/permissions/permission_message_util.cc',
175         'common/permissions/permission_message_util.h',
176         'common/permissions/permission_set.cc',
177         'common/permissions/permission_set.h',
178         'common/permissions/permissions_data.cc',
179         'common/permissions/permissions_data.h',
180         'common/permissions/permissions_info.cc',
181         'common/permissions/permissions_info.h',
182         'common/permissions/permissions_provider.h',
183         'common/permissions/set_disjunction_permission.h',
184         'common/permissions/settings_override_permission.cc',
185         'common/permissions/settings_override_permission.h',
186         'common/permissions/socket_permission.cc',
187         'common/permissions/socket_permission.h',
188         'common/permissions/socket_permission_data.cc',
189         'common/permissions/socket_permission_data.h',
190         'common/permissions/socket_permission_entry.cc',
191         'common/permissions/socket_permission_entry.h',
192         'common/permissions/usb_device_permission.cc',
193         'common/permissions/usb_device_permission.h',
194         'common/permissions/usb_device_permission_data.cc',
195         'common/permissions/usb_device_permission_data.h',
196         'common/stack_frame.cc',
197         'common/stack_frame.h',
198         'common/switches.cc',
199         'common/switches.h',
200         'common/url_pattern.cc',
201         'common/url_pattern.h',
202         'common/url_pattern_set.cc',
203         'common/url_pattern_set.h',
204         'common/user_script.cc',
205         'common/user_script.h',
206         'common/value_counter.cc',
207         'common/value_counter.h',
208         'common/view_type.cc',
209         'common/view_type.h',
210       ],
211       # Disable c4267 warnings until we fix size_t to int truncations.
212       'msvs_disabled_warnings': [ 4267, ],
213       'conditions': [
214         ['enable_extensions==1', {
215           'dependencies': [
216             '../device/usb/usb.gyp:device_usb',
217           ],
218           'sources!': [
219             'common/extension_api_stub.cc',
220           ],
221         }, {  # enable_extensions == 0
222           'sources!': [
223             'common/extension_api.cc',
224           ],
225         }],
226       ],
227     },
228     {
229       'target_name': 'extensions_browser',
230       'type': 'static_library',
231       'dependencies': [
232         '../components/components.gyp:keyed_service_content',
233         '../components/components.gyp:keyed_service_core',
234         '../components/components.gyp:pref_registry',
235         '../components/components.gyp:usb_service',
236         '../content/content.gyp:content_browser',
237         '../skia/skia.gyp:skia',
238         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
239         'common/api/api.gyp:extensions_api',
240         'extensions_common',
241         'extensions_strings.gyp:extensions_strings',
242       ],
243       'include_dirs': [
244         '..',
245         '<(INTERMEDIATE_DIR)',
246         # Needed to access generated API headers.
247         '<(SHARED_INTERMEDIATE_DIR)',
248         # Needed for grit.
249         '<(SHARED_INTERMEDIATE_DIR)/chrome',
250       ],
251       'sources': [
252         'browser/admin_policy.cc',
253         'browser/admin_policy.h',
254         # NOTE: When moving an API out of Chrome be sure to verify that the
255         # Android build still compiles. See conditions below.
256         'browser/api/api_resource.cc',
257         'browser/api/api_resource.h',
258         'browser/api/api_resource_manager.h',
259         'browser/api/app_runtime/app_runtime_api.cc',
260         'browser/api/app_runtime/app_runtime_api.h',
261         'browser/api/async_api_function.cc',
262         'browser/api/async_api_function.h',
263         'browser/api/dns/dns_api.cc',
264         'browser/api/dns/dns_api.h',
265         'browser/api/dns/host_resolver_wrapper.cc',
266         'browser/api/dns/host_resolver_wrapper.h',
267         'browser/api/extensions_api_client.cc',
268         'browser/api/extensions_api_client.h',
269         'browser/api/power/power_api.cc',
270         'browser/api/power/power_api.h',
271         'browser/api/power/power_api_manager.cc',
272         'browser/api/power/power_api_manager.h',
273         'browser/api/runtime/runtime_api.cc',
274         'browser/api/runtime/runtime_api.h',
275         'browser/api/runtime/runtime_api_delegate.cc',
276         'browser/api/runtime/runtime_api_delegate.h',
277         'browser/api/socket/socket.cc',
278         'browser/api/socket/socket.h',
279         'browser/api/socket/socket_api.cc',
280         'browser/api/socket/socket_api.h',
281         'browser/api/socket/tcp_socket.cc',
282         'browser/api/socket/tcp_socket.h',
283         'browser/api/socket/udp_socket.cc',
284         'browser/api/socket/udp_socket.h',
285         'browser/api/sockets_tcp/sockets_tcp_api.cc',
286         'browser/api/sockets_tcp/sockets_tcp_api.h',
287         'browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc',
288         'browser/api/sockets_tcp/tcp_socket_event_dispatcher.h',
289         'browser/api/sockets_tcp_server/sockets_tcp_server_api.cc',
290         'browser/api/sockets_tcp_server/sockets_tcp_server_api.h',
291         'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc',
292         'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h',
293         'browser/api/sockets_udp/sockets_udp_api.cc',
294         'browser/api/sockets_udp/sockets_udp_api.h',
295         'browser/api/sockets_udp/udp_socket_event_dispatcher.cc',
296         'browser/api/sockets_udp/udp_socket_event_dispatcher.h',
297         'browser/api/storage/leveldb_settings_storage_factory.cc',
298         'browser/api/storage/leveldb_settings_storage_factory.h',
299         'browser/api/storage/local_value_store_cache.cc',
300         'browser/api/storage/local_value_store_cache.h',
301         'browser/api/storage/settings_namespace.cc',
302         'browser/api/storage/settings_namespace.h',
303         'browser/api/storage/settings_observer.h',
304         'browser/api/storage/settings_storage_factory.h',
305         'browser/api/storage/settings_storage_quota_enforcer.cc',
306         'browser/api/storage/settings_storage_quota_enforcer.h',
307         'browser/api/storage/storage_api.cc',
308         'browser/api/storage/storage_api.h',
309         'browser/api/storage/storage_frontend.cc',
310         'browser/api/storage/storage_frontend.h',
311         'browser/api/storage/value_store_cache.cc',
312         'browser/api/storage/value_store_cache.h',
313         'browser/api/storage/weak_unlimited_settings_storage.cc',
314         'browser/api/storage/weak_unlimited_settings_storage.h',
315         'browser/api/test/test_api.cc',
316         'browser/api/test/test_api.h',
317         'browser/api/usb/usb_api.cc',
318         'browser/api/usb/usb_api.h',
319         'browser/api/usb/usb_device_resource.cc',
320         'browser/api/usb/usb_device_resource.h',
321         'browser/api_activity_monitor.h',
322         'browser/app_sorting.h',
323         'browser/blacklist_state.h',
324         'browser/blob_holder.cc',
325         'browser/blob_holder.h',
326         'browser/browser_context_keyed_api_factory.h',
327         'browser/browser_context_keyed_service_factories.cc',
328         'browser/browser_context_keyed_service_factories.h',
329         'browser/component_extension_resource_manager.h',
330         'browser/computed_hashes.cc',
331         'browser/computed_hashes.h',
332         'browser/content_hash_fetcher.cc',
333         'browser/content_hash_fetcher.h',
334         'browser/content_hash_reader.cc',
335         'browser/content_hash_reader.h',
336         'browser/content_hash_tree.cc',
337         'browser/content_hash_tree.h',
338         'browser/content_verifier.cc',
339         'browser/content_verifier.h',
340         'browser/content_verifier_delegate.h',
341         'browser/content_verify_job.cc',
342         'browser/content_verify_job.h',
343         'browser/error_map.cc',
344         'browser/error_map.h',
345         'browser/event_listener_map.cc',
346         'browser/event_listener_map.h',
347         'browser/event_router.cc',
348         'browser/event_router.h',
349         'browser/extension_host.cc',
350         'browser/extension_host.h',
351         'browser/extension_host_delegate.h',
352         'browser/extension_error.cc',
353         'browser/extension_error.h',
354         'browser/extension_function.cc',
355         'browser/extension_function.h',
356         'browser/extension_function_dispatcher.cc',
357         'browser/extension_function_dispatcher.h',
358         'browser/extension_function_registry.cc',
359         'browser/extension_function_registry.h',
360         'browser/extension_function_util.cc',
361         'browser/extension_function_util.h',
362         'browser/extension_icon_image.cc',
363         'browser/extension_icon_image.h',
364         'browser/extension_message_filter.cc',
365         'browser/extension_message_filter.h',
366         'browser/extension_pref_store.cc',
367         'browser/extension_pref_store.h',
368         'browser/extension_pref_value_map.cc',
369         'browser/extension_pref_value_map_factory.cc',
370         'browser/extension_pref_value_map_factory.h',
371         'browser/extension_pref_value_map.h',
372         'browser/extension_prefs.cc',
373         'browser/extension_prefs.h',
374         'browser/extension_prefs_factory.cc',
375         'browser/extension_prefs_factory.h',
376         'browser/extension_prefs_observer.h',
377         'browser/extension_prefs_scope.h',
378         'browser/extension_protocols.cc',
379         'browser/extension_protocols.h',
380         'browser/extension_registry.cc',
381         'browser/extension_registry.h',
382         'browser/extension_registry_factory.cc',
383         'browser/extension_registry_factory.h',
384         'browser/extension_registry_observer.h',
385         'browser/extension_scoped_prefs.h',
386         'browser/extension_system.cc',
387         'browser/extension_system.h',
388         'browser/extension_system_provider.cc',
389         'browser/extension_system_provider.h',
390         'browser/extension_util.cc',
391         'browser/extension_util.h',
392         'browser/extension_web_contents_observer.cc',
393         'browser/extension_web_contents_observer.h',
394         'browser/extensions_browser_client.cc',
395         'browser/extensions_browser_client.h',
396         'browser/external_provider_interface.h',
397         'browser/granted_file_entry.cc',
398         'browser/granted_file_entry.h',
399         'browser/image_loader.cc',
400         'browser/image_loader.h',
401         'browser/image_loader_factory.cc',
402         'browser/image_loader_factory.h',
403         'browser/image_util.cc',
404         'browser/image_util.h',
405         'browser/info_map.cc',
406         'browser/info_map.h',
407         'browser/install_flag.h',
408         'browser/file_highlighter.cc',
409         'browser/file_highlighter.h',
410         'browser/file_reader.cc',
411         'browser/file_reader.h',
412         'browser/lazy_background_task_queue.cc',
413         'browser/lazy_background_task_queue.h',
414         'browser/management_policy.cc',
415         'browser/management_policy.h',
416         'browser/pref_names.cc',
417         'browser/pref_names.h',
418         'browser/process_manager.cc',
419         'browser/process_manager.h',
420         'browser/process_manager_observer.h',
421         'browser/process_map.cc',
422         'browser/process_map.h',
423         'browser/process_map_factory.cc',
424         'browser/process_map_factory.h',
425         'browser/quota_service.cc',
426         'browser/quota_service.h',
427         'browser/renderer_startup_helper.cc',
428         'browser/renderer_startup_helper.h',
429         'browser/runtime_data.cc',
430         'browser/runtime_data.h',
431         'browser/state_store.cc',
432         'browser/state_store.h',
433         'browser/update_observer.h',
434         'browser/value_store/leveldb_value_store.cc',
435         'browser/value_store/leveldb_value_store.h',
436         'browser/value_store/testing_value_store.cc',
437         'browser/value_store/testing_value_store.h',
438         'browser/value_store/value_store.cc',
439         'browser/value_store/value_store.h',
440         'browser/value_store/value_store_change.cc',
441         'browser/value_store/value_store_change.h',
442         'browser/value_store/value_store_frontend.cc',
443         'browser/value_store/value_store_frontend.h',
444         'browser/value_store/value_store_util.cc',
445         'browser/value_store/value_store_util.h',
446         'browser/verified_contents.cc',
447         'browser/verified_contents.h',
448         'browser/view_type_utils.cc',
449         'browser/view_type_utils.h',
450       ],
451       'conditions': [
452         ['enable_extensions==0', {
453           # Exclude all API implementations and the ExtensionsApiClient
454           # interface. Moving an API from src/chrome to src/extensions implies
455           # it can be cleanly disabled with enable_extensions==0.
456           # TODO: Eventually the entire extensions module should not be built
457           # when enable_extensions==0.
458           'sources/': [
459             ['exclude', '^browser/api/'],
460           ],
461           'sources!': [
462             'browser/browser_context_keyed_service_factories.cc',
463             'browser/browser_context_keyed_service_factories.h',
464           ],
465           'dependencies!': [
466             '../components/components.gyp:usb_service',
467           ],
468         }],
469       ],
470       # Disable c4267 warnings until we fix size_t to int truncations.
471       'msvs_disabled_warnings': [ 4267, ],
472     },
473     {
474       'target_name': 'extensions_renderer',
475       'type': 'static_library',
476       'dependencies': [
477         'extensions_resources.gyp:extensions_resources',
478         '../chrome/chrome_resources.gyp:chrome_resources',
479         '../third_party/WebKit/public/blink.gyp:blink',
480       ],
481       'include_dirs': [
482         '..',
483       ],
484       'sources': [
485         'renderer/activity_log_converter_strategy.cc',
486         'renderer/activity_log_converter_strategy.h',
487         'renderer/api_activity_logger.cc',
488         'renderer/api_activity_logger.h',
489         'renderer/api_definitions_natives.cc',
490         'renderer/api_definitions_natives.h',
491         'renderer/app_runtime_custom_bindings.cc',
492         'renderer/app_runtime_custom_bindings.h',
493         'renderer/binding_generating_native_handler.cc',
494         'renderer/binding_generating_native_handler.h',
495         'renderer/blob_native_handler.cc',
496         'renderer/blob_native_handler.h',
497         'renderer/console.cc',
498         'renderer/console.h',
499         'renderer/content_watcher.cc',
500         'renderer/content_watcher.h',
501         'renderer/context_menus_custom_bindings.cc',
502         'renderer/context_menus_custom_bindings.h',
503         'renderer/css_native_handler.cc',
504         'renderer/css_native_handler.h',
505         'renderer/default_dispatcher_delegate.cc',
506         'renderer/default_dispatcher_delegate.h',
507         'renderer/dispatcher.cc',
508         'renderer/dispatcher.h',
509         'renderer/dispatcher_delegate.h',
510         'renderer/document_custom_bindings.cc',
511         'renderer/document_custom_bindings.h',
512         'renderer/dom_activity_logger.cc',
513         'renderer/dom_activity_logger.h',
514         'renderer/event_bindings.cc',
515         'renderer/event_bindings.h',
516         'renderer/extension_helper.cc',
517         'renderer/extension_helper.h',
518         'renderer/extensions_renderer_client.cc',
519         'renderer/extensions_renderer_client.h',
520         'renderer/extension_groups.h',
521         'renderer/file_system_natives.cc',
522         'renderer/file_system_natives.h',
523         'renderer/i18n_custom_bindings.cc',
524         'renderer/i18n_custom_bindings.h',
525         'renderer/id_generator_custom_bindings.cc',
526         'renderer/id_generator_custom_bindings.h',
527         'renderer/lazy_background_page_native_handler.cc',
528         'renderer/lazy_background_page_native_handler.h',
529         'renderer/logging_native_handler.cc',
530         'renderer/logging_native_handler.h',
531         'renderer/messaging_bindings.cc',
532         'renderer/messaging_bindings.h',
533         'renderer/module_system.cc',
534         'renderer/module_system.h',
535         'renderer/native_handler.cc',
536         'renderer/native_handler.h',
537         'renderer/object_backed_native_handler.cc',
538         'renderer/object_backed_native_handler.h',
539         'renderer/print_native_handler.cc',
540         'renderer/print_native_handler.h',
541         'renderer/process_info_native_handler.cc',
542         'renderer/process_info_native_handler.h',
543         'renderer/programmatic_script_injector.cc',
544         'renderer/programmatic_script_injector.h',
545         'renderer/render_view_observer_natives.cc',
546         'renderer/render_view_observer_natives.h',
547         'renderer/request_sender.cc',
548         'renderer/request_sender.h',
549         'renderer/resource_bundle_source_map.cc',
550         'renderer/resource_bundle_source_map.h',
551         'renderer/resources/app_runtime_custom_bindings.js',
552         'renderer/resources/binding.js',
553         'renderer/resources/context_menus_custom_bindings.js',
554         'renderer/resources/entry_id_manager.js',
555         'renderer/resources/event.js',
556         'renderer/resources/extension_custom_bindings.js',
557         'renderer/resources/greasemonkey_api.js',
558         'renderer/resources/i18n_custom_bindings.js',
559         'renderer/resources/image_util.js',
560         'renderer/resources/json_schema.js',
561         'renderer/resources/last_error.js',
562         'renderer/resources/messaging.js',
563         'renderer/resources/messaging_utils.js',
564         'renderer/resources/permissions_custom_bindings.js',
565         'renderer/resources/platform_app.css',
566         'renderer/resources/platform_app.js',
567         'renderer/resources/runtime_custom_bindings.js',
568         'renderer/resources/schema_utils.js',
569         'renderer/resources/send_request.js',
570         'renderer/resources/set_icon.js',
571         'renderer/resources/storage_area.js',
572         'renderer/resources/test_custom_bindings.js',
573         'renderer/resources/uncaught_exception_handler.js',
574         'renderer/resources/unload_event.js',
575         'renderer/resources/utils.js',
576         'renderer/runtime_custom_bindings.cc',
577         'renderer/runtime_custom_bindings.h',
578         'renderer/safe_builtins.cc',
579         'renderer/safe_builtins.h',
580         'renderer/send_request_natives.cc',
581         'renderer/send_request_natives.h',
582         'renderer/set_icon_natives.cc',
583         'renderer/set_icon_natives.h',
584         'renderer/scoped_persistent.h',
585         'renderer/script_context.cc',
586         'renderer/script_context.h',
587         'renderer/script_context_set.cc',
588         'renderer/script_context_set.h',
589         'renderer/script_injection.cc',
590         'renderer/script_injection.h',
591         'renderer/script_injection_manager.cc',
592         'renderer/script_injection_manager.h',
593         'renderer/script_injector.h',
594         'renderer/scripts_run_info.cc',
595         'renderer/scripts_run_info.h',
596         'renderer/static_v8_external_ascii_string_resource.cc',
597         'renderer/static_v8_external_ascii_string_resource.h',
598         'renderer/test_features_native_handler.cc',
599         'renderer/test_features_native_handler.h',
600         'renderer/user_gestures_native_handler.cc',
601         'renderer/user_gestures_native_handler.h',
602         'renderer/user_script_injector.cc',
603         'renderer/user_script_injector.h',
604         'renderer/user_script_set.cc',
605         'renderer/user_script_set.h',
606         'renderer/utils_native_handler.cc',
607         'renderer/utils_native_handler.h',
608         'renderer/v8_context_native_handler.cc',
609         'renderer/v8_context_native_handler.h',
610         'renderer/v8_schema_registry.cc',
611         'renderer/v8_schema_registry.h',
612       ],
613       # Disable c4267 warnings until we fix size_t to int truncations.
614       'msvs_disabled_warnings': [ 4267, ],
615       'conditions': [
616         # Temporary conditions for Android until it can stop building
617         # the extensions module altogether. These exemptions are taken
618         # directly from chrome_renderer.gypi as sources are moved
619         # from //chrome/renderer to //extensions/renderer.
620         ['OS == "android"', {
621           'sources!': [
622             'renderer/api_definitions_natives.cc',
623             'renderer/context_menus_custom_bindings.cc',
624             'renderer/render_view_observer_natives.cc',
625             'renderer/send_request_natives.cc',
626           ],
627         }],
628       ]
629     },
630     {
631       'target_name': 'extensions_test_support',
632       'type': 'static_library',
633       'dependencies': [
634         '../base/base.gyp:base',
635         '../testing/gtest.gyp:gtest',
636         'common/api/api.gyp:extensions_api',
637         'extensions_browser',
638         'extensions_common',
639       ],
640       'include_dirs': [
641         '..',
642         '<(SHARED_INTERMEDIATE_DIR)',
643       ],
644       'sources': [
645         'browser/test_extensions_browser_client.cc',
646         'browser/test_extensions_browser_client.h',
647         'browser/test_management_policy.cc',
648         'browser/test_management_policy.h',
649         'browser/test_runtime_api_delegate.cc',
650         'browser/test_runtime_api_delegate.h',
651         'common/extension_builder.cc',
652         'common/extension_builder.h',
653         'common/test_util.cc',
654         'common/test_util.h',
655         'common/value_builder.cc',
656         'common/value_builder.h',
657         'renderer/test_extensions_renderer_client.cc',
658         'renderer/test_extensions_renderer_client.h',
659       ],
660       # Disable c4267 warnings until we fix size_t to int truncations.
661       'msvs_disabled_warnings': [ 4267, ],
662     },
663     {
664       # TODO(tfarina): Our plan is to build and run this target on Chromium bots
665       # (TS, CQ, Waterfall). First we will get this target passing all tests,
666       # after that we will start the work on buildbot to get this running there.
667       # When we consider this stable in the bots, we can go to unit_tests target
668       # and remove the duplicated entries from there, otherwise if we just
669       # remove them right now we would be losing coverage.
670       # http://crbug.com/348066
671       'target_name': 'extensions_unittests',
672       'type': 'executable',
673       'dependencies': [
674         '../base/base.gyp:base',
675         '../base/base.gyp:test_support_base',
676         '../testing/gmock.gyp:gmock',
677         '../testing/gtest.gyp:gtest',
678         'extensions_common',
679         'extensions_strings.gyp:extensions_strings',
680         'extensions_test_support',
681       ],
682       'sources': [
683         'common/api/sockets/sockets_manifest_permission_unittest.cc',
684         'common/csp_validator_unittest.cc',
685         'common/event_filter_unittest.cc',
686         'common/id_util_unittest.cc',
687         'common/one_shot_event_unittest.cc',
688         'common/permissions/manifest_permission_set_unittest.cc',
689         'common/user_script_unittest.cc',
690         'test/extensions_unittests_main.cc',
691         'test/test_extensions_client.cc',
692         'test/test_extensions_client.h',
693         'test/test_permission_message_provider.cc',
694         'test/test_permission_message_provider.h',
695         'test/test_permissions_provider.cc',
696         'test/test_permissions_provider.h',
697       ],
698     },
699   ]