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/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/result_codes_list.h',
82 'public/common/sandbox_init.h',
83 'public/common/sandbox_linux.h',
84 'public/common/sandbox_type_mac.h',
85 'public/common/sandboxed_process_launcher_delegate.h',
86 'public/common/security_style.h',
87 'public/common/show_desktop_notification_params.cc',
88 'public/common/show_desktop_notification_params.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/url_constants.cc',
98 'public/common/url_constants.h',
99 'public/common/url_fetcher.h',
100 'public/common/zygote_fork_delegate_linux.h',
101 'common/accessibility_messages.h',
102 'common/accessibility_node_data.cc',
103 'common/accessibility_node_data.h',
104 'common/all_messages.h',
105 'common/android/address_parser.cc',
106 'common/android/address_parser.h',
107 'common/android/address_parser_internal.cc',
108 'common/android/address_parser_internal.h',
109 'common/android/command_line.cc',
110 'common/android/command_line.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/appcache/appcache_backend_proxy.cc',
122 'common/appcache/appcache_backend_proxy.h',
123 'common/appcache/appcache_dispatcher.cc',
124 'common/appcache/appcache_dispatcher.h',
125 'common/appcache_messages.h',
126 'common/browser_plugin/browser_plugin_constants.cc',
127 'common/browser_plugin/browser_plugin_constants.h',
128 'common/browser_plugin/browser_plugin_message_enums.h',
129 'common/browser_plugin/browser_plugin_messages.h',
130 'common/cc_messages.cc',
131 'common/cc_messages.h',
132 'common/child_histogram_message_filter.cc',
133 'common/child_histogram_message_filter.h',
134 'common/child_process.cc',
135 'common/child_process.h',
136 'common/child_process_host_impl.cc',
137 'common/child_process_host_impl.h',
138 'common/child_process_messages.h',
139 'common/child_process_sandbox_support_impl_linux.cc',
140 'common/child_process_sandbox_support_impl_linux.h',
141 'common/child_process_sandbox_support_impl_shm_linux.cc',
142 'common/child_thread.cc',
143 'common/child_thread.h',
144 'common/clipboard_messages.cc',
145 'common/clipboard_messages.h',
146 'common/content_constants_internal.cc',
147 'common/content_constants_internal.h',
148 'common/content_export.h',
149 'common/content_ipc_logging.cc',
150 'common/content_message_generator.cc',
151 'common/content_message_generator.h',
152 'common/content_param_traits.cc',
153 'common/content_param_traits.h',
154 'common/content_param_traits_macros.h',
155 'common/content_paths.cc',
156 'common/database_messages.h',
157 'common/database_util.cc',
158 'common/database_util.h',
159 'common/db_message_filter.cc',
160 'common/db_message_filter.h',
161 'common/desktop_notification_messages.h',
162 'common/device_motion_messages.h',
163 'common/device_orientation_messages.h',
164 'common/devtools_messages.h',
165 'common/dom_storage_messages.h',
166 'common/drag_event_source_info.h',
167 'common/drag_messages.h',
168 'common/drag_traits.h',
169 'common/edit_command.h',
170 'common/fileapi/file_system_dispatcher.cc',
171 'common/fileapi/file_system_dispatcher.h',
172 'common/fileapi/file_system_messages.h',
173 'common/fileapi/webblob_messages.h',
174 'common/fileapi/webblobregistry_impl.cc',
175 'common/fileapi/webblobregistry_impl.h',
176 'common/fileapi/webfilesystem_callback_dispatcher.cc',
177 'common/fileapi/webfilesystem_callback_dispatcher.h',
178 'common/fileapi/webfilesystem_impl.cc',
179 'common/fileapi/webfilesystem_impl.h',
180 'common/fileapi/webfilewriter_impl.cc',
181 'common/fileapi/webfilewriter_impl.h',
182 'common/file_utilities_messages.h',
183 'common/find_match_rect_android.cc',
184 'common/find_match_rect_android.h',
185 'common/font_cache_dispatcher_win.cc',
186 'common/font_cache_dispatcher_win.h',
187 'common/font_config_ipc_linux.cc',
188 'common/font_config_ipc_linux.h',
189 'common/font_list.cc',
190 'common/font_list.h',
191 'common/font_list_android.cc',
192 'common/font_list_linux.cc',
193 'common/font_list_mac.mm',
194 'common/font_list_win.cc',
195 'common/gamepad_hardware_buffer.h',
196 'common/gamepad_messages.h',
197 'common/gamepad_seqlock.cc',
198 'common/gamepad_seqlock.h',
199 'common/gamepad_user_gesture.cc',
200 'common/gamepad_user_gesture.h',
201 'common/geolocation_messages.h',
202 'common/gpu/client/command_buffer_proxy_impl.cc',
203 'common/gpu/client/command_buffer_proxy_impl.h',
204 'common/gpu/client/context_provider_command_buffer.cc',
205 'common/gpu/client/context_provider_command_buffer.h',
206 'common/gpu/client/gl_helper.cc',
207 'common/gpu/client/gl_helper.h',
208 'common/gpu/client/gpu_channel_host.cc',
209 'common/gpu/client/gpu_channel_host.h',
210 'common/gpu/client/gpu_video_decode_accelerator_host.cc',
211 'common/gpu/client/gpu_video_decode_accelerator_host.h',
212 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
213 'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
214 'common/gpu/gpu_channel.cc',
215 'common/gpu/gpu_channel.h',
216 'common/gpu/gpu_channel_manager.cc',
217 'common/gpu/gpu_channel_manager.h',
218 'common/gpu/gpu_command_buffer_stub.cc',
219 'common/gpu/gpu_command_buffer_stub.h',
220 'common/gpu/gpu_config.h',
221 'common/gpu/gpu_memory_allocation.h',
222 'common/gpu/gpu_memory_manager.cc',
223 'common/gpu/gpu_memory_manager.h',
224 'common/gpu/gpu_memory_manager_client.cc',
225 'common/gpu/gpu_memory_manager_client.h',
226 'common/gpu/gpu_memory_tracking.cc',
227 'common/gpu/gpu_memory_tracking.h',
228 'common/gpu/gpu_memory_uma_stats.h',
229 'common/gpu/gpu_messages.h',
230 'common/gpu/gpu_process_launch_causes.h',
231 'common/gpu/gpu_rendering_stats.cc',
232 'common/gpu/gpu_rendering_stats.h',
233 'common/gpu/gpu_surface_lookup.h',
234 'common/gpu/gpu_surface_lookup.cc',
235 'common/gpu/stream_texture_manager_android.cc',
236 'common/gpu/stream_texture_manager_android.h',
237 'common/gpu/gpu_watchdog.h',
238 'common/gpu/image_transport_surface.h',
239 'common/gpu/image_transport_surface.cc',
240 'common/gpu/image_transport_surface_android.cc',
241 'common/gpu/image_transport_surface_mac.cc',
242 'common/gpu/image_transport_surface_win.cc',
243 'common/gpu/image_transport_surface_x11.cc',
244 'common/gpu/media/h264_bit_reader.cc',
245 'common/gpu/media/h264_bit_reader.h',
246 'common/gpu/media/h264_parser.cc',
247 'common/gpu/media/h264_parser.h',
248 'common/gpu/media/gpu_video_decode_accelerator.cc',
249 'common/gpu/media/gpu_video_decode_accelerator.h',
250 'common/gpu/sync_point_manager.h',
251 'common/gpu/sync_point_manager.cc',
252 'common/gpu/texture_image_transport_surface.h',
253 'common/gpu/texture_image_transport_surface.cc',
254 'common/handle_enumerator_win.cc',
255 'common/handle_enumerator_win.h',
256 'common/image_messages.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/indexed_db/indexed_db_dispatcher.cc',
267 'common/indexed_db/indexed_db_dispatcher.h',
268 'common/indexed_db/indexed_db_message_filter.cc',
269 'common/indexed_db/indexed_db_message_filter.h',
270 'common/indexed_db/proxy_webidbcursor_impl.cc',
271 'common/indexed_db/proxy_webidbcursor_impl.h',
272 'common/indexed_db/proxy_webidbdatabase_impl.cc',
273 'common/indexed_db/proxy_webidbdatabase_impl.h',
274 'common/indexed_db/proxy_webidbfactory_impl.cc',
275 'common/indexed_db/proxy_webidbfactory_impl.h',
276 'common/input_messages.h',
277 'common/inter_process_time_ticks_converter.cc',
278 'common/inter_process_time_ticks_converter.h',
279 'common/java_bridge_messages.h',
280 'common/mac/attributed_string_coder.h',
281 'common/mac/attributed_string_coder.mm',
282 'common/mac/font_descriptor.h',
283 'common/mac/font_descriptor.mm',
284 'common/mac/font_loader.h',
285 'common/mac/font_loader.mm',
286 'common/media/audio_messages.h',
287 'common/media/media_param_traits.cc',
288 'common/media/media_param_traits.h',
289 'common/media/media_player_messages.h',
290 'common/media/media_stream_messages.h',
291 'common/media/media_stream_options.cc',
292 'common/media/media_stream_options.h',
293 'common/media/video_capture.h',
294 'common/media/video_capture_messages.h',
295 'common/media/webrtc_logging_messages.h',
296 'common/message_router.cc',
297 'common/message_router.h',
298 'common/mime_registry_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/np_channel_base.cc',
304 'common/np_channel_base.h',
305 'common/npobject_base.h',
306 'common/npobject_proxy.cc',
307 'common/npobject_proxy.h',
308 'common/npobject_stub.cc',
309 'common/npobject_stub.h',
310 'common/npobject_util.cc',
311 'common/npobject_util.h',
312 'common/p2p_messages.h',
313 'common/p2p_sockets.h',
314 'common/page_zoom.cc',
315 'common/partial_circular_buffer.cc',
316 'common/partial_circular_buffer.h',
317 'common/pepper_messages.h',
318 'common/pepper_plugin_registry.cc',
319 'common/pepper_plugin_registry.h',
320 'common/pepper_renderer_instance_data.cc',
321 'common/pepper_renderer_instance_data.h',
322 'common/plugin_carbon_interpose_constants_mac.cc',
323 'common/plugin_carbon_interpose_constants_mac.h',
324 'common/plugin_messages.h',
325 'common/process_type.cc',
326 'common/quota_messages.h',
327 'common/quota_dispatcher.cc',
328 'common/quota_dispatcher.h',
329 'common/request_extra_data.cc',
330 'common/request_extra_data.h',
331 'common/resource_dispatcher.cc',
332 'common/resource_dispatcher.h',
333 'common/resource_messages.cc',
334 'common/resource_messages.h',
335 'common/sandbox_init_mac.cc',
336 'common/sandbox_init_mac.h',
337 'common/sandbox_init_win.cc',
338 'common/sandbox_mac.h',
339 'common/sandbox_mac.mm',
340 'common/sandbox_linux.h',
341 'common/sandbox_linux.cc',
342 'common/sandbox_seccomp_bpf_linux.cc',
343 'common/sandbox_seccomp_bpf_linux.h',
344 'common/sandbox_util.cc',
345 'common/sandbox_util.h',
346 'common/sandbox_win.cc',
347 'common/sandbox_win.h',
348 'common/savable_url_schemes.cc',
349 'common/savable_url_schemes.h',
350 'common/set_process_title.cc',
351 'common/set_process_title.h',
352 'common/set_process_title_linux.cc',
353 'common/set_process_title_linux.h',
354 'common/socket_stream.h',
355 'common/socket_stream_dispatcher.cc',
356 'common/socket_stream_dispatcher.h',
357 'common/socket_stream_handle_data.cc',
358 'common/socket_stream_handle_data.h',
359 'common/socket_stream_messages.h',
360 'common/speech_recognition_messages.h',
361 'common/ssl_status_serialization.cc',
362 'common/ssl_status_serialization.h',
363 'common/swapped_out_messages.cc',
364 'common/swapped_out_messages.h',
365 'common/thread_safe_sender.cc',
366 'common/thread_safe_sender.h',
367 'common/text_input_client_messages.h',
368 'common/url_schemes.cc',
369 'common/url_schemes.h',
370 'common/utility_messages.h',
371 'common/view_messages.h',
372 'common/view_message_enums.h',
373 'common/web_database_observer_impl.cc',
374 'common/web_database_observer_impl.h',
375 'common/webkitplatformsupport_impl.cc',
376 'common/webkitplatformsupport_impl.h',
377 'common/webmessageportchannel_impl.cc',
378 'common/webmessageportchannel_impl.h',
379 'common/worker_messages.h',
380 'common/zygote_commands_linux.h',
381 'port/common/input_event_ack_state.h',
382 'public/common/common_param_traits.cc',
383 'public/common/common_param_traits.h',
384 'public/common/common_param_traits_macros.h',
385 'public/common/content_client.cc',
386 'public/common/content_client.h',
387 'public/common/window_container_type.cc',
388 'public/common/window_container_type.h',
393 # iOS only needs a small portion of content; exclude all the
394 # implementation, and re-include what is used.
395 ['exclude', '\\.(cc|mm)$'],
396 ['include', '_ios\\.(cc|mm)$'],
397 ['include', '^public/common/content_client\\.cc$'],
398 ['include', '^public/common/content_constants\\.cc$'],
399 ['include', '^public/common/content_switches\\.cc$'],
400 ['include', '^public/common/frame_navigate_params\\.cc$'],
401 ['include', '^public/common/media_stream_request\\.cc$'],
402 ['include', '^public/common/page_transition_types\\.cc$'],
403 ['include', '^public/common/password_form\\.cc$'],
404 ['include', '^public/common/speech_recognition_result\\.cc$'],
405 ['include', '^public/common/ssl_status\\.cc$'],
406 ['include', '^public/common/url_constants\\.cc$'],
407 ['include', '^common/content_paths\\.cc$'],
408 ['include', '^common/media/media_stream_options\\.cc$'],
409 ['include', '^common/net/url_fetcher\\.cc$'],
410 ['include', '^common/net/url_request_user_data\\.cc$'],
411 ['include', '^common/savable_url_schemes\\.cc$'],
412 ['include', '^common/url_schemes\\.cc$'],
417 '../gpu/gpu.gyp:gles2_c_lib',
418 '../gpu/gpu.gyp:gles2_implementation',
419 '../gpu/gpu.gyp:gpu_ipc',
420 '../ipc/ipc.gyp:ipc',
421 '../media/media.gyp:shared_memory_support',
422 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
423 '../third_party/npapi/npapi.gyp:npapi',
424 '../ui/gl/gl.gyp:gl',
425 '../webkit/support/webkit_support.gyp:glue',
426 '../webkit/support/webkit_support.gyp:webkit_base',
427 '../webkit/support/webkit_support.gyp:webkit_storage',
433 '-landroid', # ANativeWindow
437 'content.gyp:content_jni_headers',
438 'content.gyp:common_aidl',
441 ['toolkit_uses_gtk == 1', {
443 '../build/linux/system.gyp:gtk',
448 '../build/linux/system.gyp:pangocairo',
453 '<(DEPTH)/third_party/angle/include',
461 ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
463 'common/gpu/x_util.cc',
464 'common/gpu/x_util.h',
467 ['enable_plugins==1', {
469 '../ppapi/ppapi_internal.gyp:ppapi_shared',
471 }, { # enable_plugins == 0
473 'common/pepper_plugin_registry.cc',
474 'common/pepper_plugin_registry.h',
479 '../gpu/gpu.gyp:command_buffer_service',
484 '../media/media.gyp:media',
487 'common/gpu/media/android_video_decode_accelerator.cc',
488 'common/gpu/media/android_video_decode_accelerator.h',
491 ['target_arch=="arm" and chromeos == 1 and use_x11 == 1', {
493 '../media/media.gyp:media',
496 'common/gpu/media/exynos_video_decode_accelerator.cc',
497 'common/gpu/media/exynos_video_decode_accelerator.h',
498 'common/gpu/media/gles2_texture_to_egl_image_translator.cc',
499 'common/gpu/media/gles2_texture_to_egl_image_translator.h',
500 'common/gpu/media/omx_video_decode_accelerator.cc',
501 'common/gpu/media/omx_video_decode_accelerator.h',
504 '<(DEPTH)/third_party/angle/include',
505 '<(DEPTH)/third_party/openmax/il',
514 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
516 'common/gpu/media/h264_dpb.cc',
517 'common/gpu/media/h264_dpb.h',
518 'common/gpu/media/vaapi_h264_decoder.cc',
519 'common/gpu/media/vaapi_h264_decoder.h',
520 'common/gpu/media/vaapi_video_decode_accelerator.cc',
521 'common/gpu/media/vaapi_video_decode_accelerator.h',
524 '<(DEPTH)/third_party/libva',
529 '../media/media.gyp:media',
530 '../ui/gl/gl.gyp:gl',
553 'common/gpu/media/dxva_video_decode_accelerator.cc',
554 'common/gpu/media/dxva_video_decode_accelerator.h',
557 '<(DEPTH)/third_party/angle/include',
560 ['OS=="win" and directxsdk_exists=="True"', {
563 'action_name': 'extract_xinput',
565 'input': 'APR2007_xinput_x86.cab',
566 'output': 'xinput1_3.dll',
569 '../third_party/directxsdk/files/Redist/<(input)',
572 '<(PRODUCT_DIR)/<(output)',
576 '../build/extract_from_cab.py',
577 '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
581 'msvs_cygwin_shell': 1,