Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / content_common.gypi
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.
4
5 {
6   'dependencies': [
7     '../base/base.gyp:base',
8     '../components/tracing.gyp:tracing',
9     '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
10     '../net/net.gyp:net',
11     '../skia/skia.gyp:skia',
12     '../third_party/WebKit/public/blink_headers.gyp:blink_headers',
13     '../third_party/icu/icu.gyp:icuuc',
14     '../ui/accessibility/accessibility.gyp:accessibility',
15     '../ui/base/ui_base.gyp:ui_base',
16     '../ui/events/ipc/events_ipc.gyp:events_ipc',
17     '../ui/gfx/gfx.gyp:gfx',
18     '../ui/gfx/gfx.gyp:gfx_geometry',
19     '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
20     '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
21     '../url/url.gyp:url_lib',
22   ],
23   'include_dirs': [
24     '..',
25   ],
26   'export_dependent_settings': [
27     '../base/base.gyp:base',
28     # The public content API headers directly include Blink API headers, so we
29     # have to export the blink header settings so that relative paths in these
30     # headers resolve correctly.
31     '../third_party/WebKit/public/blink_headers.gyp:blink_headers',
32   ],
33   'variables': {
34     'public_common_sources': [
35       'public/common/appcache_info.h',
36       'public/common/bindings_policy.h',
37       'public/common/child_process_host.h',
38       'public/common/child_process_host_delegate.cc',
39       'public/common/child_process_host_delegate.h',
40       'public/common/child_process_sandbox_support_linux.h',
41       'public/common/color_suggestion.cc',
42       'public/common/color_suggestion.h',
43       'public/common/common_param_traits.cc',
44       'public/common/common_param_traits.h',
45       'public/common/common_param_traits_macros.h',
46       'public/common/console_message_level.h',
47       'public/common/content_client.cc',
48       'public/common/content_client.h',
49       'public/common/content_constants.cc',
50       'public/common/content_constants.h',
51       'public/common/content_descriptors.h',
52       'public/common/content_ipc_logging.h',
53       'public/common/content_paths.h',
54       'public/common/content_switches.cc',
55       'public/common/content_switches.h',
56       'public/common/context_menu_params.cc',
57       'public/common/context_menu_params.h',
58       'public/common/drop_data.cc',
59       'public/common/drop_data.h',
60       'public/common/eme_codec.h',
61       'public/common/favicon_url.cc',
62       'public/common/favicon_url.h',
63       'public/common/file_chooser_params.cc',
64       'public/common/file_chooser_params.h',
65       'public/common/frame_navigate_params.cc',
66       'public/common/frame_navigate_params.h',
67       'public/common/geoposition.cc',
68       'public/common/geoposition.h',
69       'public/common/gpu_memory_stats.cc',
70       'public/common/gpu_memory_stats.h',
71       'public/common/injection_test_mac.h',
72       'public/common/injection_test_win.h',
73       'public/common/javascript_message_type.h',
74       'public/common/manifest.cc',
75       'public/common/manifest.h',
76       'public/common/main_function_params.h',
77       'public/common/media_stream_request.cc',
78       'public/common/media_stream_request.h',
79       'public/common/menu_item.cc',
80       'public/common/menu_item.h',
81       'public/common/page_state.cc',
82       'public/common/page_state.h',
83       'public/common/page_type.h',
84       'public/common/page_zoom.h',
85       'public/common/pepper_plugin_info.cc',
86       'public/common/pepper_plugin_info.h',
87       'public/common/process_type.h',
88       'public/common/push_messaging_status.cc',
89       'public/common/push_messaging_status.h',
90       'public/common/referrer.h',
91       'public/common/renderer_preferences.cc',
92       'public/common/renderer_preferences.h',
93       'public/common/resource_devtools_info.cc',
94       'public/common/resource_devtools_info.h',
95       'public/common/resource_response.h',
96       'public/common/resource_response_info.cc',
97       'public/common/resource_response_info.h',
98       'public/common/resource_type.cc',
99       'public/common/resource_type.h',
100       'public/common/result_codes.h',
101       'public/common/result_codes_list.h',
102       'public/common/sandbox_init.h',
103       'public/common/sandbox_linux.h',
104       'public/common/sandbox_type_mac.h',
105       'public/common/sandboxed_process_launcher_delegate.cc',
106       'public/common/sandboxed_process_launcher_delegate.h',
107       'public/common/security_style.h',
108       'public/common/service_registry.h',
109       'public/common/show_desktop_notification_params.cc',
110       'public/common/show_desktop_notification_params.h',
111       'public/common/signed_certificate_timestamp_id_and_status.cc',
112       'public/common/signed_certificate_timestamp_id_and_status.h',
113       'public/common/speech_recognition_error.h',
114       'public/common/speech_recognition_grammar.h',
115       'public/common/speech_recognition_result.cc',
116       'public/common/speech_recognition_result.h',
117       'public/common/ssl_status.cc',
118       'public/common/ssl_status.h',
119       'public/common/stop_find_action.h',
120       'public/common/storage_quota_params.h',
121       'public/common/three_d_api_types.h',
122       'public/common/top_controls_state.h',
123       'public/common/top_controls_state_list.h',
124       'public/common/url_constants.cc',
125       'public/common/url_constants.h',
126       'public/common/url_fetcher.h',
127       'public/common/url_utils.cc',
128       'public/common/url_utils.h',
129       'public/common/user_agent.h',
130       'public/common/web_preferences.cc',
131       'public/common/web_preferences.h',
132       'public/common/webplugininfo.cc',
133       'public/common/webplugininfo.h',
134       'public/common/window_container_type.cc',
135       'public/common/window_container_type.h',
136       'public/common/zygote_fork_delegate_linux.h',
137     ],
138     'private_common_sources': [
139       'common/accessibility_messages.h',
140       'common/all_messages.h',
141       'common/android/address_parser.cc',
142       'common/android/address_parser.h',
143       'common/android/address_parser_internal.cc',
144       'common/android/address_parser_internal.h',
145       'common/android/common_jni_registrar.cc',
146       'common/android/common_jni_registrar.h',
147       'common/android/gin_java_bridge_errors.cc',
148       'common/android/gin_java_bridge_errors.h',
149       'common/android/gin_java_bridge_value.cc',
150       'common/android/gin_java_bridge_value.h',
151       'common/android/hash_set.cc',
152       'common/android/hash_set.h',
153       'common/android/surface_texture_lookup.cc',
154       'common/android/surface_texture_lookup.h',
155       'common/android/surface_texture_peer.cc',
156       'common/android/surface_texture_peer.h',
157       'common/appcache_interfaces.cc',
158       'common/appcache_interfaces.h',
159       'common/appcache_messages.h',
160       'common/battery_status_messages.h',
161       'common/browser_plugin/browser_plugin_constants.cc',
162       'common/browser_plugin/browser_plugin_constants.h',
163       'common/browser_plugin/browser_plugin_messages.h',
164       'common/cc_messages.cc',
165       'common/cc_messages.h',
166       'common/child_process_host_impl.cc',
167       'common/child_process_host_impl.h',
168       'common/child_process_messages.h',
169       'common/child_process_sandbox_support_impl_linux.cc',
170       'common/child_process_sandbox_support_impl_linux.h',
171       'common/child_process_sandbox_support_impl_shm_linux.cc',
172       'common/clipboard_format.h',
173       'common/clipboard_messages.h',
174       'common/content_constants_internal.cc',
175       'common/content_constants_internal.h',
176       'common/content_export.h',
177       'common/content_ipc_logging.cc',
178       'common/content_message_generator.cc',
179       'common/content_message_generator.h',
180       'common/content_param_traits.cc',
181       'common/content_param_traits.h',
182       'common/content_param_traits_macros.h',
183       'common/content_paths.cc',
184       'common/content_switches_internal.cc',
185       'common/content_switches_internal.h',
186       'common/cookie_data.cc',
187       'common/cookie_data.h',
188       'common/cursors/webcursor.cc',
189       'common/cursors/webcursor.h',
190       'common/cursors/webcursor_android.cc',
191       'common/cursors/webcursor_aura.cc',
192       'common/cursors/webcursor_aurawin.cc',
193       'common/cursors/webcursor_aurax11.cc',
194       'common/cursors/webcursor_mac.mm',
195       'common/cursors/webcursor_ozone.cc',
196       'common/database_messages.h',
197       'common/date_time_suggestion.h',
198       'common/desktop_notification_messages.h',
199       'common/device_sensors/device_light_data.h',
200       'common/device_sensors/device_light_hardware_buffer.h',
201       'common/device_sensors/device_light_messages.h',
202       'common/device_sensors/device_motion_hardware_buffer.h',
203       'common/device_sensors/device_motion_messages.h',
204       'common/device_sensors/device_orientation_hardware_buffer.h',
205       'common/device_sensors/device_orientation_messages.h',
206       'common/devtools_messages.h',
207       'common/dom_storage/dom_storage_map.cc',
208       'common/dom_storage/dom_storage_map.h',
209       'common/dom_storage/dom_storage_messages.h',
210       'common/drag_event_source_info.h',
211       'common/drag_messages.h',
212       'common/drag_traits.h',
213       'common/edit_command.h',
214       'common/file_utilities_messages.h',
215       'common/fileapi/file_system_messages.h',
216       'common/fileapi/webblob_messages.h',
217       'common/font_cache_dispatcher_win.cc',
218       'common/font_cache_dispatcher_win.h',
219       'common/font_config_ipc_linux.cc',
220       'common/font_config_ipc_linux.h',
221       'common/font_list.cc',
222       'common/font_list.h',
223       'common/font_list_android.cc',
224       'common/font_list_mac.mm',
225       'common/font_list_ozone.cc',
226       'common/font_list_pango.cc',
227       'common/font_list_win.cc',
228       'common/frame_message_enums.h',
229       'common/frame_messages.h',
230       'common/frame_param.cc',
231       'common/frame_param.h',
232       'common/frame_param_macros.h',
233       'common/gamepad_hardware_buffer.h',
234       'common/gamepad_messages.h',
235       'common/gamepad_param_traits.cc',
236       'common/gamepad_param_traits.h',
237       'common/gamepad_user_gesture.cc',
238       'common/gamepad_user_gesture.h',
239       'common/geolocation_messages.h',
240       'common/gin_java_bridge_messages.h',
241       'common/gpu/client/command_buffer_proxy_impl.cc',
242       'common/gpu/client/command_buffer_proxy_impl.h',
243       'common/gpu/client/context_provider_command_buffer.cc',
244       'common/gpu/client/context_provider_command_buffer.h',
245       'common/gpu/client/gl_helper.cc',
246       'common/gpu/client/gl_helper.h',
247       'common/gpu/client/gl_helper_readback_support.cc',
248       'common/gpu/client/gl_helper_readback_support.h',
249       'common/gpu/client/gl_helper_scaling.cc',
250       'common/gpu/client/gl_helper_scaling.h',
251       'common/gpu/client/gpu_channel_host.cc',
252       'common/gpu/client/gpu_channel_host.h',
253       'common/gpu/client/gpu_memory_buffer_factory_host.cc',
254       'common/gpu/client/gpu_memory_buffer_factory_host.h',
255       'common/gpu/client/gpu_memory_buffer_impl.cc',
256       'common/gpu/client/gpu_memory_buffer_impl.h',
257       'common/gpu/client/gpu_memory_buffer_impl_android.cc',
258       'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
259       'common/gpu/client/gpu_memory_buffer_impl_mac.cc',
260       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc',
261       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h',
262       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc',
263       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.h',
264       'common/gpu/client/gpu_memory_buffer_impl_win.cc',
265       'common/gpu/client/gpu_video_decode_accelerator_host.cc',
266       'common/gpu/client/gpu_video_decode_accelerator_host.h',
267       'common/gpu/client/gpu_video_encode_accelerator_host.cc',
268       'common/gpu/client/gpu_video_encode_accelerator_host.h',
269       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
270       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
271       'common/gpu/devtools_gpu_agent.cc',
272       'common/gpu/devtools_gpu_agent.h',
273       'common/gpu/devtools_gpu_instrumentation.cc',
274       'common/gpu/devtools_gpu_instrumentation.h',
275       'common/gpu/gpu_channel.cc',
276       'common/gpu/gpu_channel.h',
277       'common/gpu/gpu_channel_manager.cc',
278       'common/gpu/gpu_channel_manager.h',
279       'common/gpu/gpu_command_buffer_stub.cc',
280       'common/gpu/gpu_command_buffer_stub.h',
281       'common/gpu/gpu_config.h',
282       'common/gpu/gpu_memory_buffer_factory.h',
283       'common/gpu/gpu_memory_buffer_factory_android.cc',
284       'common/gpu/gpu_memory_buffer_factory_mac.cc',
285       'common/gpu/gpu_memory_buffer_factory_ozone.cc',
286       'common/gpu/gpu_memory_buffer_factory_win.cc',
287       'common/gpu/gpu_memory_buffer_factory_x11.cc',
288       'common/gpu/gpu_memory_manager.cc',
289       'common/gpu/gpu_memory_manager.h',
290       'common/gpu/gpu_memory_manager_client.cc',
291       'common/gpu/gpu_memory_manager_client.h',
292       'common/gpu/gpu_memory_tracking.cc',
293       'common/gpu/gpu_memory_tracking.h',
294       'common/gpu/gpu_memory_uma_stats.h',
295       'common/gpu/gpu_messages.h',
296       'common/gpu/gpu_process_launch_causes.h',
297       'common/gpu/gpu_result_codes.h',
298       'common/gpu/gpu_surface_lookup.cc',
299       'common/gpu/gpu_surface_lookup.h',
300       'common/gpu/gpu_watchdog.h',
301       'common/gpu/image_transport_surface.cc',
302       'common/gpu/image_transport_surface.h',
303       'common/gpu/image_transport_surface_android.cc',
304       'common/gpu/image_transport_surface_calayer_mac.mm',
305       'common/gpu/image_transport_surface_calayer_mac.h',
306       'common/gpu/image_transport_surface_fbo_mac.mm',
307       'common/gpu/image_transport_surface_fbo_mac.h',
308       'common/gpu/image_transport_surface_linux.cc',
309       'common/gpu/image_transport_surface_mac.mm',
310       'common/gpu/image_transport_surface_iosurface_mac.cc',
311       'common/gpu/image_transport_surface_iosurface_mac.h',
312       'common/gpu/image_transport_surface_win.cc',
313       'common/gpu/media/gpu_video_decode_accelerator.cc',
314       'common/gpu/media/gpu_video_decode_accelerator.h',
315       'common/gpu/media/gpu_video_encode_accelerator.cc',
316       'common/gpu/media/gpu_video_encode_accelerator.h',
317       'common/gpu/stream_texture_android.cc',
318       'common/gpu/stream_texture_android.h',
319       'common/gpu/surface_handle_types_mac.cc',
320       'common/gpu/surface_handle_types_mac.h',
321       'common/gpu/sync_point_manager.cc',
322       'common/gpu/sync_point_manager.h',
323       'common/gpu/texture_image_transport_surface.cc',
324       'common/gpu/texture_image_transport_surface.h',
325       'common/handle_enumerator_win.cc',
326       'common/handle_enumerator_win.h',
327       'common/host_shared_bitmap_manager.cc',
328       'common/host_shared_bitmap_manager.h',
329       'common/image_messages.h',
330       'common/indexed_db/indexed_db_constants.h',
331       'common/indexed_db/indexed_db_key.cc',
332       'common/indexed_db/indexed_db_key.h',
333       'common/indexed_db/indexed_db_key_path.cc',
334       'common/indexed_db/indexed_db_key_path.h',
335       'common/indexed_db/indexed_db_key_range.cc',
336       'common/indexed_db/indexed_db_key_range.h',
337       'common/indexed_db/indexed_db_messages.h',
338       'common/indexed_db/indexed_db_param_traits.cc',
339       'common/indexed_db/indexed_db_param_traits.h',
340       'common/input/did_overscroll_params.cc',
341       'common/input/did_overscroll_params.h',
342       'common/input/gesture_event_stream_validator.cc',
343       'common/input/gesture_event_stream_validator.h',
344       'common/input/input_event.cc',
345       'common/input/input_event.h',
346       'common/input/input_event_stream_validator.cc',
347       'common/input/input_event_stream_validator.h',
348       'common/input/input_param_traits.cc',
349       'common/input/input_param_traits.h',
350       'common/input/scoped_web_input_event.cc',
351       'common/input/scoped_web_input_event.h',
352       'common/input/synthetic_gesture_packet.cc',
353       'common/input/synthetic_gesture_packet.h',
354       'common/input/synthetic_gesture_params.cc',
355       'common/input/synthetic_gesture_params.h',
356       'common/input/synthetic_pinch_gesture_params.cc',
357       'common/input/synthetic_pinch_gesture_params.h',
358       'common/input/synthetic_smooth_scroll_gesture_params.cc',
359       'common/input/synthetic_smooth_scroll_gesture_params.h',
360       'common/input/synthetic_tap_gesture_params.cc',
361       'common/input/synthetic_tap_gesture_params.h',
362       'common/input/synthetic_web_input_event_builders.cc',
363       'common/input/synthetic_web_input_event_builders.h',
364       'common/input/touch_event_stream_validator.cc',
365       'common/input/touch_event_stream_validator.h',
366       'common/input/web_input_event_traits.cc',
367       'common/input/web_input_event_traits.h',
368       'common/input/web_touch_event_traits.cc',
369       'common/input/web_touch_event_traits.h',
370       'common/input_messages.h',
371       'common/inter_process_time_ticks_converter.cc',
372       'common/inter_process_time_ticks_converter.h',
373       'common/mac/attributed_string_coder.h',
374       'common/mac/attributed_string_coder.mm',
375       'common/mac/font_descriptor.h',
376       'common/mac/font_descriptor.mm',
377       'common/mac/font_loader.h',
378       'common/mac/font_loader.mm',
379       'common/manifest_manager_messages.h',
380       'common/media/aec_dump_messages.h',
381       'common/media/audio_messages.h',
382       'common/media/cdm_messages.h',
383       'common/media/cdm_messages_enums.h',
384       'common/media/media_param_traits.cc',
385       'common/media/media_param_traits.h',
386       'common/media/media_player_messages_android.h',
387       'common/media/media_player_messages_enums_android.h',
388       'common/media/media_stream_messages.h',
389       'common/media/media_stream_options.cc',
390       'common/media/media_stream_options.h',
391       'common/media/media_stream_track_metrics_host_messages.h',
392       'common/media/midi_messages.h',
393       'common/media/video_capture.h',
394       'common/media/video_capture_messages.h',
395       'common/media/webrtc_identity_messages.h',
396       'common/memory_benchmark_messages.h',
397       'common/message_port_messages.h',
398       'common/message_router.cc',
399       'common/message_router.h',
400       'common/mime_registry_messages.h',
401       'common/mojo/mojo_messages.h',
402       'common/mojo/service_registry_impl.cc',
403       'common/mojo/service_registry_impl.h',
404       'common/navigation_gesture.h',
405       'common/net/url_fetcher.cc',
406       'common/net/url_request_user_data.cc',
407       'common/net/url_request_user_data.h',
408       'common/one_writer_seqlock.cc',
409       'common/one_writer_seqlock.h',
410       'common/p2p_messages.h',
411       'common/page_state_serialization.cc',
412       'common/page_state_serialization.h',
413       'common/page_zoom.cc',
414       'common/pepper_file_util.cc',
415       'common/pepper_file_util.h',
416       'common/pepper_messages.h',
417       'common/pepper_plugin_list.cc',
418       'common/pepper_plugin_list.h',
419       'common/pepper_renderer_instance_data.cc',
420       'common/pepper_renderer_instance_data.h',
421       'common/platform_notification_messages.h',
422       'common/plugin_constants_win.cc',
423       'common/plugin_constants_win.h',
424       'common/plugin_list.cc',
425       'common/plugin_list.h',
426       'common/plugin_list_mac.mm',
427       'common/plugin_list_posix.cc',
428       'common/plugin_list_win.cc',
429       'common/plugin_process_messages.h',
430       'common/power_monitor_messages.h',
431       'common/process_type.cc',
432       'common/push_messaging_messages.h',
433       'common/quota_messages.h',
434       'common/resource_messages.cc',
435       'common/resource_messages.h',
436       'common/resource_request_body.cc',
437       'common/resource_request_body.h',
438       'common/sandbox_init_mac.cc',
439       'common/sandbox_init_mac.h',
440       'common/sandbox_init_win.cc',
441       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
442       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
443       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
444       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
445       'common/sandbox_linux/bpf_gpu_policy_linux.cc',
446       'common/sandbox_linux/bpf_gpu_policy_linux.h',
447       'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
448       'common/sandbox_linux/bpf_ppapi_policy_linux.h',
449       'common/sandbox_linux/bpf_renderer_policy_linux.cc',
450       'common/sandbox_linux/bpf_renderer_policy_linux.h',
451       'common/sandbox_linux/bpf_utility_policy_linux.cc',
452       'common/sandbox_linux/bpf_utility_policy_linux.h',
453       'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
454       'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
455       'common/sandbox_linux/sandbox_init_linux.cc',
456       'common/sandbox_linux/sandbox_linux.cc',
457       'common/sandbox_linux/sandbox_linux.h',
458       'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
459       'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
460       'common/sandbox_mac.h',
461       'common/sandbox_mac.mm',
462       'common/sandbox_util.cc',
463       'common/sandbox_util.h',
464       'common/sandbox_win.cc',
465       'common/sandbox_win.h',
466       'common/savable_url_schemes.cc',
467       'common/savable_url_schemes.h',
468       'common/screen_orientation_messages.h',
469       'common/service_worker/embedded_worker_messages.h',
470       'common/service_worker/service_worker_messages.h',
471       'common/service_worker/service_worker_status_code.cc',
472       'common/service_worker/service_worker_status_code.h',
473       'common/service_worker/service_worker_types.cc',
474       'common/service_worker/service_worker_types.h',
475       'common/set_process_title.cc',
476       'common/set_process_title.h',
477       'common/set_process_title_linux.cc',
478       'common/set_process_title_linux.h',
479       'common/socket_stream.h',
480       'common/socket_stream_handle_data.h',
481       'common/socket_stream_messages.h',
482       'common/speech_recognition_messages.h',
483       'common/ssl_status_serialization.cc',
484       'common/ssl_status_serialization.h',
485       'common/swapped_out_messages.cc',
486       'common/swapped_out_messages.h',
487       'common/text_input_client_messages.h',
488       'common/url_schemes.cc',
489       'common/url_schemes.h',
490       'common/user_agent.cc',
491       'common/utility_messages.h',
492       'common/view_message_enums.h',
493       'common/view_messages.h',
494       'common/webplugin_geometry.cc',
495       'common/webplugin_geometry.h',
496       'common/websocket.cc',
497       'common/websocket.h',
498       'common/websocket_messages.h',
499       'common/worker_messages.h',
500       'common/zygote_commands_linux.h',
501     ],
502   },
503   'sources': [
504     '<@(public_common_sources)',
505     '<@(private_common_sources)',
506   ],
507   'target_conditions': [
508     ['OS=="android" and <(use_seccomp_bpf)==1', {
509       'sources/': [
510         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.cc$'],
511         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.h$'],
512       ],
513     }],
514   ],
515   'conditions': [
516     ['OS=="ios"', {
517       # iOS has different user-agent construction utilities, since the
518       # version strings is not derived from webkit_version, and follows
519       # a different format.
520       'sources!': [
521         'common/user_agent.cc',
522       ],
523       'sources/': [
524         # iOS only needs a small portion of content; exclude all the
525         # implementation, and re-include what is used.
526         ['exclude', '\\.(cc|mm)$'],
527         ['include', '_ios\\.(cc|mm)$'],
528         ['include', '^public/common/content_client\\.cc$'],
529         ['include', '^public/common/content_constants\\.cc$'],
530         ['include', '^public/common/content_switches\\.cc$'],
531         ['include', '^public/common/frame_navigate_params\\.cc$'],
532         ['include', '^public/common/media_stream_request\\.cc$'],
533         ['include', '^public/common/page_state\\.cc$'],
534         ['include', '^public/common/password_form\\.cc$'],
535         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
536         ['include', '^public/common/speech_recognition_result\\.cc$'],
537         ['include', '^public/common/ssl_status\\.cc$'],
538         ['include', '^public/common/url_constants\\.cc$'],
539         ['include', '^common/content_paths\\.cc$'],
540         ['include', '^common/media/media_stream_options\\.cc$'],
541         ['include', '^common/net/url_fetcher\\.cc$'],
542         ['include', '^common/net/url_request_user_data\\.cc$'],
543         ['include', '^common/page_state_serialization\\.cc$'],
544         ['include', '^common/savable_url_schemes\\.cc$'],
545         ['include', '^common/url_schemes\\.cc$'],
546       ],
547     }, {  # OS!="ios"
548       'dependencies': [
549         '../cc/cc.gyp:cc',
550         '../gpu/gpu.gyp:command_buffer_service',
551         '../gpu/gpu.gyp:gles2_c_lib',
552         '../gpu/gpu.gyp:gles2_implementation',
553         # TODO: the dependency on gl_in_process_context should be decoupled from
554         # content and moved to android_webview. See crbug.com/365797.
555         '../gpu/gpu.gyp:gl_in_process_context',
556         '../gpu/gpu.gyp:gpu_ipc',
557         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
558         '../ipc/ipc.gyp:ipc',
559         '../ipc/mojo/ipc_mojo.gyp:ipc_mojo',
560         '../media/media.gyp:media',
561         '../media/media.gyp:shared_memory_support',
562         '../mojo/mojo_base.gyp:mojo_application_bindings',
563         '../mojo/mojo_base.gyp:mojo_cpp_bindings',
564         '../mojo/mojo_base.gyp:mojo_environment_chromium',
565         '../mojo/mojo_base.gyp:mojo_system_impl',
566         '../storage/storage_browser.gyp:storage',
567         '../storage/storage_common.gyp:storage_common',
568         '../third_party/WebKit/public/blink.gyp:blink',
569         '../ui/gl/gl.gyp:gl',
570         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
571       ],
572       'actions': [
573         {
574           'action_name': 'generate_webkit_version',
575           'inputs': [
576             '<(script)',
577             '<(lastchange)',
578             '<(template)',
579           ],
580           'outputs': [
581             '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
582           ],
583           'action': ['python',
584                      '<(script)',
585                      '-f', '<(lastchange)',
586                      '<(template)',
587                      '<@(_outputs)',
588           ],
589           'variables': {
590             'script': '<(DEPTH)/build/util/version.py',
591             'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
592             'template': 'webkit_version.h.in',
593           },
594         },
595       ],
596     }],
597     ['OS=="mac"', {
598       'dependencies': [
599         'app/resources/content_resources.gyp:content_resources',
600       ],
601       'sources': [
602         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
603         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
604         'common/gpu/gpu_memory_buffer_factory_io_surface.cc',
605         'common/gpu/gpu_memory_buffer_factory_io_surface.h',
606         'common/gpu/media/vt.h',
607         'common/gpu/media/vt_video_decode_accelerator.cc',
608         'common/gpu/media/vt_video_decode_accelerator.h',
609       ],
610       'sources!': [
611         'common/plugin_list_posix.cc',
612       ],
613       'link_settings': {
614         'libraries': [
615           '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
616           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
617         ],
618       },
619       'variables': {
620         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
621         'extra_header': 'common/gpu/media/vt_stubs_header.fragment',
622         'sig_files': ['common/gpu/media/vt.sig'],
623         'outfile_type': 'posix_stubs',
624         'stubs_filename_root': 'vt_stubs',
625         'project_path': 'content/common/gpu/media',
626         'intermediate_dir': '<(INTERMEDIATE_DIR)',
627         'output_root': '<(SHARED_INTERMEDIATE_DIR)/vt_stubs',
628       },
629       'include_dirs': [
630         '<(output_root)',
631       ],
632       'actions': [
633         {
634           'action_name': 'generate_stubs',
635           'inputs': [
636             '<(generate_stubs_script)',
637             '<(extra_header)',
638             '<@(sig_files)',
639           ],
640           'outputs': [
641             '<(intermediate_dir)/<(stubs_filename_root).cc',
642             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
643           ],
644           'action': ['python',
645                      '<(generate_stubs_script)',
646                      '-i', '<(intermediate_dir)',
647                      '-o', '<(output_root)/<(project_path)',
648                      '-t', '<(outfile_type)',
649                      '-e', '<(extra_header)',
650                      '-s', '<(stubs_filename_root)',
651                      '-p', '<(project_path)',
652                      '<@(_inputs)',
653           ],
654           'process_outputs_as_sources': 1,
655           'message': 'Generating VideoToolbox stubs for dynamic loading',
656         },
657       ],
658     }],
659     ['OS=="android"',{
660       'sources': [
661         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc',
662         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.h',
663       ],
664       'link_settings': {
665         'libraries': [
666           '-landroid',  # ANativeWindow
667         ],
668       },
669      'dependencies': [
670         'content.gyp:content_jni_headers',
671         'content.gyp:common_aidl',
672       ],
673     }],
674     ['use_pango == 1', {
675       'dependencies': [
676         '../build/linux/system.gyp:pangocairo',
677       ],
678       'sources!': [
679         'common/font_list_ozone.cc',
680       ],
681     }],
682     ['use_x11 == 1', {
683       'include_dirs': [
684         '<(DEPTH)/third_party/khronos',
685       ],
686       'dependencies': [
687          '<(DEPTH)/build/linux/system.gyp:xcomposite',
688       ],
689       'sources': [
690         'common/gpu/gpu_memory_buffer_factory_x11_pixmap.cc',
691         'common/gpu/gpu_memory_buffer_factory_x11_pixmap.h',
692       ],
693     }],
694     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
695       'sources': [
696         'common/gpu/x_util.cc',
697         'common/gpu/x_util.h',
698       ],
699     }],
700     ['enable_plugins==1', {
701       'dependencies': [
702         '../ppapi/ppapi_internal.gyp:ppapi_shared',
703       ],
704     }, {  # enable_plugins == 0
705       'sources!': [
706         'common/pepper_file_util.cc',
707         'common/pepper_file_util.h',
708         'common/pepper_messages.h',
709         'common/pepper_plugin_list.cc',
710         'common/pepper_plugin_list.h',
711         'common/pepper_renderer_instance_data.cc',
712         'common/pepper_renderer_instance_data.h',
713         'common/plugin_list.cc',
714         'common/plugin_list.h',
715         'common/plugin_list_posix.cc',
716         'common/sandbox_util.cc',
717         'public/common/pepper_plugin_info.cc',
718         'public/common/pepper_plugin_info.h',
719       ],
720     }],
721     ['OS=="android"', {
722       'dependencies': [
723         '../media/media.gyp:media',
724       ],
725       'sources': [
726         'common/gpu/media/android_video_decode_accelerator.cc',
727         'common/gpu/media/android_video_decode_accelerator.h',
728       ],
729     }],
730     ['OS=="android" and enable_webrtc==1', {
731       'dependencies': [
732         '../third_party/libyuv/libyuv.gyp:libyuv',
733       ],
734       'sources': [
735         'common/gpu/media/android_video_encode_accelerator.cc',
736         'common/gpu/media/android_video_encode_accelerator.h',
737       ],
738     }],
739     ['enable_webrtc==1', {
740       'dependencies': [
741         '../third_party/libjingle/libjingle.gyp:libjingle',
742       ],
743     }],
744     ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
745       'dependencies': [
746         '../media/media.gyp:media',
747       ],
748       'sources': [
749         'common/gpu/media/exynos_v4l2_video_device.cc',
750         'common/gpu/media/exynos_v4l2_video_device.h',
751         'common/gpu/media/tegra_v4l2_video_device.cc',
752         'common/gpu/media/tegra_v4l2_video_device.h',
753         'common/gpu/media/v4l2_image_processor.cc',
754         'common/gpu/media/v4l2_image_processor.h',
755         'common/gpu/media/v4l2_video_decode_accelerator.cc',
756         'common/gpu/media/v4l2_video_decode_accelerator.h',
757         'common/gpu/media/v4l2_video_device.cc',
758         'common/gpu/media/v4l2_video_device.h',
759         'common/gpu/media/v4l2_video_encode_accelerator.cc',
760         'common/gpu/media/v4l2_video_encode_accelerator.h',
761       ],
762       'include_dirs': [
763         '<(DEPTH)/third_party/khronos',
764       ],
765     }],
766     ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
767       'dependencies': [
768         '../media/media.gyp:media',
769         '../third_party/libyuv/libyuv.gyp:libyuv',
770       ],
771       'sources': [
772         'common/gpu/media/h264_dpb.cc',
773         'common/gpu/media/h264_dpb.h',
774         'common/gpu/media/va_surface.h',
775         'common/gpu/media/vaapi_h264_decoder.cc',
776         'common/gpu/media/vaapi_h264_decoder.h',
777         'common/gpu/media/vaapi_video_decode_accelerator.cc',
778         'common/gpu/media/vaapi_video_decode_accelerator.h',
779         'common/gpu/media/vaapi_video_encode_accelerator.cc',
780         'common/gpu/media/vaapi_video_encode_accelerator.h',
781         'common/gpu/media/vaapi_wrapper.cc',
782         'common/gpu/media/vaapi_wrapper.h',
783       ],
784       'variables': {
785         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
786         'extra_header': 'common/gpu/media/va_stub_header.fragment',
787         'sig_files': ['common/gpu/media/va.sigs'],
788         'outfile_type': 'posix_stubs',
789         'stubs_filename_root': 'va_stubs',
790         'project_path': 'content/common/gpu/media',
791         'intermediate_dir': '<(INTERMEDIATE_DIR)',
792         'output_root': '<(SHARED_INTERMEDIATE_DIR)/va',
793       },
794       'include_dirs': [
795         '<(DEPTH)/third_party/libva',
796         '<(DEPTH)/third_party/libyuv',
797         '<(output_root)',
798       ],
799       'actions': [
800         {
801           'action_name': 'generate_stubs',
802           'inputs': [
803             '<(generate_stubs_script)',
804             '<(extra_header)',
805             '<@(sig_files)',
806           ],
807           'outputs': [
808             '<(intermediate_dir)/<(stubs_filename_root).cc',
809             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
810           ],
811           'action': ['python',
812                      '<(generate_stubs_script)',
813                      '-i', '<(intermediate_dir)',
814                      '-o', '<(output_root)/<(project_path)',
815                      '-t', '<(outfile_type)',
816                      '-e', '<(extra_header)',
817                      '-s', '<(stubs_filename_root)',
818                      '-p', '<(project_path)',
819                      '<@(_inputs)',
820           ],
821           'process_outputs_as_sources': 1,
822           'message': 'Generating libva stubs for dynamic loading',
823         },
824      ]
825     }],
826     ['OS=="win"', {
827       'dependencies': [
828         '../media/media.gyp:media',
829         '../ui/gl/gl.gyp:gl',
830       ],
831       'link_settings': {
832         'libraries': [
833            '-ld3d9.lib',
834            '-ldxva2.lib',
835            '-lstrmiids.lib',
836            '-lmf.lib',
837            '-lmfplat.lib',
838            '-lmfuuid.lib',
839         ],
840         'msvs_settings': {
841           'VCLinkerTool': {
842             'DelayLoadDLLs': [
843               'd3d9.dll',
844               'dxva2.dll',
845               'mf.dll',
846               'mfplat.dll',
847             ],
848           },
849         },
850       },
851       'sources': [
852         'common/gpu/media/dxva_video_decode_accelerator.cc',
853         'common/gpu/media/dxva_video_decode_accelerator.h',
854       ],
855       'include_dirs': [
856         '<(DEPTH)/third_party/khronos',
857       ],
858     }],
859     ['tizen==1 and enable_murphy==1', {
860       'sources': [
861         '<(DEPTH)/xwalk/tizen/common/media/media_player_messages.h',
862       ],
863     }],
864     ['OS=="win" and directxsdk_exists=="True"', {
865       'actions': [
866       {
867         'action_name': 'extract_xinput',
868         'variables': {
869           'input': 'APR2007_xinput_<(winsdk_arch).cab',
870           'output': 'xinput1_3.dll',
871         },
872         'inputs': [
873           '../third_party/directxsdk/files/Redist/<(input)',
874         ],
875         'outputs': [
876           '<(PRODUCT_DIR)/<(output)',
877         ],
878         'action': [
879           'python',
880         '../build/extract_from_cab.py',
881         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
882         '<(output)',
883         '<(PRODUCT_DIR)',
884         ],
885       },
886      ]
887     }],
888     ['use_seccomp_bpf==0', {
889       'sources!': [
890         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
891         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
892         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
893         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
894         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
895         'common/sandbox_linux/bpf_gpu_policy_linux.h',
896         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
897         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
898         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
899         'common/sandbox_linux/bpf_renderer_policy_linux.h',
900         'common/sandbox_linux/bpf_utility_policy_linux.cc',
901         'common/sandbox_linux/bpf_utility_policy_linux.h',
902         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
903         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
904       ],
905     }, {
906       'defines': ['USE_SECCOMP_BPF'],
907     }],
908     ['use_ozone==1', {
909       'dependencies': [
910         '../ui/ozone/ozone.gyp:ozone',
911         '../ui/ozone/gpu/ozone_gpu.gyp:ozone_gpu',
912       ],
913       'sources': [
914         'common/gpu/client/gpu_memory_buffer_impl_ozone.cc',
915       ],
916       'sources!': [
917         'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
918       ],
919     }],
920   ],
921 }