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/common_jni_registrar.cc',
112 'common/android/common_jni_registrar.h',
113 'common/android/device_telephony_info.cc',
114 'common/android/device_telephony_info.h',
115 'common/android/hash_set.cc',
116 'common/android/hash_set.h',
117 'common/android/surface_texture_peer.cc',
118 'common/android/surface_texture_peer.h',
119 'common/android/trace_event_binding.cc',
120 'common/android/trace_event_binding.h',
121 'common/android/view_configuration.cc',
122 'common/android/view_configuration.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_pinch_gesture_params.cc',
268 'common/input/synthetic_pinch_gesture_params.h',
269 'common/input/synthetic_smooth_scroll_gesture_params.cc',
270 'common/input/synthetic_smooth_scroll_gesture_params.h',
271 'common/input/web_input_event_traits.cc',
272 'common/input/web_input_event_traits.h',
273 'common/input_messages.h',
274 'common/inter_process_time_ticks_converter.cc',
275 'common/inter_process_time_ticks_converter.h',
276 'common/java_bridge_messages.h',
277 'common/mac/attributed_string_coder.h',
278 'common/mac/attributed_string_coder.mm',
279 'common/mac/font_descriptor.h',
280 'common/mac/font_descriptor.mm',
281 'common/mac/font_loader.h',
282 'common/mac/font_loader.mm',
283 'common/media/audio_messages.h',
284 'common/media/media_param_traits.cc',
285 'common/media/media_param_traits.h',
286 'common/media/media_player_messages_android.h',
287 'common/media/media_player_messages_enums_android.h',
288 'common/media/media_stream_messages.h',
289 'common/media/media_stream_options.cc',
290 'common/media/media_stream_options.h',
291 'common/media/midi_messages.h',
292 'common/media/video_capture.h',
293 'common/media/video_capture_messages.h',
294 'common/media/webrtc_identity_messages.h',
295 'common/memory_benchmark_messages.h',
296 'common/message_port_messages.h',
297 'common/message_router.cc',
298 'common/message_router.h',
299 'common/mime_registry_messages.h',
300 'common/service_worker_messages.h',
301 'common/navigation_gesture.h',
302 'common/net/url_fetcher.cc',
303 'common/net/url_request_user_data.cc',
304 'common/net/url_request_user_data.h',
305 'common/one_writer_seqlock.cc',
306 'common/one_writer_seqlock.h',
307 'common/p2p_messages.h',
308 'common/p2p_sockets.h',
309 'common/page_state_serialization.cc',
310 'common/page_state_serialization.h',
311 'common/page_zoom.cc',
312 'common/pepper_messages.h',
313 'common/pepper_plugin_list.cc',
314 'common/pepper_plugin_list.h',
315 'common/pepper_renderer_instance_data.cc',
316 'common/pepper_renderer_instance_data.h',
317 'common/plugin_carbon_interpose_constants_mac.cc',
318 'common/plugin_carbon_interpose_constants_mac.h',
319 'common/plugin_constants_win.cc',
320 'common/plugin_constants_win.h',
321 'common/plugin_list.cc',
322 'common/plugin_list.h',
323 'common/plugin_list_mac.mm',
324 'common/plugin_list_posix.cc',
325 'common/plugin_list_win.cc',
326 'common/plugin_process_messages.h',
327 'common/power_monitor_messages.h',
328 'common/process_type.cc',
329 'common/quota_messages.h',
330 'common/resource_messages.cc',
331 'common/resource_messages.h',
332 'common/sandbox_init_linux.cc',
333 'common/sandbox_init_mac.cc',
334 'common/sandbox_init_mac.h',
335 'common/sandbox_init_win.cc',
336 'common/sandbox_mac.h',
337 'common/sandbox_mac.mm',
338 'common/sandbox_linux.h',
339 'common/sandbox_linux.cc',
340 'common/sandbox_seccomp_bpf_linux.cc',
341 'common/sandbox_seccomp_bpf_linux.h',
342 'common/sandbox_util.cc',
343 'common/sandbox_util.h',
344 'common/sandbox_win.cc',
345 'common/sandbox_win.h',
346 'common/savable_url_schemes.cc',
347 'common/savable_url_schemes.h',
348 'common/set_process_title.cc',
349 'common/set_process_title.h',
350 'common/set_process_title_linux.cc',
351 'common/set_process_title_linux.h',
352 'common/socket_stream.h',
353 'common/socket_stream_handle_data.cc',
354 'common/socket_stream_handle_data.h',
355 'common/socket_stream_messages.h',
356 'common/speech_recognition_messages.h',
357 'common/ssl_status_serialization.cc',
358 'common/ssl_status_serialization.h',
359 'common/swapped_out_messages.cc',
360 'common/swapped_out_messages.h',
361 'common/text_input_client_messages.h',
362 'common/url_schemes.cc',
363 'common/url_schemes.h',
364 'common/utility_messages.h',
365 'common/view_messages.h',
366 'common/view_message_enums.h',
367 'common/webplugin_geometry.cc',
368 'common/webplugin_geometry.h',
369 'common/websocket.h',
370 'common/websocket_messages.h',
371 'common/worker_messages.h',
372 'common/zygote_commands_linux.h',
373 'port/common/input_event_ack_state.h',
374 'public/common/browser_plugin_permission_type.h',
375 'public/common/common_param_traits.cc',
376 'public/common/common_param_traits.h',
377 'public/common/common_param_traits_macros.h',
378 'public/common/content_client.cc',
379 'public/common/content_client.h',
380 'public/common/window_container_type.cc',
381 'public/common/window_container_type.h',
386 # iOS only needs a small portion of content; exclude all the
387 # implementation, and re-include what is used.
388 ['exclude', '\\.(cc|mm)$'],
389 ['include', '_ios\\.(cc|mm)$'],
390 ['include', '^public/common/content_client\\.cc$'],
391 ['include', '^public/common/content_constants\\.cc$'],
392 ['include', '^public/common/content_switches\\.cc$'],
393 ['include', '^public/common/frame_navigate_params\\.cc$'],
394 ['include', '^public/common/media_stream_request\\.cc$'],
395 ['include', '^public/common/page_state\\.cc$'],
396 ['include', '^public/common/page_transition_types\\.cc$'],
397 ['include', '^public/common/password_form\\.cc$'],
398 ['include', '^public/common/speech_recognition_result\\.cc$'],
399 ['include', '^public/common/ssl_status\\.cc$'],
400 ['include', '^public/common/url_constants\\.cc$'],
401 ['include', '^common/content_paths\\.cc$'],
402 ['include', '^common/media/media_stream_options\\.cc$'],
403 ['include', '^common/net/url_fetcher\\.cc$'],
404 ['include', '^common/net/url_request_user_data\\.cc$'],
405 ['include', '^common/page_state_serialization\\.cc$'],
406 ['include', '^common/savable_url_schemes\\.cc$'],
407 ['include', '^common/url_schemes\\.cc$'],
412 '../gpu/gpu.gyp:command_buffer_service',
413 '../gpu/gpu.gyp:gles2_c_lib',
414 '../gpu/gpu.gyp:gles2_implementation',
415 '../gpu/gpu.gyp:gpu_ipc',
416 '../ipc/ipc.gyp:ipc',
417 '../media/media.gyp:media',
418 '../media/media.gyp:shared_memory_support',
419 '../ui/gl/gl.gyp:gl',
420 '../webkit/common/webkit_common.gyp:webkit_common',
421 '../webkit/storage_browser.gyp:webkit_storage_browser',
422 '../webkit/storage_common.gyp:webkit_storage_common',
425 ['OS!="ios" and chrome_multiple_dll!=1', {
427 '../webkit/glue/webkit_glue.gyp:glue',
432 'common/plugin_list_posix.cc',
436 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
443 '-landroid', # ANativeWindow
447 'content.gyp:content_jni_headers',
448 'content.gyp:common_aidl',
451 ['toolkit_uses_gtk == 1', {
453 '../build/linux/system.gyp:gtk',
458 '../build/linux/system.gyp:pangocairo',
461 'common/font_list_ozone.cc',
466 '<(DEPTH)/third_party/khronos',
474 ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
476 'common/gpu/x_util.cc',
477 'common/gpu/x_util.h',
480 ['enable_plugins==1', {
482 '../ppapi/ppapi_internal.gyp:ppapi_shared',
484 }, { # enable_plugins == 0
486 'common/font_list.cc',
487 'common/pepper_plugin_list.cc',
488 'common/pepper_plugin_list.h',
489 'common/sandbox_util.cc',
494 '../media/media.gyp:media',
497 'common/gpu/media/android_video_decode_accelerator.cc',
498 'common/gpu/media/android_video_decode_accelerator.h',
501 ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
503 '../media/media.gyp:media',
506 'common/gpu/media/exynos_video_decode_accelerator.cc',
507 'common/gpu/media/exynos_video_decode_accelerator.h',
508 'common/gpu/media/exynos_video_encode_accelerator.cc',
509 'common/gpu/media/exynos_video_encode_accelerator.h',
512 '<(DEPTH)/third_party/khronos',
521 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
523 'common/gpu/media/h264_dpb.cc',
524 'common/gpu/media/h264_dpb.h',
525 'common/gpu/media/va_surface.h',
526 'common/gpu/media/vaapi_h264_decoder.cc',
527 'common/gpu/media/vaapi_h264_decoder.h',
528 'common/gpu/media/vaapi_video_decode_accelerator.cc',
529 'common/gpu/media/vaapi_video_decode_accelerator.h',
530 'common/gpu/media/vaapi_wrapper.cc',
531 'common/gpu/media/vaapi_wrapper.h',
534 '<(DEPTH)/third_party/libva',
539 '../media/media.gyp:media',
540 '../ui/gl/gl.gyp:gl',
563 'common/gpu/media/dxva_video_decode_accelerator.cc',
564 'common/gpu/media/dxva_video_decode_accelerator.h',
567 '<(DEPTH)/third_party/khronos',
570 ['OS=="win" and directxsdk_exists=="True"', {
573 'action_name': 'extract_xinput',
575 'input': 'APR2007_xinput_<(winsdk_arch).cab',
576 'output': 'xinput1_3.dll',
579 '../third_party/directxsdk/files/Redist/<(input)',
582 '<(PRODUCT_DIR)/<(output)',
586 '../build/extract_from_cab.py',
587 '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
591 'msvs_cygwin_shell': 1,