Revert of mac: Weakly link against the CoreBluetooth framework. (patchset #2 id:80001...
[chromium-blink-merge.git] / chrome / chrome_renderer.gypi
blob56bb402c105494d618c1a54d9ba44e48ba665d7c
1 # Copyright (c) 2012 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     'chrome_renderer_sources': [
8       'renderer/benchmarking_extension.cc',
9       'renderer/benchmarking_extension.h',
10       'renderer/chrome_content_renderer_client.cc',
11       'renderer/chrome_content_renderer_client.h',
12       'renderer/chrome_render_frame_observer.cc',
13       'renderer/chrome_render_frame_observer.h',
14       'renderer/chrome_render_process_observer.cc',
15       'renderer/chrome_render_process_observer.h',
16       'renderer/chrome_render_view_observer.cc',
17       'renderer/chrome_render_view_observer.h',
18       'renderer/content_settings_observer.cc',
19       'renderer/content_settings_observer.h',
20       'renderer/custom_menu_commands.h',
21       'renderer/external_extension.cc',
22       'renderer/external_extension.h',
23       'renderer/instant_restricted_id_cache.h',
24       'renderer/isolated_world_ids.h',
25       'renderer/loadtimes_extension_bindings.cc',
26       'renderer/loadtimes_extension_bindings.h',
27       'renderer/media/chrome_key_systems.cc',
28       'renderer/media/chrome_key_systems.h',
29       'renderer/net/net_error_helper.cc',
30       'renderer/net/net_error_helper.h',
31       'renderer/net/net_error_page_controller.cc',
32       'renderer/net/net_error_page_controller.h',
33       'renderer/net_benchmarking_extension.cc',
34       'renderer/net_benchmarking_extension.h',
35       'renderer/page_load_histograms.cc',
36       'renderer/page_load_histograms.h',
37       'renderer/plugins/chrome_plugin_placeholder.cc',
38       'renderer/plugins/chrome_plugin_placeholder.h',
39       'renderer/plugins/plugin_uma.cc',
40       'renderer/plugins/plugin_uma.h',
41       'renderer/plugins/shadow_dom_plugin_placeholder.cc',
42       'renderer/plugins/shadow_dom_plugin_placeholder.h',
43       'renderer/prerender/prerender_dispatcher.cc',
44       'renderer/prerender/prerender_dispatcher.h',
45       'renderer/prerender/prerender_extra_data.cc',
46       'renderer/prerender/prerender_extra_data.h',
47       'renderer/prerender/prerender_helper.cc',
48       'renderer/prerender/prerender_helper.h',
49       'renderer/prerender/prerenderer_client.cc',
50       'renderer/prerender/prerenderer_client.h',
51       'renderer/searchbox/search_bouncer.cc',
52       'renderer/searchbox/search_bouncer.h',
53       'renderer/searchbox/searchbox.cc',
54       'renderer/searchbox/searchbox.h',
55       'renderer/searchbox/searchbox_extension.cc',
56       'renderer/searchbox/searchbox_extension.h',
57       'renderer/security_filter_peer.cc',
58       'renderer/security_filter_peer.h',
59       'renderer/tts_dispatcher.cc',
60       'renderer/tts_dispatcher.h',
61       'renderer/web_apps.cc',
62       'renderer/web_apps.h',
63       'renderer/webview_color_overlay.cc',
64       'renderer/webview_color_overlay.h',
65       'renderer/worker_content_settings_client_proxy.cc',
66       'renderer/worker_content_settings_client_proxy.h',
67     ],
68     'chrome_renderer_webrtc_sources': [
69       'renderer/media/chrome_webrtc_log_message_delegate.cc',
70       'renderer/media/chrome_webrtc_log_message_delegate.h',
71       'renderer/media/webrtc_logging_message_filter.cc',
72       'renderer/media/webrtc_logging_message_filter.h',
73     ],
74     'chrome_renderer_webrtc_extensions_sources': [
75       'renderer/extensions/cast_streaming_native_handler.cc',
76       'renderer/extensions/cast_streaming_native_handler.h',
77     ],
78     'chrome_renderer_extensions_sources': [
79       'renderer/extensions/app_bindings.cc',
80       'renderer/extensions/app_bindings.h',
81       'renderer/extensions/automation_internal_custom_bindings.cc',
82       'renderer/extensions/automation_internal_custom_bindings.h',
83       'renderer/extensions/chrome_extensions_dispatcher_delegate.cc',
84       'renderer/extensions/chrome_extensions_dispatcher_delegate.h',
85       'renderer/extensions/chrome_extensions_renderer_client.cc',
86       'renderer/extensions/chrome_extensions_renderer_client.h',
87       'renderer/extensions/chrome_v8_extension_handler.cc',
88       'renderer/extensions/chrome_v8_extension_handler.h',
89       'renderer/extensions/extension_localization_peer.cc',
90       'renderer/extensions/extension_localization_peer.h',
91       'renderer/extensions/file_browser_handler_custom_bindings.cc',
92       'renderer/extensions/file_browser_handler_custom_bindings.h',
93       'renderer/extensions/file_manager_private_custom_bindings.cc',
94       'renderer/extensions/file_manager_private_custom_bindings.h',
95       'renderer/extensions/media_galleries_custom_bindings.cc',
96       'renderer/extensions/media_galleries_custom_bindings.h',
97       'renderer/extensions/notifications_native_handler.cc',
98       'renderer/extensions/notifications_native_handler.h',
99       'renderer/extensions/page_capture_custom_bindings.cc',
100       'renderer/extensions/page_capture_custom_bindings.h',
101       'renderer/extensions/platform_keys_natives.cc',
102       'renderer/extensions/platform_keys_natives.h',
103       'renderer/extensions/renderer_permissions_policy_delegate.cc',
104       'renderer/extensions/renderer_permissions_policy_delegate.h',
105       'renderer/extensions/resource_request_policy.cc',
106       'renderer/extensions/resource_request_policy.h',
107       'renderer/extensions/sync_file_system_custom_bindings.cc',
108       'renderer/extensions/sync_file_system_custom_bindings.h',
109       'renderer/extensions/tabs_custom_bindings.cc',
110       'renderer/extensions/tabs_custom_bindings.h',
111       'renderer/extensions/webstore_bindings.cc',
112       'renderer/extensions/webstore_bindings.h',
113       'renderer/media/cast_ipc_dispatcher.cc',
114       'renderer/media/cast_ipc_dispatcher.h',
115       'renderer/media/cast_receiver_audio_valve.cc',
116       'renderer/media/cast_receiver_audio_valve.h',
117       'renderer/media/cast_receiver_session.cc',
118       'renderer/media/cast_receiver_session.h',
119       'renderer/media/cast_receiver_session_delegate.cc',
120       'renderer/media/cast_receiver_session_delegate.h',
121       'renderer/media/cast_rtp_stream.cc',
122       'renderer/media/cast_rtp_stream.h',
123       'renderer/media/cast_session.cc',
124       'renderer/media/cast_session.h',
125       'renderer/media/cast_session_delegate.cc',
126       'renderer/media/cast_session_delegate.h',
127       'renderer/media/cast_threads.cc',
128       'renderer/media/cast_threads.h',
129       'renderer/media/cast_transport_sender_ipc.cc',
130       'renderer/media/cast_transport_sender_ipc.h',
131       'renderer/media/cast_udp_transport.cc',
132       'renderer/media/cast_udp_transport.h',
133       'renderer/resources/extensions/app_custom_bindings.js',
134       'renderer/resources/extensions/automation_custom_bindings.js',
135       'renderer/resources/extensions/browser_action_custom_bindings.js',
136       'renderer/resources/extensions/chrome_direct_setting.js',
137       'renderer/resources/extensions/chrome_setting.js',
138       'renderer/resources/extensions/content_setting.js',
139       'renderer/resources/extensions/declarative_content_custom_bindings.js',
140       'renderer/resources/extensions/enterprise_platform_keys_custom_bindings.js',
141       'renderer/resources/extensions/feedback_private_custom_bindings.js',
142       'renderer/resources/extensions/file_browser_handler_custom_bindings.js',
143       'renderer/resources/extensions/file_entry_binding_util.js',
144       'renderer/resources/extensions/file_manager_private_custom_bindings.js',
145       'renderer/resources/extensions/file_system_custom_bindings.js',
146       'renderer/resources/extensions/file_system_provider_custom_bindings.js',
147       'renderer/resources/extensions/gcm_custom_bindings.js',
148       'renderer/resources/extensions/identity_custom_bindings.js',
149       'renderer/resources/extensions/image_writer_private_custom_bindings.js',
150       'renderer/resources/extensions/input.ime_custom_bindings.js',
151       'renderer/resources/extensions/log_private_custom_bindings.js',
152       'renderer/resources/extensions/notifications_custom_bindings.js',
153       'renderer/resources/extensions/omnibox_custom_bindings.js',
154       'renderer/resources/extensions/page_action_custom_bindings.js',
155       'renderer/resources/extensions/page_capture_custom_bindings.js',
156       'renderer/resources/extensions/system_indicator_custom_bindings.js',
157       'renderer/resources/extensions/tts_custom_bindings.js',
158       'renderer/resources/extensions/tts_engine_custom_bindings.js',
159     ],
160     'chrome_renderer_non_android_sources': [
161       'renderer/prerender/prerender_media_load_deferrer.cc',
162       'renderer/prerender/prerender_media_load_deferrer.h',
163     ],
164     'chrome_renderer_plugin_sources': [
165       'renderer/pepper/chrome_renderer_pepper_host_factory.cc',
166       'renderer/pepper/chrome_renderer_pepper_host_factory.h',
167       'renderer/pepper/pepper_flash_drm_renderer_host.cc',
168       'renderer/pepper/pepper_flash_drm_renderer_host.h',
169       'renderer/pepper/pepper_flash_font_file_host.cc',
170       'renderer/pepper/pepper_flash_font_file_host.h',
171       'renderer/pepper/pepper_flash_fullscreen_host.cc',
172       'renderer/pepper/pepper_flash_fullscreen_host.h',
173       'renderer/pepper/pepper_flash_menu_host.cc',
174       'renderer/pepper/pepper_flash_menu_host.h',
175       'renderer/pepper/pepper_flash_renderer_host.cc',
176       'renderer/pepper/pepper_flash_renderer_host.h',
177       'renderer/pepper/pepper_helper.cc',
178       'renderer/pepper/pepper_helper.h',
179       'renderer/pepper/pepper_shared_memory_message_filter.cc',
180       'renderer/pepper/pepper_shared_memory_message_filter.h',
181       'renderer/pepper/pepper_uma_host.cc',
182       'renderer/pepper/pepper_uma_host.h',
183       'renderer/plugins/plugin_preroller.cc',
184       'renderer/plugins/plugin_preroller.h',
185     ],
186     # For safe_browsing==1 or safe_browsing==2.
187     'chrome_renderer_basic_safe_browsing_sources': [
188       'renderer/safe_browsing/malware_dom_details.cc',
189       'renderer/safe_browsing/malware_dom_details.h',
190     ],
191     # For safe_browsing==1 only.
192     'chrome_renderer_safe_browsing_sources': [
193       'renderer/safe_browsing/feature_extractor_clock.cc',
194       'renderer/safe_browsing/feature_extractor_clock.h',
195       'renderer/safe_browsing/features.cc',
196       'renderer/safe_browsing/features.h',
197       'renderer/safe_browsing/murmurhash3_util.cc',
198       'renderer/safe_browsing/murmurhash3_util.h',
199       'renderer/safe_browsing/phishing_classifier.cc',
200       'renderer/safe_browsing/phishing_classifier.h',
201       'renderer/safe_browsing/phishing_classifier_delegate.cc',
202       'renderer/safe_browsing/phishing_classifier_delegate.h',
203       'renderer/safe_browsing/phishing_dom_feature_extractor.cc',
204       'renderer/safe_browsing/phishing_dom_feature_extractor.h',
205       'renderer/safe_browsing/phishing_term_feature_extractor.cc',
206       'renderer/safe_browsing/phishing_term_feature_extractor.h',
207       'renderer/safe_browsing/phishing_url_feature_extractor.cc',
208       'renderer/safe_browsing/phishing_url_feature_extractor.h',
209       'renderer/safe_browsing/scorer.cc',
210       'renderer/safe_browsing/scorer.h',
211     ],
212     'chrome_renderer_spellchecker_sources': [
213       'renderer/spellchecker/cocoa_spelling_engine_mac.cc',
214       'renderer/spellchecker/cocoa_spelling_engine_mac.h',
215       'renderer/spellchecker/custom_dictionary_engine.cc',
216       'renderer/spellchecker/custom_dictionary_engine.h',
217       'renderer/spellchecker/hunspell_engine.cc',
218       'renderer/spellchecker/hunspell_engine.h',
219       'renderer/spellchecker/spellcheck.cc',
220       'renderer/spellchecker/spellcheck.h',
221       'renderer/spellchecker/spellcheck_language.cc',
222       'renderer/spellchecker/spellcheck_language.h',
223       'renderer/spellchecker/spellcheck_provider.cc',
224       'renderer/spellchecker/spellcheck_provider.h',
225       'renderer/spellchecker/spellcheck_worditerator.cc',
226       'renderer/spellchecker/spellcheck_worditerator.h',
227       'renderer/spellchecker/spelling_engine.h',
228     ],
229     'chrome_renderer_printing_sources': [
230       'renderer/printing/chrome_print_web_view_helper_delegate.cc',
231       'renderer/printing/chrome_print_web_view_helper_delegate.h',
232     ],
233     'chrome_renderer_full_printing_sources': [
234       'renderer/pepper/chrome_pdf_print_client.cc',
235       'renderer/pepper/chrome_pdf_print_client.h',
236     ],
237   },
238   'targets': [
239     {
240       'target_name': 'renderer',
241       'type': 'static_library',
242       'variables': { 'enable_wexit_time_destructors': 1, },
243       'dependencies': [
244         'common',
245         'common_net',
246         'chrome_resources.gyp:chrome_resources',
247         'chrome_resources.gyp:chrome_strings',
248         '../third_party/re2/re2.gyp:re2',
249         '../components/components.gyp:autofill_content_renderer',
250         '../components/components.gyp:content_settings_content_common',
251         '../components/components.gyp:cdm_renderer',
252         '../components/components.gyp:data_reduction_proxy_content_common',
253         '../components/components.gyp:network_hints_renderer',
254         '../components/components.gyp:error_page_renderer',
255         '../components/components.gyp:startup_metric_utils',
256         '../components/components.gyp:password_manager_content_renderer',
257         '../components/components.gyp:plugins_renderer',
258         '../components/components.gyp:translate_content_renderer',
259         '../components/components.gyp:visitedlink_renderer',
260         '../components/components.gyp:web_cache_renderer',
261         '../content/app/resources/content_resources.gyp:content_resources',
262         '../content/app/strings/content_strings.gyp:content_strings',
263         '../content/content.gyp:content_renderer',
264         '../net/net.gyp:net',
265         '../skia/skia.gyp:skia',
266         '../third_party/WebKit/public/blink.gyp:blink',
267         '../third_party/icu/icu.gyp:icui18n',
268         '../third_party/icu/icu.gyp:icuuc',
269         '../third_party/npapi/npapi.gyp:npapi',
270         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
271       ],
272       'include_dirs': [
273         '..',
274         # Needed by chrome_content_renderer_client.cc.
275         '<(SHARED_INTERMEDIATE_DIR)',
276       ],
277       'sources': [
278         '<@(chrome_renderer_sources)',
279       ],
280       'conditions': [
281         ['disable_nacl!=1', {
282           'dependencies': [
283             '../components/nacl.gyp:nacl',
284             '../components/nacl.gyp:nacl_renderer',
285           ],
286         }],
287         ['enable_plugins==1', {
288           'sources': [
289             '<@(chrome_renderer_plugin_sources)',
290           ],
291           'dependencies': [
292             '../components/components.gyp:pdf_renderer',
293             '../ppapi/ppapi_internal.gyp:ppapi_host',
294             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
295             '../ppapi/ppapi_internal.gyp:ppapi_ipc',
296             '../ppapi/ppapi_internal.gyp:ppapi_shared',
297           ],
298         }],
299         ['safe_browsing==1 or safe_browsing==2', {
300           'sources': [
301             '<@(chrome_renderer_basic_safe_browsing_sources)',
302           ],
303         }],
304         ['safe_browsing==1', {
305           'sources': [
306             '<@(chrome_renderer_safe_browsing_sources)',
307           ],
308           'dependencies': [
309             'safe_browsing_proto',
310             '../third_party/smhasher/smhasher.gyp:murmurhash3',
311           ],
312         }],
313         ['enable_extensions==1', {
314           'dependencies': [
315             '../extensions/extensions.gyp:extensions_renderer',
316             '../extensions/extensions_resources.gyp:extensions_resources',
317             '../media/cast/cast.gyp:cast_logging_proto',
318             '../media/cast/cast.gyp:cast_net',
319             '../media/cast/cast.gyp:cast_receiver',
320             '../media/cast/cast.gyp:cast_sender',
321             # TODO(hclam): See crbug.com/298380 for details.
322             # We should isolate the APIs needed by the renderer.
323             '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
324           ],
325           'sources': [
326             '<@(chrome_renderer_extensions_sources)',
327           ],
328         }],
329         ['enable_webrtc==1', {
330           'sources': [
331             '<@(chrome_renderer_webrtc_sources)',
332           ],
333         }],
334         ['enable_extensions==1 and enable_webrtc==1', {
335           'sources': [
336             '<@(chrome_renderer_webrtc_extensions_sources)',
337           ],
338         }],
339         ['enable_spellcheck==1', {
340           'sources': [
341             '<@(chrome_renderer_spellchecker_sources)',
342           ],
343           'dependencies': [
344             '../third_party/hunspell/hunspell.gyp:hunspell',
345           ],
346         }],
347         ['OS=="mac"', {
348           'dependencies': [
349             '../third_party/mach_override/mach_override.gyp:mach_override',
350           ],
351         }],
352         ['enable_basic_printing==1 or enable_print_preview==1', {
353           'dependencies': [
354             '../components/components.gyp:printing_renderer',
355             '../printing/printing.gyp:printing',
356           ],
357           'sources': [
358             '<@(chrome_renderer_printing_sources)',
359           ],
360         }],
361         ['enable_print_preview==1', {
362           'sources': [
363             '<@(chrome_renderer_full_printing_sources)',
364           ],
365         }],
366         ['OS!="android"', {
367           'sources': [
368             '<@(chrome_renderer_non_android_sources)',
369           ],
370         }],
371         ['OS=="win"', {
372           'dependencies': [
373             '../chrome_elf/chrome_elf.gyp:chrome_elf',
374             '../components/components.gyp:dom_distiller_core',  # Needed by chrome_content_renderer_client.cc.
375           ],
376           'include_dirs': [
377             '<(DEPTH)/third_party/wtl/include',
378           ],
379           'conditions': [
380             ['win_use_allocator_shim==1', {
381               'dependencies': [
382                 '<(allocator_target)',
383               ],
384               'export_dependent_settings': [
385                 '<(allocator_target)',
386               ],
387             }],
388           ],
389         }],
390       ],
391     },
392   ],