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 '../build/temp_gyp/googleurl.gyp:googleurl',
9 '../components/components_tracing.gyp:tracing',
10 '../media/media.gyp:media',
12 '../skia/skia.gyp:skia',
13 '../third_party/icu/icu.gyp:icuuc',
14 '../ui/ui.gyp:shell_dialogs',
16 '../webkit/support/webkit_support.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_restriction.h',
36 'public/common/content_switches.cc',
37 'public/common/content_switches.h',
38 'public/common/context_menu_params.cc',
39 'public/common/context_menu_params.h',
40 'public/common/context_menu_source_type.h',
41 'public/common/console_message_level.h',
42 'public/common/dx_diag_node.cc',
43 'public/common/dx_diag_node.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_feature_type.h',
53 'public/common/gpu_info.cc',
54 'public/common/gpu_info.h',
55 'public/common/gpu_memory_stats.cc',
56 'public/common/gpu_memory_stats.h',
57 'public/common/gpu_performance_stats.h',
58 'public/common/gpu_switching_option.h',
59 'public/common/injection_test_mac.h',
60 'public/common/injection_test_win.h',
61 'public/common/javascript_message_type.h',
62 'public/common/main_function_params.h',
63 'public/common/media_stream_request.cc',
64 'public/common/media_stream_request.h',
65 'public/common/page_transition_types.cc',
66 'public/common/page_transition_types.h',
67 'public/common/page_transition_types_list.h',
68 'public/common/page_type.h',
69 'public/common/page_zoom.h',
70 'public/common/password_form.cc',
71 'public/common/password_form.h',
72 'public/common/pepper_plugin_info.cc',
73 'public/common/pepper_plugin_info.h',
74 'public/common/process_type.h',
75 'public/common/referrer.h',
76 'public/common/renderer_preferences.cc',
77 'public/common/renderer_preferences.h',
78 'public/common/resource_dispatcher_delegate.h',
79 'public/common/resource_response.h',
80 'public/common/result_codes.h',
81 'public/common/sandbox_init.cc',
82 'public/common/sandbox_init.h',
83 'public/common/sandbox_linux.h',
84 'public/common/sandbox_type_mac.h',
85 'public/common/security_style.h',
86 'public/common/serialized_script_value.cc',
87 'public/common/serialized_script_value.h',
88 'public/common/show_desktop_notification_params.cc',
89 'public/common/show_desktop_notification_params.h',
90 'public/common/speech_recognition_error.h',
91 'public/common/speech_recognition_grammar.h',
92 'public/common/speech_recognition_result.h',
93 'public/common/speech_recognition_result.cc',
94 'public/common/ssl_status.cc',
95 'public/common/ssl_status.h',
96 'public/common/stop_find_action.h',
97 'public/common/three_d_api_types.h',
98 'public/common/url_constants.cc',
99 'public/common/url_constants.h',
100 'public/common/url_fetcher.h',
101 'public/common/zygote_fork_delegate_linux.h',
102 'common/accessibility_messages.h',
103 'common/accessibility_node_data.cc',
104 'common/accessibility_node_data.h',
105 'common/all_messages.h',
106 'common/android/address_parser.cc',
107 'common/android/address_parser.h',
108 'common/android/address_parser_internal.cc',
109 'common/android/address_parser_internal.h',
110 'common/android/command_line.cc',
111 'common/android/command_line.h',
112 'common/android/common_jni_registrar.cc',
113 'common/android/common_jni_registrar.h',
114 'common/android/device_telephony_info.cc',
115 'common/android/device_telephony_info.h',
116 'common/android/hash_set.cc',
117 'common/android/hash_set.h',
118 'common/android/surface_callback.cc',
119 'common/android/surface_callback.h',
120 'common/android/surface_texture_bridge.cc',
121 'common/android/surface_texture_bridge.h',
122 'common/android/surface_texture_listener.cc',
123 'common/android/surface_texture_listener.h',
124 'common/android/surface_texture_peer.cc',
125 'common/android/surface_texture_peer.h',
126 'common/android/trace_event_binding.cc',
127 'common/android/trace_event_binding.h',
128 'common/appcache/appcache_backend_proxy.cc',
129 'common/appcache/appcache_backend_proxy.h',
130 'common/appcache/appcache_dispatcher.cc',
131 'common/appcache/appcache_dispatcher.h',
132 'common/appcache_messages.h',
133 'common/browser_plugin_messages.h',
134 'common/cc_messages.cc',
135 'common/cc_messages.h',
136 'common/child_histogram_message_filter.cc',
137 'common/child_histogram_message_filter.h',
138 'common/child_process.cc',
139 'common/child_process.h',
140 'common/child_process_host_impl.cc',
141 'common/child_process_host_impl.h',
142 'common/child_process_messages.h',
143 'common/child_process_sandbox_support_impl_linux.cc',
144 'common/child_process_sandbox_support_impl_linux.h',
145 'common/child_process_sandbox_support_impl_shm_linux.cc',
146 'common/child_thread.cc',
147 'common/child_thread.h',
148 'common/clipboard_messages.cc',
149 'common/clipboard_messages.h',
150 'common/content_constants_internal.cc',
151 'common/content_constants_internal.h',
152 'common/content_export.h',
153 'common/content_ipc_logging.cc',
154 'common/content_message_generator.cc',
155 'common/content_message_generator.h',
156 'common/content_param_traits.cc',
157 'common/content_param_traits.h',
158 'common/content_param_traits_macros.h',
159 'common/content_paths.cc',
160 'common/database_messages.h',
161 'common/database_util.cc',
162 'common/database_util.h',
163 'common/db_message_filter.cc',
164 'common/db_message_filter.h',
165 'common/debug_flags.cc',
166 'common/debug_flags.h',
167 'common/desktop_notification_messages.h',
168 'common/device_motion_messages.h',
169 'common/device_orientation_messages.h',
170 'common/devtools_messages.h',
171 'common/dom_storage_messages.h',
172 'common/drag_event_source_info.h',
173 'common/drag_messages.h',
174 'common/drag_traits.h',
175 'common/edit_command.h',
176 'common/fileapi/file_system_dispatcher.cc',
177 'common/fileapi/file_system_dispatcher.h',
178 'common/fileapi/file_system_messages.h',
179 'common/fileapi/webblob_messages.h',
180 'common/fileapi/webblobregistry_impl.cc',
181 'common/fileapi/webblobregistry_impl.h',
182 'common/fileapi/webfilesystem_callback_dispatcher.cc',
183 'common/fileapi/webfilesystem_callback_dispatcher.h',
184 'common/fileapi/webfilesystem_impl.cc',
185 'common/fileapi/webfilesystem_impl.h',
186 'common/fileapi/webfilewriter_impl.cc',
187 'common/fileapi/webfilewriter_impl.h',
188 'common/file_utilities_messages.h',
189 'common/find_match_rect_android.cc',
190 'common/find_match_rect_android.h',
191 'common/font_cache_dispatcher_win.cc',
192 'common/font_cache_dispatcher_win.h',
193 'common/font_config_ipc_linux.cc',
194 'common/font_config_ipc_linux.h',
195 'common/font_list.h',
196 'common/font_list_android.cc',
197 'common/font_list_mac.mm',
198 'common/font_list_win.cc',
199 'common/font_list_x11.cc',
200 'common/gamepad_hardware_buffer.h',
201 'common/gamepad_messages.h',
202 'common/gamepad_seqlock.cc',
203 'common/gamepad_seqlock.h',
204 'common/gamepad_user_gesture.cc',
205 'common/gamepad_user_gesture.h',
206 'common/geolocation_messages.h',
207 'common/gpu/client/command_buffer_proxy_impl.cc',
208 'common/gpu/client/command_buffer_proxy_impl.h',
209 'common/gpu/client/gl_helper.cc',
210 'common/gpu/client/gl_helper.h',
211 'common/gpu/client/gpu_channel_host.cc',
212 'common/gpu/client/gpu_channel_host.h',
213 'common/gpu/client/gpu_video_decode_accelerator_host.cc',
214 'common/gpu/client/gpu_video_decode_accelerator_host.h',
215 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
216 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
217 'common/gpu/gl_scoped_binders.cc',
218 'common/gpu/gl_scoped_binders.h',
219 'common/gpu/gpu_channel.cc',
220 'common/gpu/gpu_channel.h',
221 'common/gpu/gpu_channel_manager.cc',
222 'common/gpu/gpu_channel_manager.h',
223 'common/gpu/gpu_command_buffer_stub.cc',
224 'common/gpu/gpu_command_buffer_stub.h',
225 'common/gpu/gpu_config.h',
226 'common/gpu/gpu_memory_allocation.h',
227 'common/gpu/gpu_memory_manager.cc',
228 'common/gpu/gpu_memory_manager.h',
229 'common/gpu/gpu_memory_manager_client.cc',
230 'common/gpu/gpu_memory_manager_client.h',
231 'common/gpu/gpu_memory_tracking.cc',
232 'common/gpu/gpu_memory_tracking.h',
233 'common/gpu/gpu_memory_uma_stats.h',
234 'common/gpu/gpu_messages.h',
235 'common/gpu/gpu_process_launch_causes.h',
236 'common/gpu/gpu_rendering_stats.cc',
237 'common/gpu/gpu_rendering_stats.h',
238 'common/gpu/gpu_surface_lookup.h',
239 'common/gpu/gpu_surface_lookup.cc',
240 'common/gpu/stream_texture_manager_android.cc',
241 'common/gpu/stream_texture_manager_android.h',
242 'common/gpu/gpu_watchdog.h',
243 'common/gpu/image_transport_surface.h',
244 'common/gpu/image_transport_surface.cc',
245 'common/gpu/image_transport_surface_android.cc',
246 'common/gpu/image_transport_surface_linux.cc',
247 'common/gpu/image_transport_surface_mac.cc',
248 'common/gpu/image_transport_surface_win.cc',
249 'common/gpu/media/avc_config_record_builder.cc',
250 'common/gpu/media/avc_config_record_builder.h',
251 'common/gpu/media/h264_bit_reader.cc',
252 'common/gpu/media/h264_bit_reader.h',
253 'common/gpu/media/h264_parser.cc',
254 'common/gpu/media/h264_parser.h',
255 'common/gpu/media/mac_video_decode_accelerator.h',
256 'common/gpu/media/mac_video_decode_accelerator.mm',
257 'common/gpu/media/gpu_video_decode_accelerator.cc',
258 'common/gpu/media/gpu_video_decode_accelerator.h',
259 'common/gpu/sync_point_manager.h',
260 'common/gpu/sync_point_manager.cc',
261 'common/gpu/texture_image_transport_surface.h',
262 'common/gpu/texture_image_transport_surface.cc',
263 'common/handle_enumerator_win.cc',
264 'common/handle_enumerator_win.h',
265 'common/icon_messages.h',
266 'common/indexed_db/indexed_db_key.cc',
267 'common/indexed_db/indexed_db_key.h',
268 'common/indexed_db/indexed_db_key_path.cc',
269 'common/indexed_db/indexed_db_key_path.h',
270 'common/indexed_db/indexed_db_key_range.cc',
271 'common/indexed_db/indexed_db_key_range.h',
272 'common/indexed_db/indexed_db_messages.h',
273 'common/indexed_db/indexed_db_param_traits.cc',
274 'common/indexed_db/indexed_db_param_traits.h',
275 'common/indexed_db/indexed_db_dispatcher.cc',
276 'common/indexed_db/indexed_db_dispatcher.h',
277 'common/indexed_db/indexed_db_message_filter.cc',
278 'common/indexed_db/indexed_db_message_filter.h',
279 'common/indexed_db/proxy_webidbcursor_impl.cc',
280 'common/indexed_db/proxy_webidbcursor_impl.h',
281 'common/indexed_db/proxy_webidbdatabase_impl.cc',
282 'common/indexed_db/proxy_webidbdatabase_impl.h',
283 'common/indexed_db/proxy_webidbfactory_impl.cc',
284 'common/indexed_db/proxy_webidbfactory_impl.h',
285 'common/inter_process_time_ticks_converter.cc',
286 'common/inter_process_time_ticks_converter.h',
287 'common/intents_messages.h',
288 'common/java_bridge_messages.h',
289 'common/mac/attributed_string_coder.h',
290 'common/mac/attributed_string_coder.mm',
291 'common/mac/font_descriptor.h',
292 'common/mac/font_descriptor.mm',
293 'common/mac/font_loader.h',
294 'common/mac/font_loader.mm',
295 'common/media/audio_messages.h',
296 'common/media/media_param_traits.cc',
297 'common/media/media_param_traits.h',
298 'common/media/media_player_messages.h',
299 'common/media/media_stream_messages.h',
300 'common/media/media_stream_options.cc',
301 'common/media/media_stream_options.h',
302 'common/media/video_capture.h',
303 'common/media/video_capture_messages.h',
304 'common/message_router.cc',
305 'common/message_router.h',
306 'common/mime_registry_messages.h',
307 'common/navigation_gesture.h',
308 'common/net/url_fetcher.cc',
309 'common/net/url_request_user_data.cc',
310 'common/net/url_request_user_data.h',
311 'common/np_channel_base.cc',
312 'common/np_channel_base.h',
313 'common/npobject_base.h',
314 'common/npobject_proxy.cc',
315 'common/npobject_proxy.h',
316 'common/npobject_stub.cc',
317 'common/npobject_stub.h',
318 'common/npobject_util.cc',
319 'common/npobject_util.h',
320 'common/p2p_messages.h',
321 'common/p2p_sockets.h',
322 'common/page_zoom.cc',
323 'common/pepper_messages.h',
324 'common/pepper_plugin_registry.cc',
325 'common/pepper_plugin_registry.h',
326 'common/pepper_renderer_instance_data.cc',
327 'common/pepper_renderer_instance_data.h',
328 'common/plugin_carbon_interpose_constants_mac.cc',
329 'common/plugin_carbon_interpose_constants_mac.h',
330 'common/plugin_messages.h',
331 'common/process_type.cc',
332 'common/quota_messages.h',
333 'common/quota_dispatcher.cc',
334 'common/quota_dispatcher.h',
335 'common/request_extra_data.cc',
336 'common/request_extra_data.h',
337 'common/resource_dispatcher.cc',
338 'common/resource_dispatcher.h',
339 'common/resource_messages.cc',
340 'common/resource_messages.h',
341 'common/sandbox_init_mac.cc',
342 'common/sandbox_init_mac.h',
343 'common/sandbox_init_win.cc',
344 'common/sandbox_init_linux.cc',
345 'common/sandbox_mac.h',
346 'common/sandbox_mac.mm',
347 'common/sandbox_linux.h',
348 'common/sandbox_linux.cc',
349 'common/sandbox_policy.cc',
350 'common/sandbox_policy.h',
351 'common/sandbox_seccomp_bpf_linux.cc',
352 'common/sandbox_seccomp_bpf_linux.h',
353 'common/savable_url_schemes.cc',
354 'common/savable_url_schemes.h',
355 'common/set_process_title.cc',
356 'common/set_process_title.h',
357 'common/set_process_title_linux.cc',
358 'common/set_process_title_linux.h',
359 'common/socket_stream.h',
360 'common/socket_stream_dispatcher.cc',
361 'common/socket_stream_dispatcher.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/web_database_observer_impl.cc',
377 'common/web_database_observer_impl.h',
378 'common/webkitplatformsupport_impl.cc',
379 'common/webkitplatformsupport_impl.h',
380 'common/webmessageportchannel_impl.cc',
381 'common/webmessageportchannel_impl.h',
382 'common/worker_messages.h',
383 'common/zygote_commands_linux.h',
384 'port/common/input_event_ack_state.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_transition_types\\.cc$'],
406 ['include', '^public/common/password_form\\.cc$'],
407 ['include', '^public/common/speech_recognition_result\\.cc$'],
408 ['include', '^public/common/ssl_status\\.cc$'],
409 ['include', '^public/common/url_constants\\.cc$'],
410 ['include', '^common/content_paths\\.cc$'],
411 ['include', '^common/media/media_stream_options\\.cc$'],
412 ['include', '^common/net/url_fetcher\\.cc$'],
413 ['include', '^common/net/url_request_user_data\\.cc$'],
414 ['include', '^common/savable_url_schemes\\.cc$'],
415 ['include', '^common/url_schemes\\.cc$'],
420 '../gpu/gpu.gyp:gles2_c_lib',
421 '../gpu/gpu.gyp:gles2_implementation',
422 '../gpu/gpu.gyp:gpu_ipc',
423 '../ipc/ipc.gyp:ipc',
424 '../media/media.gyp:shared_memory_support',
425 '../third_party/npapi/npapi.gyp:npapi',
426 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
427 '../ui/gl/gl.gyp:gl',
428 '../webkit/support/webkit_support.gyp:glue',
429 '../webkit/support/webkit_support.gyp:webkit_base',
430 '../webkit/support/webkit_support.gyp:webkit_storage',
435 'common/sandbox_policy.cc',
436 'common/sandbox_policy.h',
442 '-landroid', # ANativeWindow
446 'content.gyp:content_jni_headers',
447 'content.gyp:common_aidl',
450 ['toolkit_uses_gtk == 1', {
452 '../build/linux/system.gyp:gtk',
457 '../build/linux/system.gyp:pangocairo',
460 '<(DEPTH)/third_party/angle/include',
468 ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
470 'common/gpu/x_util.cc',
471 'common/gpu/x_util.h',
474 ['enable_plugins==1', {
476 '../ppapi/ppapi_internal.gyp:ppapi_shared',
478 }, { # enable_plugins == 0
480 'common/pepper_plugin_registry.cc',
481 'common/pepper_plugin_registry.h',
486 '../gpu/gpu.gyp:command_buffer_service',
489 ['target_arch=="arm" and chromeos == 1', {
491 '../media/media.gyp:media',
494 'common/gpu/media/exynos_video_decode_accelerator.cc',
495 'common/gpu/media/exynos_video_decode_accelerator.h',
496 'common/gpu/media/gles2_texture_to_egl_image_translator.cc',
497 'common/gpu/media/gles2_texture_to_egl_image_translator.h',
498 'common/gpu/media/omx_video_decode_accelerator.cc',
499 'common/gpu/media/omx_video_decode_accelerator.h',
502 '<(DEPTH)/third_party/angle/include',
503 '<(DEPTH)/third_party/openmax/il',
512 ['target_arch != "arm" and chromeos == 1', {
514 'common/gpu/media/h264_dpb.cc',
515 'common/gpu/media/h264_dpb.h',
516 'common/gpu/media/vaapi_h264_decoder.cc',
517 'common/gpu/media/vaapi_h264_decoder.h',
518 'common/gpu/media/vaapi_video_decode_accelerator.cc',
519 'common/gpu/media/vaapi_video_decode_accelerator.h',
522 '<(DEPTH)/third_party/libva',
527 '../media/media.gyp:media',
528 '../ui/gl/gl.gyp:gl',
551 'common/gpu/media/dxva_video_decode_accelerator.cc',
552 'common/gpu/media/dxva_video_decode_accelerator.h',
555 '<(DEPTH)/third_party/angle/include',
558 ['OS=="win" and directxsdk_exists=="True"', {
561 'action_name': 'extract_xinput',
563 'input': 'APR2007_xinput_x86.cab',
564 'output': 'xinput1_3.dll',
567 '../third_party/directxsdk/files/Redist/<(input)',
570 '<(PRODUCT_DIR)/<(output)',
574 '../build/extract_from_cab.py',
575 '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
579 'msvs_cygwin_shell': 1,