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