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.
7 '../base/base.gyp:base',
8 '../components/tracing.gyp:tracing',
10 '../skia/skia.gyp:skia',
11 '../third_party/icu/icu.gyp:icuuc',
12 '../ui/gfx/gfx.gyp:gfx',
13 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
15 '../url/url.gyp:url_lib',
16 '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
21 'export_dependent_settings': [
22 '../base/base.gyp:base',
25 'public/common/bindings_policy.h',
26 'public/common/child_process_host.h',
27 'public/common/child_process_host_delegate.cc',
28 'public/common/child_process_host_delegate.h',
29 'public/common/child_process_sandbox_support_linux.h',
30 'public/common/color_suggestion.cc',
31 'public/common/color_suggestion.h',
32 'public/common/content_constants.cc',
33 'public/common/content_constants.h',
34 'public/common/content_descriptors.h',
35 'public/common/content_ipc_logging.h',
36 'public/common/content_paths.h',
37 'public/common/content_switches.cc',
38 'public/common/content_switches.h',
39 'public/common/context_menu_params.cc',
40 'public/common/context_menu_params.h',
41 'public/common/console_message_level.h',
42 'public/common/desktop_media_id.cc',
43 'public/common/desktop_media_id.h',
44 'public/common/drop_data.cc',
45 'public/common/drop_data.h',
46 'public/common/favicon_url.cc',
47 'public/common/favicon_url.h',
48 'public/common/file_chooser_params.cc',
49 'public/common/file_chooser_params.h',
50 'public/common/frame_navigate_params.cc',
51 'public/common/frame_navigate_params.h',
52 'public/common/geoposition.cc',
53 'public/common/geoposition.h',
54 'public/common/gpu_memory_stats.cc',
55 'public/common/gpu_memory_stats.h',
56 'public/common/injection_test_mac.h',
57 'public/common/injection_test_win.h',
58 'public/common/javascript_message_type.h',
59 'public/common/main_function_params.h',
60 'public/common/media_stream_request.cc',
61 'public/common/media_stream_request.h',
62 'public/common/menu_item.cc',
63 'public/common/menu_item.h',
64 'public/common/page_state.cc',
65 'public/common/page_state.h',
66 'public/common/page_transition_types.cc',
67 'public/common/page_transition_types.h',
68 'public/common/page_transition_types_list.h',
69 'public/common/page_type.h',
70 'public/common/page_zoom.h',
71 'public/common/pepper_plugin_info.cc',
72 'public/common/pepper_plugin_info.h',
73 'public/common/process_type.h',
74 'public/common/referrer.h',
75 'public/common/renderer_preferences.cc',
76 'public/common/renderer_preferences.h',
77 'public/common/resource_response.h',
78 'public/common/result_codes.h',
79 'public/common/result_codes_list.h',
80 'public/common/sandbox_init.h',
81 'public/common/sandbox_linux.h',
82 'public/common/sandbox_type_mac.h',
83 'public/common/sandboxed_process_launcher_delegate.h',
84 'public/common/security_style.h',
85 'public/common/show_desktop_notification_params.cc',
86 'public/common/show_desktop_notification_params.h',
87 'public/common/signed_certificate_timestamp_id_and_status.cc',
88 'public/common/signed_certificate_timestamp_id_and_status.h',
89 'public/common/speech_recognition_error.h',
90 'public/common/speech_recognition_grammar.h',
91 'public/common/speech_recognition_result.h',
92 'public/common/speech_recognition_result.cc',
93 'public/common/ssl_status.cc',
94 'public/common/ssl_status.h',
95 'public/common/stop_find_action.h',
96 'public/common/three_d_api_types.h',
97 'public/common/top_controls_state.h',
98 'public/common/top_controls_state_list.h',
99 'public/common/url_constants.cc',
100 'public/common/url_constants.h',
101 'public/common/url_fetcher.h',
102 'public/common/url_utils.cc',
103 'public/common/url_utils.h',
104 'public/common/webplugininfo.cc',
105 'public/common/webplugininfo.h',
106 'public/common/zygote_fork_delegate_linux.h',
107 'common/accessibility_messages.h',
108 'common/accessibility_node_data.cc',
109 'common/accessibility_node_data.h',
110 'common/all_messages.h',
111 'common/android/address_parser.cc',
112 'common/android/address_parser.h',
113 'common/android/address_parser_internal.cc',
114 'common/android/address_parser_internal.h',
115 'common/android/common_jni_registrar.cc',
116 'common/android/common_jni_registrar.h',
117 'common/android/device_telephony_info.cc',
118 'common/android/device_telephony_info.h',
119 'common/android/hash_set.cc',
120 'common/android/hash_set.h',
121 'common/android/surface_texture_peer.cc',
122 'common/android/surface_texture_peer.h',
123 'common/android/trace_event_binding.cc',
124 'common/android/trace_event_binding.h',
125 'common/android/view_configuration.cc',
126 'common/android/view_configuration.h',
127 'common/appcache_messages.h',
128 'common/browser_plugin/browser_plugin_constants.cc',
129 'common/browser_plugin/browser_plugin_constants.h',
130 'common/browser_plugin/browser_plugin_messages.h',
131 'common/browser_rendering_stats.cc',
132 'common/browser_rendering_stats.h',
133 'common/cc_messages.cc',
134 'common/cc_messages.h',
135 'common/child_process_host_impl.cc',
136 'common/child_process_host_impl.h',
137 'common/child_process_messages.h',
138 'common/child_process_sandbox_support_impl_linux.cc',
139 'common/child_process_sandbox_support_impl_linux.h',
140 'common/child_process_sandbox_support_impl_shm_linux.cc',
141 'common/clipboard_messages.cc',
142 'common/clipboard_messages.h',
143 'common/content_constants_internal.cc',
144 'common/content_constants_internal.h',
145 'common/content_export.h',
146 'common/content_ipc_logging.cc',
147 'common/content_message_generator.cc',
148 'common/content_message_generator.h',
149 'common/content_param_traits.cc',
150 'common/content_param_traits.h',
151 'common/content_param_traits_macros.h',
152 'common/content_paths.cc',
153 'common/cookie_data.cc',
154 'common/cookie_data.h',
155 'common/database_messages.h',
156 'common/desktop_notification_messages.h',
157 'common/device_orientation/device_motion_hardware_buffer.h',
158 'common/device_orientation/device_motion_messages.h',
159 'common/device_orientation/device_orientation_hardware_buffer.h',
160 'common/device_orientation/device_orientation_messages.h',
161 'common/devtools_messages.h',
162 'common/dom_storage/dom_storage_map.cc',
163 'common/dom_storage/dom_storage_map.h',
164 'common/dom_storage/dom_storage_messages.h',
165 'common/drag_event_source_info.h',
166 'common/drag_messages.h',
167 'common/drag_traits.h',
168 'common/edit_command.h',
169 'common/file_utilities_messages.h',
170 'common/fileapi/file_system_messages.h',
171 'common/fileapi/webblob_messages.h',
172 'common/font_cache_dispatcher_win.cc',
173 'common/font_cache_dispatcher_win.h',
174 'common/font_config_ipc_linux.cc',
175 'common/font_config_ipc_linux.h',
176 'common/font_list.cc',
177 'common/font_list.h',
178 'common/font_list_android.cc',
179 'common/font_list_mac.mm',
180 'common/font_list_ozone.cc',
181 'common/font_list_pango.cc',
182 'common/font_list_win.cc',
183 'common/gamepad_hardware_buffer.h',
184 'common/gamepad_messages.h',
185 'common/gamepad_user_gesture.cc',
186 'common/gamepad_user_gesture.h',
187 'common/geolocation_messages.h',
188 'common/gpu/client/command_buffer_proxy_impl.cc',
189 'common/gpu/client/command_buffer_proxy_impl.h',
190 'common/gpu/client/context_provider_command_buffer.cc',
191 'common/gpu/client/context_provider_command_buffer.h',
192 'common/gpu/client/gl_helper.cc',
193 'common/gpu/client/gl_helper.h',
194 'common/gpu/client/gl_helper_scaling.cc',
195 'common/gpu/client/gl_helper_scaling.h',
196 'common/gpu/client/gpu_channel_host.cc',
197 'common/gpu/client/gpu_channel_host.h',
198 'common/gpu/client/gpu_memory_buffer_impl.cc',
199 'common/gpu/client/gpu_memory_buffer_impl.h',
200 'common/gpu/client/gpu_video_decode_accelerator_host.cc',
201 'common/gpu/client/gpu_video_decode_accelerator_host.h',
202 'common/gpu/client/gpu_video_encode_accelerator_host.cc',
203 'common/gpu/client/gpu_video_encode_accelerator_host.h',
204 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
205 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
206 'common/gpu/devtools_gpu_agent.cc',
207 'common/gpu/devtools_gpu_agent.h',
208 'common/gpu/devtools_gpu_instrumentation.cc',
209 'common/gpu/devtools_gpu_instrumentation.h',
210 'common/gpu/gpu_channel.cc',
211 'common/gpu/gpu_channel.h',
212 'common/gpu/gpu_channel_manager.cc',
213 'common/gpu/gpu_channel_manager.h',
214 'common/gpu/gpu_command_buffer_stub.cc',
215 'common/gpu/gpu_command_buffer_stub.h',
216 'common/gpu/gpu_config.h',
217 'common/gpu/gpu_memory_manager.cc',
218 'common/gpu/gpu_memory_manager.h',
219 'common/gpu/gpu_memory_manager_client.cc',
220 'common/gpu/gpu_memory_manager_client.h',
221 'common/gpu/gpu_memory_tracking.cc',
222 'common/gpu/gpu_memory_tracking.h',
223 'common/gpu/gpu_memory_uma_stats.h',
224 'common/gpu/gpu_messages.h',
225 'common/gpu/gpu_process_launch_causes.h',
226 'common/gpu/gpu_rendering_stats.cc',
227 'common/gpu/gpu_rendering_stats.h',
228 'common/gpu/gpu_surface_lookup.cc',
229 'common/gpu/gpu_surface_lookup.h',
230 'common/gpu/gpu_watchdog.h',
231 'common/gpu/image_transport_surface.cc',
232 'common/gpu/image_transport_surface.h',
233 'common/gpu/image_transport_surface_android.cc',
234 'common/gpu/image_transport_surface_linux.cc',
235 'common/gpu/image_transport_surface_mac.cc',
236 'common/gpu/image_transport_surface_win.cc',
237 'common/gpu/media/gpu_video_decode_accelerator.cc',
238 'common/gpu/media/gpu_video_decode_accelerator.h',
239 'common/gpu/media/gpu_video_encode_accelerator.cc',
240 'common/gpu/media/gpu_video_encode_accelerator.h',
241 'common/gpu/media/h264_bit_reader.cc',
242 'common/gpu/media/h264_bit_reader.h',
243 'common/gpu/media/h264_parser.cc',
244 'common/gpu/media/h264_parser.h',
245 'common/gpu/media/video_decode_accelerator_impl.cc',
246 'common/gpu/media/video_decode_accelerator_impl.h',
247 'common/gpu/stream_texture_manager_android.cc',
248 'common/gpu/stream_texture_manager_android.h',
249 'common/gpu/sync_point_manager.cc',
250 'common/gpu/sync_point_manager.h',
251 'common/gpu/texture_image_transport_surface.cc',
252 'common/gpu/texture_image_transport_surface.h',
253 'common/handle_enumerator_win.cc',
254 'common/handle_enumerator_win.h',
255 'common/image_messages.h',
256 'common/indexed_db/indexed_db_constants.h',
257 'common/indexed_db/indexed_db_key.cc',
258 'common/indexed_db/indexed_db_key.h',
259 'common/indexed_db/indexed_db_key_path.cc',
260 'common/indexed_db/indexed_db_key_path.h',
261 'common/indexed_db/indexed_db_key_range.cc',
262 'common/indexed_db/indexed_db_key_range.h',
263 'common/indexed_db/indexed_db_messages.h',
264 'common/indexed_db/indexed_db_param_traits.cc',
265 'common/indexed_db/indexed_db_param_traits.h',
266 'common/input/input_event.cc',
267 'common/input/input_event.h',
268 'common/input/input_param_traits.cc',
269 'common/input/input_param_traits.h',
270 'common/input/scoped_web_input_event.cc',
271 'common/input/scoped_web_input_event.h',
272 'common/input/synthetic_gesture_packet.cc',
273 'common/input/synthetic_gesture_packet.h',
274 'common/input/synthetic_gesture_params.cc',
275 'common/input/synthetic_gesture_params.h',
276 'common/input/synthetic_pinch_gesture_params.cc',
277 'common/input/synthetic_pinch_gesture_params.h',
278 'common/input/synthetic_smooth_scroll_gesture_params.cc',
279 'common/input/synthetic_smooth_scroll_gesture_params.h',
280 'common/input/web_input_event_traits.cc',
281 'common/input/web_input_event_traits.h',
282 'common/input_messages.h',
283 'common/inter_process_time_ticks_converter.cc',
284 'common/inter_process_time_ticks_converter.h',
285 'common/java_bridge_messages.h',
286 'common/mac/attributed_string_coder.h',
287 'common/mac/attributed_string_coder.mm',
288 'common/mac/font_descriptor.h',
289 'common/mac/font_descriptor.mm',
290 'common/mac/font_loader.h',
291 'common/mac/font_loader.mm',
292 'common/media/audio_messages.h',
293 'common/media/media_param_traits.cc',
294 'common/media/media_param_traits.h',
295 'common/media/media_player_messages_android.h',
296 'common/media/media_player_messages_enums_android.h',
297 'common/media/media_stream_messages.h',
298 'common/media/media_stream_options.cc',
299 'common/media/media_stream_options.h',
300 'common/media/midi_messages.h',
301 'common/media/video_capture.h',
302 'common/media/video_capture_messages.h',
303 'common/media/webrtc_identity_messages.h',
304 'common/memory_benchmark_messages.h',
305 'common/message_port_messages.h',
306 'common/message_router.cc',
307 'common/message_router.h',
308 'common/mime_registry_messages.h',
309 'common/service_worker_messages.h',
310 'common/navigation_gesture.h',
311 'common/net/url_fetcher.cc',
312 'common/net/url_request_user_data.cc',
313 'common/net/url_request_user_data.h',
314 'common/one_writer_seqlock.cc',
315 'common/one_writer_seqlock.h',
316 'common/p2p_messages.h',
317 'common/p2p_sockets.h',
318 'common/page_state_serialization.cc',
319 'common/page_state_serialization.h',
320 'common/page_zoom.cc',
321 'common/pepper_messages.h',
322 'common/pepper_plugin_list.cc',
323 'common/pepper_plugin_list.h',
324 'common/pepper_renderer_instance_data.cc',
325 'common/pepper_renderer_instance_data.h',
326 'common/plugin_carbon_interpose_constants_mac.cc',
327 'common/plugin_carbon_interpose_constants_mac.h',
328 'common/plugin_constants_win.cc',
329 'common/plugin_constants_win.h',
330 'common/plugin_list.cc',
331 'common/plugin_list.h',
332 'common/plugin_list_mac.mm',
333 'common/plugin_list_posix.cc',
334 'common/plugin_list_win.cc',
335 'common/plugin_process_messages.h',
336 'common/power_monitor_messages.h',
337 'common/process_type.cc',
338 'common/quota_messages.h',
339 'common/resource_messages.cc',
340 'common/resource_messages.h',
341 'common/sandbox_init_linux.cc',
342 'common/sandbox_init_mac.cc',
343 'common/sandbox_init_mac.h',
344 'common/sandbox_init_win.cc',
345 'common/sandbox_mac.h',
346 'common/sandbox_mac.mm',
347 'common/sandbox_linux.h',
348 'common/sandbox_linux.cc',
349 'common/sandbox_seccomp_bpf_linux.cc',
350 'common/sandbox_seccomp_bpf_linux.h',
351 'common/sandbox_util.cc',
352 'common/sandbox_util.h',
353 'common/sandbox_win.cc',
354 'common/sandbox_win.h',
355 'common/savable_url_schemes.cc',
356 'common/savable_url_schemes.h',
357 'common/set_process_title.cc',
358 'common/set_process_title.h',
359 'common/set_process_title_linux.cc',
360 'common/set_process_title_linux.h',
361 'common/socket_stream.h',
362 'common/socket_stream_handle_data.cc',
363 'common/socket_stream_handle_data.h',
364 'common/socket_stream_messages.h',
365 'common/speech_recognition_messages.h',
366 'common/ssl_status_serialization.cc',
367 'common/ssl_status_serialization.h',
368 'common/swapped_out_messages.cc',
369 'common/swapped_out_messages.h',
370 'common/text_input_client_messages.h',
371 'common/url_schemes.cc',
372 'common/url_schemes.h',
373 'common/utility_messages.h',
374 'common/view_messages.h',
375 'common/view_message_enums.h',
376 'common/webplugin_geometry.cc',
377 'common/webplugin_geometry.h',
378 'common/websocket.cc',
379 'common/websocket.h',
380 'common/websocket_messages.h',
381 'common/worker_messages.h',
382 'common/zygote_commands_linux.h',
383 'port/common/input_event_ack_state.h',
384 'public/common/browser_plugin_permission_type.h',
385 'public/common/common_param_traits.cc',
386 'public/common/common_param_traits.h',
387 'public/common/common_param_traits_macros.h',
388 'public/common/content_client.cc',
389 'public/common/content_client.h',
390 'public/common/window_container_type.cc',
391 'public/common/window_container_type.h',
396 # iOS only needs a small portion of content; exclude all the
397 # implementation, and re-include what is used.
398 ['exclude', '\\.(cc|mm)$'],
399 ['include', '_ios\\.(cc|mm)$'],
400 ['include', '^public/common/content_client\\.cc$'],
401 ['include', '^public/common/content_constants\\.cc$'],
402 ['include', '^public/common/content_switches\\.cc$'],
403 ['include', '^public/common/frame_navigate_params\\.cc$'],
404 ['include', '^public/common/media_stream_request\\.cc$'],
405 ['include', '^public/common/page_state\\.cc$'],
406 ['include', '^public/common/page_transition_types\\.cc$'],
407 ['include', '^public/common/password_form\\.cc$'],
408 ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
409 ['include', '^public/common/speech_recognition_result\\.cc$'],
410 ['include', '^public/common/ssl_status\\.cc$'],
411 ['include', '^public/common/url_constants\\.cc$'],
412 ['include', '^common/content_paths\\.cc$'],
413 ['include', '^common/media/media_stream_options\\.cc$'],
414 ['include', '^common/net/url_fetcher\\.cc$'],
415 ['include', '^common/net/url_request_user_data\\.cc$'],
416 ['include', '^common/page_state_serialization\\.cc$'],
417 ['include', '^common/savable_url_schemes\\.cc$'],
418 ['include', '^common/url_schemes\\.cc$'],
423 '../gpu/gpu.gyp:command_buffer_service',
424 '../gpu/gpu.gyp:gles2_c_lib',
425 '../gpu/gpu.gyp:gles2_implementation',
426 '../gpu/gpu.gyp:gpu_ipc',
427 '../ipc/ipc.gyp:ipc',
428 '../media/media.gyp:media',
429 '../media/media.gyp:shared_memory_support',
430 '../third_party/WebKit/public/blink.gyp:blink',
431 '../ui/gl/gl.gyp:gl',
432 '../webkit/common/webkit_common.gyp:webkit_common',
433 '../webkit/storage_browser.gyp:webkit_storage_browser',
434 '../webkit/storage_common.gyp:webkit_storage_common',
437 ['OS!="ios" and chrome_multiple_dll!=1', {
439 '../webkit/glue/webkit_glue.gyp:glue',
444 'common/plugin_list_posix.cc',
448 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
455 '-landroid', # ANativeWindow
459 'content.gyp:content_jni_headers',
460 'content.gyp:common_aidl',
463 ['toolkit_uses_gtk == 1', {
465 '../build/linux/system.gyp:gtk',
470 '../build/linux/system.gyp:pangocairo',
473 'common/font_list_ozone.cc',
478 '<(DEPTH)/third_party/khronos',
486 ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
488 'common/gpu/x_util.cc',
489 'common/gpu/x_util.h',
492 ['enable_plugins==1', {
494 '../ppapi/ppapi_internal.gyp:ppapi_shared',
496 }, { # enable_plugins == 0
498 'common/pepper_plugin_list.cc',
499 'common/pepper_plugin_list.h',
500 'common/sandbox_util.cc',
505 '../media/media.gyp:media',
508 'common/gpu/media/android_video_decode_accelerator.cc',
509 'common/gpu/media/android_video_decode_accelerator.h',
512 ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
514 '../media/media.gyp:media',
517 'common/gpu/media/exynos_video_decode_accelerator.cc',
518 'common/gpu/media/exynos_video_decode_accelerator.h',
519 'common/gpu/media/exynos_video_encode_accelerator.cc',
520 'common/gpu/media/exynos_video_encode_accelerator.h',
523 '<(DEPTH)/third_party/khronos',
532 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
534 'common/gpu/media/h264_dpb.cc',
535 'common/gpu/media/h264_dpb.h',
536 'common/gpu/media/va_surface.h',
537 'common/gpu/media/vaapi_h264_decoder.cc',
538 'common/gpu/media/vaapi_h264_decoder.h',
539 'common/gpu/media/vaapi_video_decode_accelerator.cc',
540 'common/gpu/media/vaapi_video_decode_accelerator.h',
541 'common/gpu/media/vaapi_wrapper.cc',
542 'common/gpu/media/vaapi_wrapper.h',
545 '<(DEPTH)/third_party/libva',
550 '../media/media.gyp:media',
551 '../ui/gl/gl.gyp:gl',
574 'common/gpu/media/dxva_video_decode_accelerator.cc',
575 'common/gpu/media/dxva_video_decode_accelerator.h',
578 '<(DEPTH)/third_party/khronos',
581 ['OS=="win" and directxsdk_exists=="True"', {
584 'action_name': 'extract_xinput',
586 'input': 'APR2007_xinput_<(winsdk_arch).cab',
587 'output': 'xinput1_3.dll',
590 '../third_party/directxsdk/files/Redist/<(input)',
593 '<(PRODUCT_DIR)/<(output)',
597 '../build/extract_from_cab.py',
598 '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
602 'msvs_cygwin_shell': 1,