Android Browser Compositor: Add ScheduleComposite() callback.
[chromium-blink-merge.git] / content / content_common.gypi
blob314a65027caf8e15746c7a862b69adf9637c0076
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     '../base/base.gyp:base',
8     '../build/temp_gyp/googleurl.gyp:googleurl',
9     '../media/media.gyp:media',
10     '../net/net.gyp:net',
11     '../skia/skia.gyp:skia',
12     '../third_party/icu/icu.gyp:icuuc',
13     '../ui/ui.gyp:ui',
14     '../webkit/support/webkit_support.gyp:user_agent',
15   ],
16   'include_dirs': [
17     '..',
18   ],
19   'export_dependent_settings': [
20     '../base/base.gyp:base',
21   ],
22   'sources': [
23     'public/common/bindings_policy.h',
24     'public/common/child_process_host.h',
25     'public/common/child_process_host_delegate.cc',
26     'public/common/child_process_host_delegate.h',
27     'public/common/child_process_sandbox_support_linux.h',
28     'public/common/compositor_util.h',
29     'public/common/content_constants.cc',
30     'public/common/content_constants.h',
31     'public/common/content_descriptors.h',
32     'public/common/content_paths.h',
33     'public/common/content_restriction.h',
34     'public/common/content_switches.cc',
35     'public/common/content_switches.h',
36     'public/common/context_menu_params.cc',
37     'public/common/context_menu_params.h',
38     'public/common/context_menu_source_type.h',
39     'public/common/console_message_level.h',
40     'public/common/dx_diag_node.cc',
41     'public/common/dx_diag_node.h',
42     'public/common/file_chooser_params.cc',
43     'public/common/file_chooser_params.h',
44     'public/common/frame_navigate_params.cc',
45     'public/common/frame_navigate_params.h',
46     'public/common/geoposition.cc',
47     'public/common/geoposition.h',
48     'public/common/gpu_feature_type.h',
49     'public/common/gpu_info.cc',
50     'public/common/gpu_info.h',
51     'public/common/gpu_memory_stats.cc',
52     'public/common/gpu_memory_stats.h',
53     'public/common/gpu_performance_stats.h',
54     'public/common/gpu_switching_option.h',
55     'public/common/injection_test_mac.h',
56     'public/common/injection_test_win.h',
57     'public/common/javascript_message_type.h',
58     'public/common/main_function_params.h',
59     'public/common/media_stream_request.cc',
60     'public/common/media_stream_request.h',
61     'public/common/page_transition_types.cc',
62     'public/common/page_transition_types.h',
63     'public/common/page_type.h',
64     'public/common/page_zoom.h',
65     'public/common/password_form.cc',
66     'public/common/password_form.h',
67     'public/common/pepper_plugin_info.cc',
68     'public/common/pepper_plugin_info.h',
69     'public/common/process_type.h',
70     'public/common/referrer.h',
71     'public/common/renderer_preferences.cc',
72     'public/common/renderer_preferences.h',
73     'public/common/resource_dispatcher_delegate.h',
74     'public/common/resource_response.h',
75     'public/common/result_codes.h',
76     'public/common/sandbox_init.cc',
77     'public/common/sandbox_init.h',
78     'public/common/sandbox_linux.h',
79     'public/common/sandbox_type_mac.h',
80     'public/common/security_style.h',
81     'public/common/serialized_script_value.cc',
82     'public/common/serialized_script_value.h',
83     'public/common/show_desktop_notification_params.cc',
84     'public/common/show_desktop_notification_params.h',
85     'public/common/speech_recognition_error.h',
86     'public/common/speech_recognition_grammar.h',
87     'public/common/speech_recognition_result.h',
88     'public/common/speech_recognition_result.cc',
89     'public/common/ssl_status.cc',
90     'public/common/ssl_status.h',
91     'public/common/stop_find_action.h',
92     'public/common/url_constants.cc',
93     'public/common/url_constants.h',
94     'public/common/url_fetcher.h',
95     'public/common/zygote_fork_delegate_linux.h',
96     'common/accessibility_messages.h',
97     'common/accessibility_node_data.cc',
98     'common/accessibility_node_data.h',
99     'common/android/address_parser.cc',
100     'common/android/address_parser.h',
101     'common/android/address_parser_internal.cc',
102     'common/android/address_parser_internal.h',
103     'common/android/command_line.cc',
104     'common/android/command_line.h',
105     'common/android/common_jni_registrar.cc',
106     'common/android/common_jni_registrar.h',
107     'common/android/device_info.cc',
108     'common/android/device_info.h',
109     'common/android/surface_callback.cc',
110     'common/android/surface_callback.h',
111     'common/android/surface_texture_bridge.cc',
112     'common/android/surface_texture_bridge.h',
113     'common/android/surface_texture_listener.cc',
114     'common/android/surface_texture_listener.h',
115     'common/android/surface_texture_peer.cc',
116     'common/android/surface_texture_peer.h',
117     'common/android/trace_event_binding.cc',
118     'common/android/trace_event_binding.h',
119     'common/appcache/appcache_backend_proxy.cc',
120     'common/appcache/appcache_backend_proxy.h',
121     'common/appcache/appcache_dispatcher.cc',
122     'common/appcache/appcache_dispatcher.h',
123     'common/appcache_messages.h',
124     'common/browser_plugin_messages.h',
125     'common/cc_messages.cc',
126     'common/cc_messages.h',
127     'common/child_histogram_message_filter.cc',
128     'common/child_histogram_message_filter.h',
129     'common/child_process.cc',
130     'common/child_process.h',
131     'common/child_process_host_impl.cc',
132     'common/child_process_host_impl.h',
133     'common/child_process_messages.h',
134     'common/child_process_sandbox_support_impl_linux.cc',
135     'common/child_process_sandbox_support_impl_linux.h',
136     'common/child_process_sandbox_support_impl_shm_linux.cc',
137     'common/child_thread.cc',
138     'common/child_thread.h',
139     'common/child_trace_message_filter.cc',
140     'common/child_trace_message_filter.h',
141     'common/clipboard_messages.cc',
142     'common/clipboard_messages.h',
143     'common/compositor_util.cc',
144     'common/content_constants_internal.cc',
145     'common/content_constants_internal.h',
146     'common/content_export.h',
147     'common/content_message_generator.cc',
148     'common/content_message_generator.h',
149     'common/content_param_traits.cc',
150     'common/content_param_traits.h',
151     'common/content_param_traits_macros.h',
152     'common/content_paths.cc',
153     'common/css_colors.h',
154     'common/database_messages.h',
155     'common/database_util.cc',
156     'common/database_util.h',
157     'common/db_message_filter.cc',
158     'common/db_message_filter.h',
159     'common/debug_flags.cc',
160     'common/debug_flags.h',
161     'common/desktop_notification_messages.h',
162     'common/device_motion_messages.h',
163     'common/device_orientation_messages.h',
164     'common/devtools_messages.h',
165     'common/dom_storage_messages.h',
166     'common/drag_messages.h',
167     'common/drag_traits.h',
168     'common/edit_command.h',
169     'common/fileapi/file_system_dispatcher.cc',
170     'common/fileapi/file_system_dispatcher.h',
171     'common/fileapi/file_system_messages.h',
172     'common/fileapi/webblob_messages.h',
173     'common/fileapi/webblobregistry_impl.cc',
174     'common/fileapi/webblobregistry_impl.h',
175     'common/fileapi/webfilesystem_callback_dispatcher.cc',
176     'common/fileapi/webfilesystem_callback_dispatcher.h',
177     'common/fileapi/webfilesystem_impl.cc',
178     'common/fileapi/webfilesystem_impl.h',
179     'common/fileapi/webfilewriter_impl.cc',
180     'common/fileapi/webfilewriter_impl.h',
181     'common/file_utilities_messages.h',
182     'common/find_match_rect_android.cc',
183     'common/find_match_rect_android.h',
184     'common/font_cache_dispatcher_win.cc',
185     'common/font_cache_dispatcher_win.h',
186     'common/font_config_ipc_linux.cc',
187     'common/font_config_ipc_linux.h',
188     'common/font_list.h',
189     'common/font_list_android.cc',
190     'common/font_list_mac.mm',
191     'common/font_list_win.cc',
192     'common/font_list_x11.cc',
193     'common/gamepad_hardware_buffer.h',
194     'common/gamepad_messages.h',
195     'common/gamepad_seqlock.cc',
196     'common/gamepad_seqlock.h',
197     'common/gamepad_user_gesture.cc',
198     'common/gamepad_user_gesture.h',
199     'common/geolocation_messages.h',
200     'common/gpu/client/command_buffer_proxy_impl.cc',
201     'common/gpu/client/command_buffer_proxy_impl.h',
202     'common/gpu/client/gl_helper.cc',
203     'common/gpu/client/gl_helper.h',
204     'common/gpu/client/gpu_channel_host.cc',
205     'common/gpu/client/gpu_channel_host.h',
206     'common/gpu/client/gpu_video_decode_accelerator_host.cc',
207     'common/gpu/client/gpu_video_decode_accelerator_host.h',
208     'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
209     'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
210     'common/gpu/gl_scoped_binders.cc',
211     'common/gpu/gl_scoped_binders.h',
212     'common/gpu/gpu_channel.cc',
213     'common/gpu/gpu_channel.h',
214     'common/gpu/gpu_channel_manager.cc',
215     'common/gpu/gpu_channel_manager.h',
216     'common/gpu/gpu_command_buffer_stub.cc',
217     'common/gpu/gpu_command_buffer_stub.h',
218     'common/gpu/gpu_config.h',
219     'common/gpu/gpu_memory_allocation.h',
220     'common/gpu/gpu_memory_manager.cc',
221     'common/gpu/gpu_memory_manager.h',
222     'common/gpu/gpu_memory_tracking.h',
223     'common/gpu/gpu_messages.h',
224     'common/gpu/gpu_process_launch_causes.h',
225     'common/gpu/gpu_rendering_stats.cc',
226     'common/gpu/gpu_rendering_stats.h',
227     'common/gpu/gpu_surface_lookup.h',
228     'common/gpu/gpu_surface_lookup.cc',
229     'common/gpu/stream_texture_manager_android.cc',
230     'common/gpu/stream_texture_manager_android.h',
231     'common/gpu/gpu_watchdog.h',
232     'common/gpu/image_transport_surface.h',
233     'common/gpu/image_transport_surface.cc',
234     'common/gpu/image_transport_surface_android.cc',
235     'common/gpu/image_transport_surface_linux.cc',
236     'common/gpu/image_transport_surface_mac.cc',
237     'common/gpu/image_transport_surface_win.cc',
238     'common/gpu/media/avc_config_record_builder.cc',
239     'common/gpu/media/avc_config_record_builder.h',
240     'common/gpu/media/h264_bit_reader.cc',
241     'common/gpu/media/h264_bit_reader.h',
242     'common/gpu/media/h264_parser.cc',
243     'common/gpu/media/h264_parser.h',
244     'common/gpu/media/mac_video_decode_accelerator.h',
245     'common/gpu/media/mac_video_decode_accelerator.mm',
246     'common/gpu/media/gpu_video_decode_accelerator.cc',
247     'common/gpu/media/gpu_video_decode_accelerator.h',
248     'common/gpu/sync_point_manager.h',
249     'common/gpu/sync_point_manager.cc',
250     'common/gpu/texture_image_transport_surface.h',
251     'common/gpu/texture_image_transport_surface.cc',
252     'common/handle_enumerator_win.cc',
253     'common/handle_enumerator_win.h',
254     'common/indexed_db/indexed_db_key.cc',
255     'common/indexed_db/indexed_db_key.h',
256     'common/indexed_db/indexed_db_key_path.cc',
257     'common/indexed_db/indexed_db_key_path.h',
258     'common/indexed_db/indexed_db_key_range.cc',
259     'common/indexed_db/indexed_db_key_range.h',
260     'common/indexed_db/indexed_db_messages.h',
261     'common/indexed_db/indexed_db_param_traits.cc',
262     'common/indexed_db/indexed_db_param_traits.h',
263     'common/indexed_db/indexed_db_dispatcher.cc',
264     'common/indexed_db/indexed_db_dispatcher.h',
265     'common/indexed_db/indexed_db_message_filter.cc',
266     'common/indexed_db/indexed_db_message_filter.h',
267     'common/indexed_db/proxy_webidbcursor_impl.cc',
268     'common/indexed_db/proxy_webidbcursor_impl.h',
269     'common/indexed_db/proxy_webidbdatabase_impl.cc',
270     'common/indexed_db/proxy_webidbdatabase_impl.h',
271     'common/indexed_db/proxy_webidbfactory_impl.cc',
272     'common/indexed_db/proxy_webidbfactory_impl.h',
273     'common/indexed_db/proxy_webidbindex_impl.cc',
274     'common/indexed_db/proxy_webidbindex_impl.h',
275     'common/indexed_db/proxy_webidbobjectstore_impl.cc',
276     'common/indexed_db/proxy_webidbobjectstore_impl.h',
277     'common/indexed_db/proxy_webidbtransaction_impl.cc',
278     'common/indexed_db/proxy_webidbtransaction_impl.h',
279     'common/inter_process_time_ticks_converter.cc',
280     'common/inter_process_time_ticks_converter.h',
281     'common/intents_messages.h',
282     'common/java_bridge_messages.h',
283     'common/mac/attributed_string_coder.h',
284     'common/mac/attributed_string_coder.mm',
285     'common/mac/font_descriptor.h',
286     'common/mac/font_descriptor.mm',
287     'common/mac/font_loader.h',
288     'common/mac/font_loader.mm',
289     'common/media/audio_messages.h',
290     'common/media/audio_param_traits.cc',
291     'common/media/audio_param_traits.h',
292     'common/media/media_player_messages.h',
293     'common/media/media_stream_messages.h',
294     'common/media/media_stream_options.cc',
295     'common/media/media_stream_options.h',
296     'common/media/video_capture.h',
297     'common/media/video_capture_messages.h',
298     'common/message_router.cc',
299     'common/message_router.h',
300     'common/mime_registry_messages.h',
301     'common/navigation_gesture.h',
302     'common/net/url_fetcher.cc',
303     'common/net/url_request_user_data.cc',
304     'common/net/url_request_user_data.h',
305     'common/np_channel_base.cc',
306     'common/np_channel_base.h',
307     'common/npobject_base.h',
308     'common/npobject_proxy.cc',
309     'common/npobject_proxy.h',
310     'common/npobject_stub.cc',
311     'common/npobject_stub.h',
312     'common/npobject_util.cc',
313     'common/npobject_util.h',
314     'common/old_browser_plugin_messages.h',
315     'common/p2p_messages.h',
316     'common/p2p_sockets.h',
317     'common/page_zoom.cc',
318     'common/pepper_messages.h',
319     'common/pepper_plugin_registry.cc',
320     'common/pepper_plugin_registry.h',
321     'common/plugin_carbon_interpose_constants_mac.cc',
322     'common/plugin_carbon_interpose_constants_mac.h',
323     'common/plugin_messages.h',
324     'common/process_type.cc',
325     'common/quota_messages.h',
326     'common/quota_dispatcher.cc',
327     'common/quota_dispatcher.h',
328     'common/request_extra_data.cc',
329     'common/request_extra_data.h',
330     'common/resource_dispatcher.cc',
331     'common/resource_dispatcher.h',
332     'common/resource_messages.cc',
333     'common/resource_messages.h',
334     'common/sandbox_init_mac.cc',
335     'common/sandbox_init_mac.h',
336     'common/sandbox_init_win.cc',
337     'common/sandbox_init_linux.cc',
338     'common/sandbox_mac.h',
339     'common/sandbox_mac.mm',
340     'common/sandbox_linux.h',
341     'common/sandbox_linux.cc',
342     'common/sandbox_policy.cc',
343     'common/sandbox_policy.h',
344     'common/sandbox_seccomp_bpf_linux.cc',
345     'common/sandbox_seccomp_bpf_linux.h',
346     'common/savable_url_schemes.cc',
347     'common/savable_url_schemes.h',
348     'common/set_process_title.cc',
349     'common/set_process_title.h',
350     'common/set_process_title_linux.cc',
351     'common/set_process_title_linux.h',
352     'common/socket_stream.h',
353     'common/socket_stream_dispatcher.cc',
354     'common/socket_stream_dispatcher.h',
355     'common/socket_stream_handle_data.cc',
356     'common/socket_stream_handle_data.h',
357     'common/socket_stream_messages.h',
358     'common/speech_recognition_messages.h',
359     'common/ssl_status_serialization.cc',
360     'common/ssl_status_serialization.h',
361     'common/swapped_out_messages.cc',
362     'common/swapped_out_messages.h',
363     'common/text_input_client_messages.h',
364     'common/url_schemes.cc',
365     'common/url_schemes.h',
366     'common/utility_messages.h',
367     'common/view_messages.h',
368     'common/view_message_enums.h',
369     'common/web_database_observer_impl.cc',
370     'common/web_database_observer_impl.h',
371     'common/webkitplatformsupport_impl.cc',
372     'common/webkitplatformsupport_impl.h',
373     'common/webmessageportchannel_impl.cc',
374     'common/webmessageportchannel_impl.h',
375     'common/worker_messages.h',
376     'common/zygote_commands_linux.h',
377     'public/common/common_param_traits.cc',
378     'public/common/common_param_traits.h',
379     'public/common/common_param_traits_macros.h',
380     'public/common/content_client.cc',
381     'public/common/content_client.h',
382     'public/common/window_container_type.cc',
383     'public/common/window_container_type.h',
384   ],
385   'conditions': [
386     ['OS=="ios"', {
387       'sources/': [
388         # iOS only needs a small portion of content; exclude all the
389         # implementation, and re-include what is used.
390         ['exclude', '\\.(cc|mm)$'],
391         ['include', '_ios\\.(cc|mm)$'],
392         ['include', '^public/common/content_client\\.cc$'],
393         ['include', '^public/common/content_constants\\.cc$'],
394         ['include', '^public/common/content_switches\\.cc$'],
395         ['include', '^public/common/frame_navigate_params\\.cc$'],
396         ['include', '^public/common/page_transition_types\\.cc$'],
397         ['include', '^public/common/speech_recognition_result\\.cc$'],
398         ['include', '^public/common/url_constants\\.cc$'],
399         ['include', '^common/content_paths\\.cc$'],
400         ['include', '^common/net/url_fetcher\\.cc$'],
401         ['include', '^common/net/url_request_user_data\\.cc$'],
402         ['include', '^common/savable_url_schemes\\.cc$'],
403         ['include', '^common/url_schemes\\.cc$'],
404       ],
405     }, {  # OS!="ios"
406       'dependencies': [
407         '../gpu/gpu.gyp:gles2_implementation',
408         '../gpu/gpu.gyp:gpu_ipc',
409         '../ipc/ipc.gyp:ipc',
410         '../media/media.gyp:shared_memory_support',
411         '../ppapi/ppapi_internal.gyp:ppapi_shared',
412         '../third_party/npapi/npapi.gyp:npapi',
413         '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
414         '../ui/gl/gl.gyp:gl',
415         '../webkit/support/webkit_support.gyp:appcache',
416         '../webkit/support/webkit_support.gyp:blob',
417         '../webkit/support/webkit_support.gyp:database',
418         '../webkit/support/webkit_support.gyp:fileapi',
419         '../webkit/support/webkit_support.gyp:webkit_base',
420       ],
421     }],
422     ['OS!="win"', {
423       'sources!': [
424         'common/sandbox_policy.cc',
425         'common/sandbox_policy.h',
426       ],
427     }],
428     ['OS=="android"',{
429       'link_settings': {
430         'libraries': [
431           '-landroid',  # ANativeWindow
432         ],
433       },
434      'dependencies': [
435         'content.gyp:content_jni_headers',
436         'content.gyp:common_aidl',
437       ],
438     }],
439     ['toolkit_uses_gtk == 1', {
440       'dependencies': [
441         '../build/linux/system.gyp:gtk',
442       ],
443     }],
444     ['use_x11 == 1', {
445       'dependencies': [
446         '../build/linux/system.gyp:pangocairo',
447       ],
448       'include_dirs': [
449         '<(DEPTH)/third_party/angle/include',
450       ],
451       'link_settings': {
452         'libraries': [
453           '-lXcomposite',
454         ],
455       },
456     }],
457     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
458       'sources': [
459         'common/gpu/x_util.cc',
460         'common/gpu/x_util.h',
461       ],
462     }],
463     ['enable_gpu==1', {
464       'dependencies': [
465         '../gpu/gpu.gyp:command_buffer_service',
466       ],
467     }],
468     ['target_arch=="arm" and chromeos == 1', {
469       'dependencies': [
470         '../media/media.gyp:media',
471       ],
472       'sources': [
473         'common/gpu/media/gles2_texture_to_egl_image_translator.cc',
474         'common/gpu/media/gles2_texture_to_egl_image_translator.h',
475         'common/gpu/media/omx_video_decode_accelerator.cc',
476         'common/gpu/media/omx_video_decode_accelerator.h',
477       ],
478       'include_dirs': [
479         '<(DEPTH)/third_party/angle/include',
480         '<(DEPTH)/third_party/openmax/il',
481       ],
482       'link_settings': {
483         'libraries': [
484           '-lEGL',
485           '-lGLESv2',
486         ],
487       },
488     }],
489     ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
490       'sources': [
491         'common/gpu/media/h264_dpb.cc',
492         'common/gpu/media/h264_dpb.h',
493         'common/gpu/media/vaapi_h264_decoder.cc',
494         'common/gpu/media/vaapi_h264_decoder.h',
495         'common/gpu/media/vaapi_video_decode_accelerator.cc',
496         'common/gpu/media/vaapi_video_decode_accelerator.h',
497       ],
498       'include_dirs': [
499         '<(DEPTH)/third_party/libva',
500       ],
501     }],
502     ['OS=="win"', {
503       'dependencies': [
504         '../media/media.gyp:media',
505         '../ui/gl/gl.gyp:gl',
506       ],
507       'link_settings': {
508         'libraries': [
509            '-ld3d9.lib',
510            '-ld3dx9.lib',
511            '-ldxva2.lib',
512            '-lstrmiids.lib',
513            '-lmf.lib',
514            '-lmfplat.lib',
515            '-lmfuuid.lib',
516         ],
517         'msvs_settings': {
518           'VCLinkerTool': {
519             'AdditionalLibraryDirectories': ['$(DXSDK_DIR)/lib/x86'],
520             'DelayLoadDLLs': [
521               'd3d9.dll',
522               'd3dx9_43.dll',
523               'dxva2.dll',
524               'mf.dll',
525               'mfplat.dll',
526             ],
527           },
528         },
529       },
530       'sources': [
531         'common/gpu/media/dxva_video_decode_accelerator.cc',
532         'common/gpu/media/dxva_video_decode_accelerator.h',
533       ],
534       'include_dirs': [
535         '<(DEPTH)/third_party/angle/include',
536         '$(DXSDK_DIR)/include',
537       ],
538     }],
539     ['OS=="win" and directxsdk_exists=="True"', {
540       'actions': [
541       {
542         'action_name': 'extract_xinput',
543         'variables': {
544           'input': 'APR2007_xinput_x86.cab',
545           'output': 'xinput1_3.dll',
546         },
547         'inputs': [
548           '../third_party/directxsdk/files/Redist/<(input)',
549         ],
550         'outputs': [
551           '<(PRODUCT_DIR)/<(output)',
552         ],
553         'action': [
554           'python',
555         '../build/extract_from_cab.py',
556         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
557         '<(output)',
558         '<(PRODUCT_DIR)',
559         ],
560       },
561      ]
562     }],
563   ],