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