Fix build break
[chromium-blink-merge.git] / content / content_renderer.gypi
blob2c5c9dee179dcac9c0ea73403cfae5117ba0751c
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   'dependencies': [
7     '../jingle/jingle.gyp:jingle_glue',
8     '../net/net.gyp:net',
9     '../skia/skia.gyp:skia',
10     '../third_party/hyphen/hyphen.gyp:hyphen',
11     '../third_party/icu/icu.gyp:icuuc',
12     '../third_party/icu/icu.gyp:icui18n',
13     '../third_party/libjingle/libjingle.gyp:libjingle',
14     '../third_party/npapi/npapi.gyp:npapi',
15     '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
16     '../ui/native_theme/native_theme.gyp:native_theme',
17     '../ui/surface/surface.gyp:surface',
18     '../v8/tools/gyp/v8.gyp:v8',
19     '../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compositor_bindings',
20     '../webkit/gpu/webkit_gpu.gyp:webkit_gpu',
21     '../webkit/support/webkit_support.gyp:glue',
22     '../webkit/support/webkit_support.gyp:webkit_media',
23   ],
24   'include_dirs': [
25     '..',
26   ],
27   'sources': [
28     'public/renderer/android_content_detection_prefixes.cc',
29     'public/renderer/android_content_detection_prefixes.h',
30     'public/renderer/content_renderer_client.cc',
31     'public/renderer/content_renderer_client.h',
32     'public/renderer/context_menu_client.h',
33     'public/renderer/document_state.cc',
34     'public/renderer/document_state.h',
35     'public/renderer/navigation_state.cc',
36     'public/renderer/navigation_state.h',
37     'public/renderer/password_form_conversion_utils.h',
38     'public/renderer/renderer_ppapi_host.h',
39     'public/renderer/render_process_observer.cc',
40     'public/renderer/render_process_observer.h',
41     'public/renderer/render_thread.cc',
42     'public/renderer/render_thread.h',
43     'public/renderer/render_view.h',
44     'public/renderer/render_view_observer.cc',
45     'public/renderer/render_view_observer.h',
46     'public/renderer/render_view_observer_tracker.h',
47     'public/renderer/render_view_visitor.h',
48     'public/renderer/v8_value_converter.h',
49     'renderer/accessibility/accessibility_node_serializer.cc',
50     'renderer/accessibility/accessibility_node_serializer.h',
51     'renderer/accessibility/renderer_accessibility.cc',
52     'renderer/accessibility/renderer_accessibility.h',
53     'renderer/accessibility/renderer_accessibility_complete.cc',
54     'renderer/accessibility/renderer_accessibility_complete.h',
55     'renderer/accessibility/renderer_accessibility_focus_only.cc',
56     'renderer/accessibility/renderer_accessibility_focus_only.h',
57     'renderer/active_notification_tracker.cc',
58     'renderer/active_notification_tracker.h',
59     'renderer/all_rendering_benchmarks.cc',
60     'renderer/all_rendering_benchmarks.h',
61     'renderer/android/address_detector.cc',
62     'renderer/android/address_detector.h',
63     'renderer/android/content_detector.cc',
64     'renderer/android/content_detector.h',
65     'renderer/android/email_detector.cc',
66     'renderer/android/email_detector.h',
67     'renderer/android/phone_number_detector.cc',
68     'renderer/android/phone_number_detector.h',
69     'renderer/device_orientation_dispatcher.cc',
70     'renderer/device_orientation_dispatcher.h',
71     'renderer/devtools/devtools_agent.cc',
72     'renderer/devtools/devtools_agent.h',
73     'renderer/devtools/devtools_agent_filter.cc',
74     'renderer/devtools/devtools_agent_filter.h',
75     'renderer/devtools/devtools_client.cc',
76     'renderer/devtools/devtools_client.h',
77     'renderer/disambiguation_popup_helper.cc',
78     'renderer/disambiguation_popup_helper.h',
79     'renderer/dom_automation_controller.cc',
80     'renderer/dom_automation_controller.h',
81     'renderer/dom_storage/dom_storage_dispatcher.cc',
82     'renderer/dom_storage/dom_storage_dispatcher.h',
83     'renderer/dom_storage/webstoragearea_impl.cc',
84     'renderer/dom_storage/webstoragearea_impl.h',
85     'renderer/dom_storage/webstoragenamespace_impl.cc',
86     'renderer/dom_storage/webstoragenamespace_impl.h',
87     'renderer/external_popup_menu.cc',
88     'renderer/external_popup_menu.h',
89     'renderer/gamepad_shared_memory_reader.cc',
90     'renderer/gamepad_shared_memory_reader.h',
91     'renderer/geolocation_dispatcher.cc',
92     'renderer/geolocation_dispatcher.h',
93     'renderer/gpu/compositor_output_surface.cc',
94     'renderer/gpu/compositor_output_surface.h',
95     'renderer/gpu/compositor_software_output_device.cc',
96     'renderer/gpu/compositor_software_output_device.h',
97     'renderer/gpu/compositor_software_output_device_gl_adapter.cc',
98     'renderer/gpu/compositor_software_output_device_gl_adapter.h',
99     'renderer/gpu/input_event_filter.cc',
100     'renderer/gpu/input_event_filter.h',
101     'renderer/gpu/input_handler_manager.cc',
102     'renderer/gpu/input_handler_manager.h',
103     'renderer/gpu/gpu_benchmarking_extension.cc',
104     'renderer/gpu/gpu_benchmarking_extension.h',
105     'renderer/gpu/mailbox_output_surface.cc',
106     'renderer/gpu/mailbox_output_surface.h',
107     'renderer/gpu/stream_texture_host_android.cc',
108     'renderer/gpu/stream_texture_host_android.h',
109     'renderer/gpu/render_widget_compositor.cc',
110     'renderer/gpu/render_widget_compositor.h',
111     'renderer/hyphenator/hyphenator.cc',
112     'renderer/hyphenator/hyphenator.h',
113     'renderer/idle_user_detector.cc',
114     'renderer/idle_user_detector.h',
115     'renderer/image_loading_helper.cc',
116     'renderer/image_loading_helper.h',
117     'renderer/input_tag_speech_dispatcher.cc',
118     'renderer/input_tag_speech_dispatcher.h',
119     'renderer/internal_document_state_data.cc',
120     'renderer/internal_document_state_data.h',
121     'renderer/java/java_bridge_channel.cc',
122     'renderer/java/java_bridge_channel.h',
123     'renderer/java/java_bridge_dispatcher.cc',
124     'renderer/java/java_bridge_dispatcher.h',
125     'renderer/load_progress_tracker.cc',
126     'renderer/load_progress_tracker.h',
127     'renderer/media/audio_device_factory.cc',
128     'renderer/media/audio_device_factory.h',
129     'renderer/media/audio_input_message_filter.cc',
130     'renderer/media/audio_input_message_filter.h',
131     'renderer/media/audio_message_filter.cc',
132     'renderer/media/audio_message_filter.h',
133     'renderer/media/audio_renderer_mixer_manager.cc',
134     'renderer/media/audio_renderer_mixer_manager.h',
135     'renderer/media/media_stream_center.h',
136     'renderer/media/media_stream_dependency_factory.h',
137     'renderer/media/media_stream_dispatcher.h',
138     'renderer/media/media_stream_dispatcher_eventhandler.h',
139     'renderer/media/media_stream_impl.h',
140     'renderer/media/pepper_platform_video_decoder_impl.cc',
141     'renderer/media/pepper_platform_video_decoder_impl.h',
142     'renderer/media/render_media_log.cc',
143     'renderer/media/render_media_log.h',
144     'renderer/media/renderer_audio_output_device.cc',
145     'renderer/media/renderer_audio_output_device.h',
146     'renderer/media/renderer_gpu_video_decoder_factories.cc',
147     'renderer/media/renderer_gpu_video_decoder_factories.h',
148     'renderer/media/renderer_webaudiodevice_impl.cc',
149     'renderer/media/renderer_webaudiodevice_impl.h',
150     'renderer/media/rtc_video_renderer.cc',
151     'renderer/media/rtc_video_renderer.h',
152     'renderer/media/stream_texture_factory_impl_android.cc',
153     'renderer/media/stream_texture_factory_impl_android.h',
154     'renderer/media/video_capture_impl.cc',
155     'renderer/media/video_capture_impl.h',
156     'renderer/media/video_capture_impl_manager.cc',
157     'renderer/media/video_capture_impl_manager.h',
158     'renderer/media/video_capture_message_filter.cc',
159     'renderer/media/video_capture_message_filter.h',
160     'renderer/media/webmediaplayer_proxy_impl_android.cc',
161     'renderer/media/webmediaplayer_proxy_impl_android.h',
162     'renderer/memory_benchmarking_extension.cc',
163     'renderer/memory_benchmarking_extension.h',
164     'renderer/mhtml_generator.cc',
165     'renderer/mhtml_generator.h',
166     'renderer/mouse_lock_dispatcher.cc',
167     'renderer/mouse_lock_dispatcher.h',
168     'renderer/notification_provider.cc',
169     'renderer/notification_provider.h',
170     'renderer/paint_aggregator.cc',
171     'renderer/paint_aggregator.h',
172     'renderer/password_form_conversion_utils.cc',
173     'renderer/pepper/content_renderer_pepper_host_factory.cc',
174     'renderer/pepper/content_renderer_pepper_host_factory.h',
175     'renderer/pepper/null_file_system_callback_dispatcher.cc',
176     'renderer/pepper/null_file_system_callback_dispatcher.h',
177     'renderer/pepper/pepper_audio_input_host.cc',
178     'renderer/pepper/pepper_audio_input_host.h',
179     'renderer/pepper/pepper_broker_impl.cc',
180     'renderer/pepper/pepper_broker_impl.h',
181     'renderer/pepper/pepper_device_enumeration_event_handler.cc',
182     'renderer/pepper/pepper_device_enumeration_event_handler.h',
183     'renderer/pepper/pepper_device_enumeration_host_helper.cc',
184     'renderer/pepper/pepper_device_enumeration_host_helper.h',
185     'renderer/pepper/pepper_directory_reader_host.cc',
186     'renderer/pepper/pepper_directory_reader_host.h',
187     'renderer/pepper/pepper_file_chooser_host.cc',
188     'renderer/pepper/pepper_file_chooser_host.h',
189     'renderer/pepper/pepper_file_io_host.cc',
190     'renderer/pepper/pepper_file_io_host.h',
191     'renderer/pepper/pepper_file_system_host.cc',
192     'renderer/pepper/pepper_file_system_host.h',
193     'renderer/pepper/pepper_graphics_2d_host.cc',
194     'renderer/pepper/pepper_graphics_2d_host.h',
195     'renderer/pepper/pepper_hung_plugin_filter.cc',
196     'renderer/pepper/pepper_hung_plugin_filter.h',
197     'renderer/pepper/pepper_in_process_resource_creation.cc',
198     'renderer/pepper/pepper_in_process_resource_creation.h',
199     'renderer/pepper/pepper_in_process_router.cc',
200     'renderer/pepper/pepper_in_process_router.h',
201     'renderer/pepper/pepper_platform_audio_input_impl.cc',
202     'renderer/pepper/pepper_platform_audio_input_impl.h',
203     'renderer/pepper/pepper_platform_audio_output_impl.cc',
204     'renderer/pepper/pepper_platform_audio_output_impl.h',
205     'renderer/pepper/pepper_platform_context_3d_impl.cc',
206     'renderer/pepper/pepper_platform_context_3d_impl.h',
207     'renderer/pepper/pepper_platform_image_2d_impl.cc',
208     'renderer/pepper/pepper_platform_image_2d_impl.h',
209     'renderer/pepper/pepper_platform_video_capture_impl.cc',
210     'renderer/pepper/pepper_platform_video_capture_impl.h',
211     'renderer/pepper/pepper_plugin_delegate_impl.cc',
212     'renderer/pepper/pepper_plugin_delegate_impl.h',
213     'renderer/pepper/pepper_proxy_channel_delegate_impl.cc',
214     'renderer/pepper/pepper_proxy_channel_delegate_impl.h',
215     'renderer/pepper/pepper_truetype_font.h',
216     'renderer/pepper/pepper_truetype_font_android.cc',
217     'renderer/pepper/pepper_truetype_font_host.cc',
218     'renderer/pepper/pepper_truetype_font_host.h',
219     'renderer/pepper/pepper_truetype_font_linux.cc',
220     'renderer/pepper/pepper_truetype_font_mac.mm',
221     'renderer/pepper/pepper_truetype_font_win.cc',
222     'renderer/pepper/pepper_video_capture_host.cc',
223     'renderer/pepper/pepper_video_capture_host.h',
224     'renderer/pepper/pepper_websocket_host.cc',
225     'renderer/pepper/pepper_websocket_host.h',
226     'renderer/pepper/renderer_ppapi_host_impl.cc',
227     'renderer/pepper/renderer_ppapi_host_impl.h',
228     'renderer/plugin_channel_host.cc',
229     'renderer/plugin_channel_host.h',
230     'renderer/browser_plugin/browser_plugin.cc',
231     'renderer/browser_plugin/browser_plugin.h',
232     'renderer/browser_plugin/browser_plugin_backing_store.h',
233     'renderer/browser_plugin/browser_plugin_backing_store.cc',
234     'renderer/browser_plugin/browser_plugin_bindings.h',
235     'renderer/browser_plugin/browser_plugin_bindings.cc',
236     'renderer/browser_plugin/browser_plugin_manager.h',
237     'renderer/browser_plugin/browser_plugin_manager.cc',
238     'renderer/browser_plugin/browser_plugin_manager_factory.h',
239     'renderer/browser_plugin/browser_plugin_manager_impl.h',
240     'renderer/browser_plugin/browser_plugin_manager_impl.cc',
241     'renderer/browser_plugin/browser_plugin_compositing_helper.h',
242     'renderer/browser_plugin/browser_plugin_compositing_helper.cc',
243     'renderer/date_time_formatter.cc',
244     'renderer/date_time_formatter.h',
245     'renderer/render_process.h',
246     'renderer/render_process_impl.cc',
247     'renderer/render_process_impl.h',
248     'renderer/render_thread_impl.cc',
249     'renderer/render_thread_impl.h',
250     'renderer/render_view_impl.cc',
251     'renderer/render_view_impl.h',
252     'renderer/render_view_impl_android.cc',
253     'renderer/render_view_impl_params.cc',
254     'renderer/render_view_impl_params.h',
255     'renderer/render_view_linux.cc',
256     'renderer/render_view_mouse_lock_dispatcher.cc',
257     'renderer/render_view_mouse_lock_dispatcher.h',
258     'renderer/render_view_pepper_helper.cc',
259     'renderer/render_view_pepper_helper.h',
260     'renderer/render_widget.cc',
261     'renderer/render_widget.h',
262     'renderer/render_widget_fullscreen.cc',
263     'renderer/render_widget_fullscreen.h',
264     'renderer/render_widget_fullscreen_pepper.cc',
265     'renderer/render_widget_fullscreen_pepper.h',
266     'renderer/renderer_clipboard_client.cc',
267     'renderer/renderer_clipboard_client.h',
268     'renderer/renderer_date_time_picker.cc',
269     'renderer/renderer_date_time_picker.h',
270     'renderer/renderer_main.cc',
271     'renderer/renderer_main_platform_delegate.h',
272     'renderer/renderer_main_platform_delegate_android.cc',
273     'renderer/renderer_main_platform_delegate_linux.cc',
274     'renderer/renderer_main_platform_delegate_mac.mm',
275     'renderer/renderer_main_platform_delegate_win.cc',
276     'renderer/renderer_webapplicationcachehost_impl.cc',
277     'renderer/renderer_webapplicationcachehost_impl.h',
278     'renderer/renderer_webcookiejar_impl.cc',
279     'renderer/renderer_webcookiejar_impl.h',
280     'renderer/renderer_webcolorchooser_impl.cc',
281     'renderer/renderer_webcolorchooser_impl.h',
282     'renderer/renderer_webkitplatformsupport_impl.cc',
283     'renderer/renderer_webkitplatformsupport_impl.h',
284     'renderer/rendering_benchmark.cc',
285     'renderer/rendering_benchmark.h',
286     'renderer/speech_recognition_dispatcher.cc',
287     'renderer/speech_recognition_dispatcher.h',
288     'renderer/text_input_client_observer.cc',
289     'renderer/text_input_client_observer.h',
290     'renderer/v8_value_converter_impl.cc',
291     'renderer/v8_value_converter_impl.h',
292     'renderer/web_ui_extension.cc',
293     'renderer/web_ui_extension.h',
294     'renderer/web_ui_extension_data.cc',
295     'renderer/web_ui_extension_data.h',
296     'renderer/webplugin_delegate_proxy.cc',
297     'renderer/webplugin_delegate_proxy.h',
298     'renderer/websharedworker_proxy.cc',
299     'renderer/websharedworker_proxy.h',
300     'renderer/websharedworkerrepository_impl.cc',
301     'renderer/websharedworkerrepository_impl.h',
302   ],
303   'conditions': [
304     ['notifications==0', {
305       'sources!': [
306         'renderer/notification_provider.cc',
307         'renderer/active_notification_tracker.cc',
308       ],
309     }],
310     ['input_speech==0', {
311       'sources!': [
312         'renderer/input_tag_speech_dispatcher.cc',
313         'renderer/input_tag_speech_dispatcher.h',
314         'renderer/speech_recognition_dispatcher.cc',
315         'renderer/speech_recognition_dispatcher.h',
316       ]
317     }],
318     ['toolkit_uses_gtk == 1', {
319       'dependencies': [
320         '../build/linux/system.gyp:gtk',
321       ],
322     }],
323     ['OS=="mac"', {
324       'sources!': [
325         'common/process_watcher_posix.cc',
326       ],
327     }],
328     ['OS=="win" and win_use_allocator_shim==1', {
329       'dependencies': [
330           '../base/allocator/allocator.gyp:allocator',
331       ],
332     }],
333     ['OS=="android"', {
334       'dependencies': [
335         '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
336       ],
337     }],
338     # TODO(jrg): remove the OS=="android" section?
339     # http://crbug.com/113172
340     # Understand better how media_stream_ is tied into Chromium.
341     ['enable_webrtc==0 and OS=="android"', {
342       'sources/': [
343         ['exclude', '^renderer/media/media_stream_'],
344       ],
345     }],
346     ['enable_webrtc==1', {
347       'dependencies': [
348         '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
349         '../third_party/libjingle/libjingle.gyp:libpeerconnection',
350         '../third_party/webrtc/modules/modules.gyp:audio_device',
351         '<(DEPTH)/crypto/crypto.gyp:crypto',
352       ],
353       'sources': [
354         'renderer/media/media_stream_center.cc',
355         'renderer/media/media_stream_dependency_factory.cc',
356         'renderer/media/media_stream_dispatcher.cc',
357         'renderer/media/media_stream_impl.cc',
358         'renderer/media/peer_connection_handler_base.cc',
359         'renderer/media/peer_connection_handler_base.h',
360         'renderer/media/peer_connection_tracker.cc',
361         'renderer/media/peer_connection_tracker.h',
362         'renderer/media/rtc_data_channel_handler.cc',
363         'renderer/media/rtc_data_channel_handler.h',
364         'renderer/media/rtc_dtmf_sender_handler.cc',
365         'renderer/media/rtc_dtmf_sender_handler.h',
366         'renderer/media/rtc_media_constraints.cc',
367         'renderer/media/rtc_media_constraints.h',
368         'renderer/media/rtc_peer_connection_handler.cc',
369         'renderer/media/rtc_peer_connection_handler.h',
370         'renderer/media/rtc_video_capture_delegate.cc',
371         'renderer/media/rtc_video_capture_delegate.h',
372         'renderer/media/rtc_video_capturer.cc',
373         'renderer/media/rtc_video_capturer.h',
374         'renderer/media/webaudio_capturer_source.cc',
375         'renderer/media/webaudio_capturer_source.h',
376         'renderer/media/webrtc_audio_capturer.cc',
377         'renderer/media/webrtc_audio_capturer.h',
378         'renderer/media/webrtc_audio_device_impl.cc',
379         'renderer/media/webrtc_audio_device_impl.h',
380         'renderer/media/webrtc_audio_device_not_impl.cc',
381         'renderer/media/webrtc_audio_device_not_impl.h',
382         'renderer/media/webrtc_audio_renderer.cc',
383         'renderer/media/webrtc_audio_renderer.h',
384         'renderer/media/webrtc_local_audio_renderer.cc',
385         'renderer/media/webrtc_local_audio_renderer.h',
386         'renderer/p2p/host_address_request.cc',
387         'renderer/p2p/host_address_request.h',
388         'renderer/p2p/ipc_network_manager.cc',
389         'renderer/p2p/ipc_network_manager.h',
390         'renderer/p2p/ipc_socket_factory.cc',
391         'renderer/p2p/ipc_socket_factory.h',
392         'renderer/p2p/port_allocator.cc',
393         'renderer/p2p/port_allocator.h',
394         'renderer/p2p/socket_client.cc',
395         'renderer/p2p/socket_client.h',
396         'renderer/p2p/socket_dispatcher.cc',
397         'renderer/p2p/socket_dispatcher.h',
398       ],
399     }],
400     ['enable_plugins==1', {
401       'dependencies': [
402         '../ppapi/ppapi_internal.gyp:ppapi_host',
403         '../ppapi/ppapi_internal.gyp:ppapi_proxy',
404         '../ppapi/ppapi_internal.gyp:ppapi_shared',
405       ],
406     }, {  # enable_plugins==0
407       'sources/': [
408         ['exclude', '^renderer/pepper/'],
409       ],
410       'sources!': [
411         'renderer/render_widget_fullscreen_pepper.cc',
412         'renderer/render_widget_fullscreen_pepper.h',
413       ],
414     }],
415     ['java_bridge==1', {
416       'defines': [
417         'ENABLE_JAVA_BRIDGE',
418       ],
419     }, {
420       'sources!': [
421         'renderer/java/java_bridge_channel.cc',
422         'renderer/java/java_bridge_channel.h',
423         'renderer/java/java_bridge_dispatcher.cc',
424         'renderer/java/java_bridge_dispatcher.h',
425       ],
426     }],
427   ],
428   'target_conditions': [
429     ['OS=="android"', {
430       'sources/': [
431         ['include', '^renderer/render_view_linux\\.cc$'],
432       ],
433     }],
434   ],