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