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/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/pepper_plugin_info.cc',
70 'public/common/pepper_plugin_info.h',
71 'public/common/process_type.h',
72 'public/common/referrer.h',
73 'public/common/renderer_preferences.cc',
74 'public/common/renderer_preferences.h',
75 'public/common/resource_response.h',
76 'public/common/result_codes.h',
77 'public/common/result_codes_list.h',
78 'public/common/sandbox_init.h',
79 'public/common/sandbox_linux.h',
80 'public/common/sandbox_type_mac.h',
81 'public/common/sandboxed_process_launcher_delegate.h',
82 'public/common/security_style.h',
83 'public/common/show_desktop_notification_params.cc',
84 'public/common/show_desktop_notification_params.h',
85 'public/common/speech_recognition_error.h',
86 'public/common/speech_recognition_grammar.h',
87 'public/common/speech_recognition_result.h',
88 'public/common/speech_recognition_result.cc',
89 'public/common/ssl_status.cc',
90 'public/common/ssl_status.h',
91 'public/common/stop_find_action.h',
92 'public/common/three_d_api_types.h',
93 'public/common/top_controls_state.h',
94 'public/common/top_controls_state_list.h',
95 'public/common/url_constants.cc',
96 'public/common/url_constants.h',
97 'public/common/url_fetcher.h',
98 'public/common/url_utils.cc',
99 'public/common/url_utils.h',
100 'public/common/webplugininfo.cc',
101 'public/common/webplugininfo.h',
102 'public/common/zygote_fork_delegate_linux.h',
103 'common/accessibility_messages.h',
104 'common/accessibility_node_data.cc',
105 'common/accessibility_node_data.h',
106 'common/all_messages.h',
107 'common/android/address_parser.cc',
108 'common/android/address_parser.h',
109 'common/android/address_parser_internal.cc',
110 'common/android/address_parser_internal.h',
111 'common/android/command_line.cc',
112 'common/android/command_line.h',
113 'common/android/common_jni_registrar.cc',
114 'common/android/common_jni_registrar.h',
115 'common/android/device_telephony_info.cc',
116 'common/android/device_telephony_info.h',
117 'common/android/hash_set.cc',
118 'common/android/hash_set.h',
119 'common/android/surface_texture_peer.cc',
120 'common/android/surface_texture_peer.h',
121 'common/android/trace_event_binding.cc',
122 'common/android/trace_event_binding.h',
123 'common/appcache_messages.h',
124 'common/browser_plugin/browser_plugin_constants.cc',
125 'common/browser_plugin/browser_plugin_constants.h',
126 'common/browser_plugin/browser_plugin_messages.h',
127 'common/browser_rendering_stats.cc',
128 'common/browser_rendering_stats.h',
129 'common/cc_messages.cc',
130 'common/cc_messages.h',
131 'common/child_process_host_impl.cc',
132 'common/child_process_host_impl.h',
133 'common/child_process_messages.h',
134 'common/child_process_sandbox_support_impl_linux.cc',
135 'common/child_process_sandbox_support_impl_linux.h',
136 'common/child_process_sandbox_support_impl_shm_linux.cc',
137 'common/clipboard_messages.cc',
138 'common/clipboard_messages.h',
139 'common/content_constants_internal.cc',
140 'common/content_constants_internal.h',
141 'common/content_export.h',
142 'common/content_ipc_logging.cc',
143 'common/content_message_generator.cc',
144 'common/content_message_generator.h',
145 'common/content_param_traits.cc',
146 'common/content_param_traits.h',
147 'common/content_param_traits_macros.h',
148 'common/content_paths.cc',
149 'common/cookie_data.cc',
150 'common/cookie_data.h',
151 'common/database_messages.h',
152 'common/desktop_notification_messages.h',
153 'common/device_orientation/device_motion_hardware_buffer.h',
154 'common/device_orientation/device_motion_messages.h',
155 'common/device_orientation/device_orientation_hardware_buffer.h',
156 'common/device_orientation/device_orientation_messages.h',
157 'common/devtools_messages.h',
158 'common/dom_storage/dom_storage_map.cc',
159 'common/dom_storage/dom_storage_map.h',
160 'common/dom_storage/dom_storage_messages.h',
161 'common/drag_event_source_info.h',
162 'common/drag_messages.h',
163 'common/drag_traits.h',
164 'common/edit_command.h',
165 'common/file_utilities_messages.h',
166 'common/fileapi/file_system_messages.h',
167 'common/fileapi/webblob_messages.h',
168 'common/font_cache_dispatcher_win.cc',
169 'common/font_cache_dispatcher_win.h',
170 'common/font_config_ipc_linux.cc',
171 'common/font_config_ipc_linux.h',
172 'common/font_list.cc',
173 'common/font_list.h',
174 'common/font_list_android.cc',
175 'common/font_list_mac.mm',
176 'common/font_list_ozone.cc',
177 'common/font_list_pango.cc',
178 'common/font_list_win.cc',
179 'common/gamepad_hardware_buffer.h',
180 'common/gamepad_messages.h',
181 'common/gamepad_user_gesture.cc',
182 'common/gamepad_user_gesture.h',
183 'common/geolocation_messages.h',
184 'common/gpu/client/command_buffer_proxy_impl.cc',
185 'common/gpu/client/command_buffer_proxy_impl.h',
186 'common/gpu/client/context_provider_command_buffer.cc',
187 'common/gpu/client/context_provider_command_buffer.h',
188 'common/gpu/client/gl_helper.cc',
189 'common/gpu/client/gl_helper.h',
190 'common/gpu/client/gl_helper_scaling.cc',
191 'common/gpu/client/gl_helper_scaling.h',
192 'common/gpu/client/gpu_channel_host.cc',
193 'common/gpu/client/gpu_channel_host.h',
194 'common/gpu/client/gpu_memory_buffer_impl.cc',
195 'common/gpu/client/gpu_memory_buffer_impl.h',
196 'common/gpu/client/gpu_video_decode_accelerator_host.cc',
197 'common/gpu/client/gpu_video_decode_accelerator_host.h',
198 'common/gpu/client/gpu_video_encode_accelerator_host.cc',
199 'common/gpu/client/gpu_video_encode_accelerator_host.h',
200 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
201 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
202 'common/gpu/gpu_channel.cc',
203 'common/gpu/gpu_channel.h',
204 'common/gpu/gpu_channel_manager.cc',
205 'common/gpu/gpu_channel_manager.h',
206 'common/gpu/gpu_command_buffer_stub.cc',
207 'common/gpu/gpu_command_buffer_stub.h',
208 'common/gpu/gpu_config.h',
209 'common/gpu/gpu_memory_manager.cc',
210 'common/gpu/gpu_memory_manager.h',
211 'common/gpu/gpu_memory_manager_client.cc',
212 'common/gpu/gpu_memory_manager_client.h',
213 'common/gpu/gpu_memory_tracking.cc',
214 'common/gpu/gpu_memory_tracking.h',
215 'common/gpu/gpu_memory_uma_stats.h',
216 'common/gpu/gpu_messages.h',
217 'common/gpu/gpu_process_launch_causes.h',
218 'common/gpu/gpu_rendering_stats.cc',
219 'common/gpu/gpu_rendering_stats.h',
220 'common/gpu/gpu_surface_lookup.cc',
221 'common/gpu/gpu_surface_lookup.h',
222 'common/gpu/gpu_watchdog.h',
223 'common/gpu/image_transport_surface.cc',
224 'common/gpu/image_transport_surface.h',
225 'common/gpu/image_transport_surface_android.cc',
226 'common/gpu/image_transport_surface_linux.cc',
227 'common/gpu/image_transport_surface_mac.cc',
228 'common/gpu/image_transport_surface_win.cc',
229 'common/gpu/media/gpu_video_decode_accelerator.cc',
230 'common/gpu/media/gpu_video_decode_accelerator.h',
231 'common/gpu/media/gpu_video_encode_accelerator.cc',
232 'common/gpu/media/gpu_video_encode_accelerator.h',
233 'common/gpu/media/h264_bit_reader.cc',
234 'common/gpu/media/h264_bit_reader.h',
235 'common/gpu/media/h264_parser.cc',
236 'common/gpu/media/h264_parser.h',
237 'common/gpu/media/video_decode_accelerator_impl.cc',
238 'common/gpu/media/video_decode_accelerator_impl.h',
239 'common/gpu/stream_texture_manager_android.cc',
240 'common/gpu/stream_texture_manager_android.h',
241 'common/gpu/sync_point_manager.cc',
242 'common/gpu/sync_point_manager.h',
243 'common/gpu/texture_image_transport_surface.cc',
244 'common/gpu/texture_image_transport_surface.h',
245 'common/handle_enumerator_win.cc',
246 'common/handle_enumerator_win.h',
247 'common/image_messages.h',
248 'common/indexed_db/indexed_db_key.cc',
249 'common/indexed_db/indexed_db_key.h',
250 'common/indexed_db/indexed_db_key_path.cc',
251 'common/indexed_db/indexed_db_key_path.h',
252 'common/indexed_db/indexed_db_key_range.cc',
253 'common/indexed_db/indexed_db_key_range.h',
254 'common/indexed_db/indexed_db_messages.h',
255 'common/indexed_db/indexed_db_param_traits.cc',
256 'common/indexed_db/indexed_db_param_traits.h',
257 'common/input/input_event.cc',
258 'common/input/input_event.h',
259 'common/input/input_param_traits.cc',
260 'common/input/input_param_traits.h',
261 'common/input/scoped_web_input_event.cc',
262 'common/input/scoped_web_input_event.h',
263 'common/input/synthetic_gesture_packet.cc',
264 'common/input/synthetic_gesture_packet.h',
265 'common/input/synthetic_gesture_params.cc',
266 'common/input/synthetic_gesture_params.h',
267 'common/input/synthetic_smooth_scroll_gesture_params.cc',
268 'common/input/synthetic_smooth_scroll_gesture_params.h',
269 'common/input/web_input_event_traits.cc',
270 'common/input/web_input_event_traits.h',
271 'common/input_messages.h',
272 'common/inter_process_time_ticks_converter.cc',
273 'common/inter_process_time_ticks_converter.h',
274 'common/java_bridge_messages.h',
275 'common/mac/attributed_string_coder.h',
276 'common/mac/attributed_string_coder.mm',
277 'common/mac/font_descriptor.h',
278 'common/mac/font_descriptor.mm',
279 'common/mac/font_loader.h',
280 'common/mac/font_loader.mm',
281 'common/media/audio_messages.h',
282 'common/media/media_param_traits.cc',
283 'common/media/media_param_traits.h',
284 'common/media/media_player_messages_android.h',
285 'common/media/media_player_messages_enums_android.h',
286 'common/media/media_stream_messages.h',
287 'common/media/media_stream_options.cc',
288 'common/media/media_stream_options.h',
289 'common/media/midi_messages.h',
290 'common/media/video_capture.h',
291 'common/media/video_capture_messages.h',
292 'common/media/webrtc_identity_messages.h',
293 'common/memory_benchmark_messages.h',
294 'common/message_port_messages.h',
295 'common/message_router.cc',
296 'common/message_router.h',
297 'common/mime_registry_messages.h',
298 'common/service_worker_messages.h',
299 'common/navigation_gesture.h',
300 'common/net/url_fetcher.cc',
301 'common/net/url_request_user_data.cc',
302 'common/net/url_request_user_data.h',
303 'common/one_writer_seqlock.cc',
304 'common/one_writer_seqlock.h',
305 'common/p2p_messages.h',
306 'common/p2p_sockets.h',
307 'common/page_state_serialization.cc',
308 'common/page_state_serialization.h',
309 'common/page_zoom.cc',
310 'common/pepper_messages.h',
311 'common/pepper_plugin_list.cc',
312 'common/pepper_plugin_list.h',
313 'common/pepper_renderer_instance_data.cc',
314 'common/pepper_renderer_instance_data.h',
315 'common/plugin_carbon_interpose_constants_mac.cc',
316 'common/plugin_carbon_interpose_constants_mac.h',
317 'common/plugin_constants_win.cc',
318 'common/plugin_constants_win.h',
319 'common/plugin_list.cc',
320 'common/plugin_list.h',
321 'common/plugin_list_mac.mm',
322 'common/plugin_list_posix.cc',
323 'common/plugin_list_win.cc',
324 'common/plugin_process_messages.h',
325 'common/power_monitor_messages.h',
326 'common/process_type.cc',
327 'common/quota_messages.h',
328 'common/resource_messages.cc',
329 'common/resource_messages.h',
330 'common/sandbox_init_linux.cc',
331 'common/sandbox_init_mac.cc',
332 'common/sandbox_init_mac.h',
333 'common/sandbox_init_win.cc',
334 'common/sandbox_mac.h',
335 'common/sandbox_mac.mm',
336 'common/sandbox_linux.h',
337 'common/sandbox_linux.cc',
338 'common/sandbox_seccomp_bpf_linux.cc',
339 'common/sandbox_seccomp_bpf_linux.h',
340 'common/sandbox_util.cc',
341 'common/sandbox_util.h',
342 'common/sandbox_win.cc',
343 'common/sandbox_win.h',
344 'common/savable_url_schemes.cc',
345 'common/savable_url_schemes.h',
346 'common/set_process_title.cc',
347 'common/set_process_title.h',
348 'common/set_process_title_linux.cc',
349 'common/set_process_title_linux.h',
350 'common/socket_stream.h',
351 'common/socket_stream_handle_data.cc',
352 'common/socket_stream_handle_data.h',
353 'common/socket_stream_messages.h',
354 'common/speech_recognition_messages.h',
355 'common/ssl_status_serialization.cc',
356 'common/ssl_status_serialization.h',
357 'common/swapped_out_messages.cc',
358 'common/swapped_out_messages.h',
359 'common/text_input_client_messages.h',
360 'common/url_schemes.cc',
361 'common/url_schemes.h',
362 'common/utility_messages.h',
363 'common/view_messages.h',
364 'common/view_message_enums.h',
365 'common/webplugin_geometry.cc',
366 'common/webplugin_geometry.h',
367 'common/websocket.h',
368 'common/websocket_messages.h',
369 'common/worker_messages.h',
370 'common/zygote_commands_linux.h',
371 'port/common/input_event_ack_state.h',
372 'public/common/browser_plugin_permission_type.h',
373 'public/common/common_param_traits.cc',
374 'public/common/common_param_traits.h',
375 'public/common/common_param_traits_macros.h',
376 'public/common/content_client.cc',
377 'public/common/content_client.h',
378 'public/common/window_container_type.cc',
379 'public/common/window_container_type.h',
384 # iOS only needs a small portion of content; exclude all the
385 # implementation, and re-include what is used.
386 ['exclude', '\\.(cc|mm)$'],
387 ['include', '_ios\\.(cc|mm)$'],
388 ['include', '^public/common/content_client\\.cc$'],
389 ['include', '^public/common/content_constants\\.cc$'],
390 ['include', '^public/common/content_switches\\.cc$'],
391 ['include', '^public/common/frame_navigate_params\\.cc$'],
392 ['include', '^public/common/media_stream_request\\.cc$'],
393 ['include', '^public/common/page_state\\.cc$'],
394 ['include', '^public/common/page_transition_types\\.cc$'],
395 ['include', '^public/common/password_form\\.cc$'],
396 ['include', '^public/common/speech_recognition_result\\.cc$'],
397 ['include', '^public/common/ssl_status\\.cc$'],
398 ['include', '^public/common/url_constants\\.cc$'],
399 ['include', '^common/content_paths\\.cc$'],
400 ['include', '^common/media/media_stream_options\\.cc$'],
401 ['include', '^common/net/url_fetcher\\.cc$'],
402 ['include', '^common/net/url_request_user_data\\.cc$'],
403 ['include', '^common/page_state_serialization\\.cc$'],
404 ['include', '^common/savable_url_schemes\\.cc$'],
405 ['include', '^common/url_schemes\\.cc$'],
410 '../gpu/gpu.gyp:command_buffer_service',
411 '../gpu/gpu.gyp:gles2_c_lib',
412 '../gpu/gpu.gyp:gles2_implementation',
413 '../gpu/gpu.gyp:gpu_ipc',
414 '../ipc/ipc.gyp:ipc',
415 '../media/media.gyp:media',
416 '../media/media.gyp:shared_memory_support',
417 '../ui/gl/gl.gyp:gl',
418 '../webkit/common/webkit_common.gyp:webkit_common',
419 '../webkit/storage_browser.gyp:webkit_storage_browser',
420 '../webkit/storage_common.gyp:webkit_storage_common',
423 ['OS!="ios" and chrome_multiple_dll!=1', {
425 '../webkit/glue/webkit_glue.gyp:glue',
430 'common/plugin_list_posix.cc',
434 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
441 '-landroid', # ANativeWindow
445 'content.gyp:content_jni_headers',
446 'content.gyp:common_aidl',
449 ['toolkit_uses_gtk == 1', {
451 '../build/linux/system.gyp:gtk',
456 '../build/linux/system.gyp:pangocairo',
458 }, { # use_pango == 0
460 'common/font_list_pango.cc',
465 '<(DEPTH)/third_party/khronos',
473 ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
475 'common/gpu/x_util.cc',
476 'common/gpu/x_util.h',
479 ['enable_plugins==1', {
481 '../ppapi/ppapi_internal.gyp:ppapi_shared',
483 }, { # enable_plugins == 0
485 'common/font_list.cc',
486 'common/pepper_plugin_list.cc',
487 'common/pepper_plugin_list.h',
488 'common/sandbox_util.cc',
493 '../media/media.gyp:media',
496 'common/gpu/media/android_video_decode_accelerator.cc',
497 'common/gpu/media/android_video_decode_accelerator.h',
500 ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
502 '../media/media.gyp:media',
505 'common/gpu/media/exynos_video_decode_accelerator.cc',
506 'common/gpu/media/exynos_video_decode_accelerator.h',
507 'common/gpu/media/exynos_video_encode_accelerator.cc',
508 'common/gpu/media/exynos_video_encode_accelerator.h',
511 '<(DEPTH)/third_party/khronos',
520 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
522 'common/gpu/media/h264_dpb.cc',
523 'common/gpu/media/h264_dpb.h',
524 'common/gpu/media/va_surface.h',
525 'common/gpu/media/vaapi_h264_decoder.cc',
526 'common/gpu/media/vaapi_h264_decoder.h',
527 'common/gpu/media/vaapi_video_decode_accelerator.cc',
528 'common/gpu/media/vaapi_video_decode_accelerator.h',
529 'common/gpu/media/vaapi_wrapper.cc',
530 'common/gpu/media/vaapi_wrapper.h',
533 '<(DEPTH)/third_party/libva',
538 '../media/media.gyp:media',
539 '../ui/gl/gl.gyp:gl',
562 'common/gpu/media/dxva_video_decode_accelerator.cc',
563 'common/gpu/media/dxva_video_decode_accelerator.h',
566 '<(DEPTH)/third_party/khronos',
569 ['OS=="win" and directxsdk_exists=="True"', {
572 'action_name': 'extract_xinput',
574 'input': 'APR2007_xinput_<(winsdk_arch).cab',
575 'output': 'xinput1_3.dll',
578 '../third_party/directxsdk/files/Redist/<(input)',
581 '<(PRODUCT_DIR)/<(output)',
585 '../build/extract_from_cab.py',
586 '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
590 'msvs_cygwin_shell': 1,