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',
9 '../media/media.gyp:media',
11 '../skia/skia.gyp:skia',
12 '../third_party/icu/icu.gyp:icuuc',
13 '../ui/ui.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/content_constants.cc',
31 'public/common/content_constants.h',
32 'public/common/content_descriptors.h',
33 'public/common/content_ipc_logging.h',
34 'public/common/content_paths.h',
35 'public/common/content_switches.cc',
36 'public/common/content_switches.h',
37 'public/common/context_menu_params.cc',
38 'public/common/context_menu_params.h',
39 'public/common/console_message_level.h',
40 'public/common/desktop_media_id.cc',
41 'public/common/desktop_media_id.h',
42 'public/common/drop_data.cc',
43 'public/common/drop_data.h',
44 'public/common/favicon_url.cc',
45 'public/common/favicon_url.h',
46 'public/common/file_chooser_params.cc',
47 'public/common/file_chooser_params.h',
48 'public/common/frame_navigate_params.cc',
49 'public/common/frame_navigate_params.h',
50 'public/common/geoposition.cc',
51 'public/common/geoposition.h',
52 'public/common/gpu_memory_stats.cc',
53 'public/common/gpu_memory_stats.h',
54 'public/common/injection_test_mac.h',
55 'public/common/injection_test_win.h',
56 'public/common/javascript_message_type.h',
57 'public/common/main_function_params.h',
58 'public/common/media_stream_request.cc',
59 'public/common/media_stream_request.h',
60 'public/common/menu_item.cc',
61 'public/common/menu_item.h',
62 'public/common/page_state.cc',
63 'public/common/page_state.h',
64 'public/common/page_transition_types.cc',
65 'public/common/page_transition_types.h',
66 'public/common/page_transition_types_list.h',
67 'public/common/page_type.h',
68 'public/common/page_zoom.h',
69 'public/common/password_form.cc',
70 'public/common/password_form.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/speech_recognition_error.h',
88 'public/common/speech_recognition_grammar.h',
89 'public/common/speech_recognition_result.h',
90 'public/common/speech_recognition_result.cc',
91 'public/common/ssl_status.cc',
92 'public/common/ssl_status.h',
93 'public/common/stop_find_action.h',
94 'public/common/three_d_api_types.h',
95 'public/common/top_controls_state.h',
96 'public/common/top_controls_state_list.h',
97 'public/common/url_constants.cc',
98 'public/common/url_constants.h',
99 'public/common/url_fetcher.h',
100 'public/common/url_utils.cc',
101 'public/common/url_utils.h',
102 'public/common/webplugininfo.cc',
103 'public/common/webplugininfo.h',
104 'public/common/zygote_fork_delegate_linux.h',
105 'common/accessibility_messages.h',
106 'common/accessibility_notification.h',
107 'common/accessibility_node_data.cc',
108 'common/accessibility_node_data.h',
109 'common/all_messages.h',
110 'common/android/address_parser.cc',
111 'common/android/address_parser.h',
112 'common/android/address_parser_internal.cc',
113 'common/android/address_parser_internal.h',
114 'common/android/command_line.cc',
115 'common/android/command_line.h',
116 'common/android/common_jni_registrar.cc',
117 'common/android/common_jni_registrar.h',
118 'common/android/device_telephony_info.cc',
119 'common/android/device_telephony_info.h',
120 'common/android/hash_set.cc',
121 'common/android/hash_set.h',
122 'common/android/surface_texture_peer.cc',
123 'common/android/surface_texture_peer.h',
124 'common/android/trace_event_binding.cc',
125 'common/android/trace_event_binding.h',
126 'common/appcache_messages.h',
127 'common/browser_plugin/browser_plugin_constants.cc',
128 'common/browser_plugin/browser_plugin_constants.h',
129 'common/browser_plugin/browser_plugin_messages.h',
130 'common/browser_rendering_stats.cc',
131 'common/browser_rendering_stats.h',
132 'common/cc_messages.cc',
133 'common/cc_messages.h',
134 'common/child_process_host_impl.cc',
135 'common/child_process_host_impl.h',
136 'common/child_process_messages.h',
137 'common/child_process_sandbox_support_impl_linux.cc',
138 'common/child_process_sandbox_support_impl_linux.h',
139 'common/child_process_sandbox_support_impl_shm_linux.cc',
140 'common/clipboard_messages.cc',
141 'common/clipboard_messages.h',
142 'common/content_constants_internal.cc',
143 'common/content_constants_internal.h',
144 'common/content_export.h',
145 'common/content_ipc_logging.cc',
146 'common/content_message_generator.cc',
147 'common/content_message_generator.h',
148 'common/content_param_traits.cc',
149 'common/content_param_traits.h',
150 'common/content_param_traits_macros.h',
151 'common/content_paths.cc',
152 'common/cookie_data.cc',
153 'common/cookie_data.h',
154 'common/database_messages.h',
155 'common/desktop_notification_messages.h',
156 'common/device_motion_hardware_buffer.h',
157 'common/device_orientation/device_motion_messages.h',
158 'common/device_orientation/device_orientation_hardware_buffer.h',
159 'common/device_orientation/device_orientation_messages.h',
160 'common/devtools_messages.h',
161 'common/dom_storage/dom_storage_map.cc',
162 'common/dom_storage/dom_storage_map.h',
163 'common/dom_storage/dom_storage_messages.h',
164 'common/drag_event_source_info.h',
165 'common/drag_messages.h',
166 'common/drag_traits.h',
167 'common/edit_command.h',
168 'common/file_utilities_messages.h',
169 'common/fileapi/file_system_messages.h',
170 'common/fileapi/webblob_messages.h',
171 'common/find_match_rect_android.cc',
172 'common/find_match_rect_android.h',
173 'common/font_cache_dispatcher_win.cc',
174 'common/font_cache_dispatcher_win.h',
175 'common/font_config_ipc_linux.cc',
176 'common/font_config_ipc_linux.h',
177 'common/font_list.cc',
178 'common/font_list.h',
179 'common/font_list_android.cc',
180 'common/font_list_mac.mm',
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_video_decode_accelerator_host.cc',
199 'common/gpu/client/gpu_video_decode_accelerator_host.h',
200 'common/gpu/client/gpu_video_encode_accelerator_host.cc',
201 'common/gpu/client/gpu_video_encode_accelerator_host.h',
202 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
203 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
204 'common/gpu/gpu_channel.cc',
205 'common/gpu/gpu_channel.h',
206 'common/gpu/gpu_channel_manager.cc',
207 'common/gpu/gpu_channel_manager.h',
208 'common/gpu/gpu_command_buffer_stub.cc',
209 'common/gpu/gpu_command_buffer_stub.h',
210 'common/gpu/gpu_config.h',
211 'common/gpu/gpu_memory_allocation.h',
212 'common/gpu/gpu_memory_manager.cc',
213 'common/gpu/gpu_memory_manager.h',
214 'common/gpu/gpu_memory_manager_client.cc',
215 'common/gpu/gpu_memory_manager_client.h',
216 'common/gpu/gpu_memory_tracking.cc',
217 'common/gpu/gpu_memory_tracking.h',
218 'common/gpu/gpu_memory_uma_stats.h',
219 'common/gpu/gpu_messages.h',
220 'common/gpu/gpu_process_launch_causes.h',
221 'common/gpu/gpu_rendering_stats.cc',
222 'common/gpu/gpu_rendering_stats.h',
223 'common/gpu/gpu_surface_lookup.h',
224 'common/gpu/gpu_surface_lookup.cc',
225 'common/gpu/stream_texture_manager_android.cc',
226 'common/gpu/stream_texture_manager_android.h',
227 'common/gpu/gpu_watchdog.h',
228 'common/gpu/image_transport_surface.h',
229 'common/gpu/image_transport_surface.cc',
230 'common/gpu/image_transport_surface_android.cc',
231 'common/gpu/image_transport_surface_linux.cc',
232 'common/gpu/image_transport_surface_mac.cc',
233 'common/gpu/image_transport_surface_win.cc',
234 'common/gpu/media/h264_bit_reader.cc',
235 'common/gpu/media/h264_bit_reader.h',
236 'common/gpu/media/h264_parser.cc',
237 'common/gpu/media/h264_parser.h',
238 'common/gpu/media/gpu_video_decode_accelerator.cc',
239 'common/gpu/media/gpu_video_decode_accelerator.h',
240 'common/gpu/media/gpu_video_encode_accelerator.cc',
241 'common/gpu/media/gpu_video_encode_accelerator.h',
242 'common/gpu/sync_point_manager.h',
243 'common/gpu/sync_point_manager.cc',
244 'common/gpu/texture_image_transport_surface.h',
245 'common/gpu/texture_image_transport_surface.cc',
246 'common/handle_enumerator_win.cc',
247 'common/handle_enumerator_win.h',
248 'common/image_messages.h',
249 'common/indexed_db/indexed_db_key.cc',
250 'common/indexed_db/indexed_db_key.h',
251 'common/indexed_db/indexed_db_key_path.cc',
252 'common/indexed_db/indexed_db_key_path.h',
253 'common/indexed_db/indexed_db_key_range.cc',
254 'common/indexed_db/indexed_db_key_range.h',
255 'common/indexed_db/indexed_db_messages.h',
256 'common/indexed_db/indexed_db_param_traits.cc',
257 'common/indexed_db/indexed_db_param_traits.h',
258 'common/input_messages.h',
259 'common/inter_process_time_ticks_converter.cc',
260 'common/inter_process_time_ticks_converter.h',
261 'common/java_bridge_messages.h',
262 'common/mac/attributed_string_coder.h',
263 'common/mac/attributed_string_coder.mm',
264 'common/mac/font_descriptor.h',
265 'common/mac/font_descriptor.mm',
266 'common/mac/font_loader.h',
267 'common/mac/font_loader.mm',
268 'common/media/audio_messages.h',
269 'common/media/media_param_traits.cc',
270 'common/media/media_param_traits.h',
271 'common/media/media_player_messages_android.h',
272 'common/media/media_stream_messages.h',
273 'common/media/media_stream_options.cc',
274 'common/media/media_stream_options.h',
275 'common/media/midi_messages.h',
276 'common/media/video_capture.h',
277 'common/media/video_capture_messages.h',
278 'common/media/webrtc_identity_messages.h',
279 'common/memory_benchmark_messages.h',
280 'common/message_router.cc',
281 'common/message_router.h',
282 'common/mime_registry_messages.h',
283 'common/navigation_gesture.h',
284 'common/net/url_fetcher.cc',
285 'common/net/url_request_user_data.cc',
286 'common/net/url_request_user_data.h',
287 'common/one_writer_seqlock.cc',
288 'common/one_writer_seqlock.h',
289 'common/p2p_messages.h',
290 'common/p2p_sockets.h',
291 'common/page_state_serialization.cc',
292 'common/page_state_serialization.h',
293 'common/page_zoom.cc',
294 'common/pepper_messages.h',
295 'common/pepper_plugin_list.cc',
296 'common/pepper_plugin_list.h',
297 'common/pepper_renderer_instance_data.cc',
298 'common/pepper_renderer_instance_data.h',
299 'common/plugin_carbon_interpose_constants_mac.cc',
300 'common/plugin_carbon_interpose_constants_mac.h',
301 'common/plugin_constants_win.cc',
302 'common/plugin_constants_win.h',
303 'common/plugin_list.cc',
304 'common/plugin_list.h',
305 'common/plugin_list_mac.mm',
306 'common/plugin_list_posix.cc',
307 'common/plugin_list_win.cc',
308 'common/plugin_process_messages.h',
309 'common/power_monitor_messages.h',
310 'common/process_type.cc',
311 'common/quota_messages.h',
312 'common/resource_messages.cc',
313 'common/resource_messages.h',
314 'common/sandbox_init_linux.cc',
315 'common/sandbox_init_mac.cc',
316 'common/sandbox_init_mac.h',
317 'common/sandbox_init_win.cc',
318 'common/sandbox_mac.h',
319 'common/sandbox_mac.mm',
320 'common/sandbox_linux.h',
321 'common/sandbox_linux.cc',
322 'common/sandbox_seccomp_bpf_linux.cc',
323 'common/sandbox_seccomp_bpf_linux.h',
324 'common/sandbox_util.cc',
325 'common/sandbox_util.h',
326 'common/sandbox_win.cc',
327 'common/sandbox_win.h',
328 'common/savable_url_schemes.cc',
329 'common/savable_url_schemes.h',
330 'common/set_process_title.cc',
331 'common/set_process_title.h',
332 'common/set_process_title_linux.cc',
333 'common/set_process_title_linux.h',
334 'common/socket_stream.h',
335 'common/socket_stream_handle_data.cc',
336 'common/socket_stream_handle_data.h',
337 'common/socket_stream_messages.h',
338 'common/speech_recognition_messages.h',
339 'common/ssl_status_serialization.cc',
340 'common/ssl_status_serialization.h',
341 'common/swapped_out_messages.cc',
342 'common/swapped_out_messages.h',
343 'common/text_input_client_messages.h',
344 'common/url_schemes.cc',
345 'common/url_schemes.h',
346 'common/utility_messages.h',
347 'common/view_messages.h',
348 'common/view_message_enums.h',
349 'common/webplugin_geometry.cc',
350 'common/webplugin_geometry.h',
351 'common/websocket.h',
352 'common/websocket_messages.h',
353 'common/worker_messages.h',
354 'common/zygote_commands_linux.h',
355 'port/common/input_event_ack_state.h',
356 'public/common/browser_plugin_permission_type.h',
357 'public/common/common_param_traits.cc',
358 'public/common/common_param_traits.h',
359 'public/common/common_param_traits_macros.h',
360 'public/common/content_client.cc',
361 'public/common/content_client.h',
362 'public/common/window_container_type.cc',
363 'public/common/window_container_type.h',
368 # iOS only needs a small portion of content; exclude all the
369 # implementation, and re-include what is used.
370 ['exclude', '\\.(cc|mm)$'],
371 ['include', '_ios\\.(cc|mm)$'],
372 ['include', '^public/common/content_client\\.cc$'],
373 ['include', '^public/common/content_constants\\.cc$'],
374 ['include', '^public/common/content_switches\\.cc$'],
375 ['include', '^public/common/frame_navigate_params\\.cc$'],
376 ['include', '^public/common/media_stream_request\\.cc$'],
377 ['include', '^public/common/page_state\\.cc$'],
378 ['include', '^public/common/page_transition_types\\.cc$'],
379 ['include', '^public/common/password_form\\.cc$'],
380 ['include', '^public/common/speech_recognition_result\\.cc$'],
381 ['include', '^public/common/ssl_status\\.cc$'],
382 ['include', '^public/common/url_constants\\.cc$'],
383 ['include', '^common/content_paths\\.cc$'],
384 ['include', '^common/media/media_stream_options\\.cc$'],
385 ['include', '^common/net/url_fetcher\\.cc$'],
386 ['include', '^common/net/url_request_user_data\\.cc$'],
387 ['include', '^common/page_state_serialization\\.cc$'],
388 ['include', '^common/savable_url_schemes\\.cc$'],
389 ['include', '^common/url_schemes\\.cc$'],
394 '../gpu/gpu.gyp:gles2_c_lib',
395 '../gpu/gpu.gyp:gles2_implementation',
396 '../gpu/gpu.gyp:gpu_ipc',
397 '../ipc/ipc.gyp:ipc',
398 '../media/media.gyp:shared_memory_support',
399 '../third_party/WebKit/public/blink.gyp:blink_minimal',
400 '../ui/gl/gl.gyp:gl',
401 '../webkit/common/webkit_common.gyp:webkit_common',
402 '../webkit/storage_browser.gyp:webkit_storage_browser',
403 '../webkit/storage_common.gyp:webkit_storage_common',
406 ['OS!="ios" and chrome_multiple_dll!=1', {
408 '../webkit/support/webkit_support.gyp:glue',
413 'common/plugin_list_posix.cc',
417 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
424 '-landroid', # ANativeWindow
428 'content.gyp:content_jni_headers',
429 'content.gyp:common_aidl',
432 ['toolkit_uses_gtk == 1', {
434 '../build/linux/system.gyp:gtk',
439 '../build/linux/system.gyp:pangocairo',
441 }, { # use_pango == 0
443 'common/font_list_pango.cc',
448 '<(DEPTH)/third_party/khronos',
456 ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
458 'common/gpu/x_util.cc',
459 'common/gpu/x_util.h',
462 ['enable_plugins==1', {
464 '../ppapi/ppapi_internal.gyp:ppapi_shared',
466 }, { # enable_plugins == 0
468 'common/pepper_plugin_list.cc',
469 'common/pepper_plugin_list.h',
474 '../gpu/gpu.gyp:command_buffer_service',
479 '../media/media.gyp:media',
482 'common/gpu/media/android_video_decode_accelerator.cc',
483 'common/gpu/media/android_video_decode_accelerator.h',
486 ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
488 '../media/media.gyp:media',
491 'common/gpu/media/exynos_video_decode_accelerator.cc',
492 'common/gpu/media/exynos_video_decode_accelerator.h',
493 'common/gpu/media/exynos_video_encode_accelerator.cc',
494 'common/gpu/media/exynos_video_encode_accelerator.h',
497 '<(DEPTH)/third_party/khronos',
506 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
508 'common/gpu/media/h264_dpb.cc',
509 'common/gpu/media/h264_dpb.h',
510 'common/gpu/media/va_surface.h',
511 'common/gpu/media/vaapi_h264_decoder.cc',
512 'common/gpu/media/vaapi_h264_decoder.h',
513 'common/gpu/media/vaapi_video_decode_accelerator.cc',
514 'common/gpu/media/vaapi_video_decode_accelerator.h',
515 'common/gpu/media/vaapi_wrapper.cc',
516 'common/gpu/media/vaapi_wrapper.h',
519 '<(DEPTH)/third_party/libva',
524 '../media/media.gyp:media',
525 '../ui/gl/gl.gyp:gl',
548 'common/gpu/media/dxva_video_decode_accelerator.cc',
549 'common/gpu/media/dxva_video_decode_accelerator.h',
552 '<(DEPTH)/third_party/khronos',
555 ['OS=="win" and directxsdk_exists=="True"', {
558 'action_name': 'extract_xinput',
560 'input': 'APR2007_xinput_<(winsdk_arch).cab',
561 'output': 'xinput1_3.dll',
564 '../third_party/directxsdk/files/Redist/<(input)',
567 '<(PRODUCT_DIR)/<(output)',
571 '../build/extract_from_cab.py',
572 '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
576 'msvs_cygwin_shell': 1,