blob: 976c9cccc8d092334794fd06783e69b1da5e0dce [file] [log] [blame]
[email protected]df3ecfde2014-05-20 21:52:341# Copyright 2014 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.
4
thakis18e426412017-03-15 12:06:375import("features.gni")
6import("//build/buildflag_header.gni")
[email protected]7e4c33142014-05-21 22:01:327import("//build/config/features.gni")
8import("//build/config/ui.gni")
xhwang13eab742015-11-18 20:29:379import("//media/media_options.gni")
rockot85dce0862015-11-13 01:33:5910import("//mojo/public/tools/bindings/mojom.gni")
brettw4b461082016-11-19 18:55:1611import("//ppapi/features/features.gni")
rsesek7b1273af02016-12-06 20:55:4712import("//sandbox/features.gni")
ochangdd89a1e2016-06-08 16:39:0113import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
dpranke517335e2015-08-01 02:41:1414if (is_mac) {
15 import("//build/config/mac/mac_sdk.gni")
16}
[email protected]df3ecfde2014-05-20 21:52:3417
thakis18e426412017-03-15 12:06:3718# For feature flags internal to content. See content/public/common:features
19# for feature flags that clients of contents need to know about.
20buildflag_header("features") {
21 header = "features.h"
22
Luke Halliwell16136de2017-07-05 21:15:5623 flags = [
24 "USE_EXTERNAL_POPUP_MENU=$use_external_popup_menu",
25 "ALLOW_CRITICAL_MEMORY_PRESSURE_HANDLING_IN_FOREGROUND=$allow_critical_memory_pressure_handling_in_foreground",
26 ]
thakis18e426412017-03-15 12:06:3727}
28
[email protected]df3ecfde2014-05-20 21:52:3429source_set("common") {
brettwb78fc9e2016-03-25 21:02:5130 # Targets external to content should always link to the public API.
31 # In addition, targets outside of the content component (shell and tests)
32 # must not link to this because it will duplicate the code in the component
33 # build.
34 visibility = [ "//content/*" ]
[email protected]df3ecfde2014-05-20 21:52:3435
brettw8ad01a32016-09-01 23:26:2536 sources = [
37 "accessibility_messages.h",
38 "all_messages.h",
Nate Fischer5b685a02017-09-26 18:55:0939 "android/browser_side_navigation_policy_android.cc",
brettw8ad01a32016-09-01 23:26:2540 "android/gin_java_bridge_errors.cc",
41 "android/gin_java_bridge_errors.h",
42 "android/gin_java_bridge_value.cc",
43 "android/gin_java_bridge_value.h",
44 "android/hash_set.cc",
45 "android/hash_set.h",
46 "android/media_metadata_android.cc",
47 "android/media_metadata_android.h",
48 "android/resource_request_body_android.cc",
49 "android/resource_request_body_android.h",
brettw8ad01a32016-09-01 23:26:2550 "android/sync_compositor_statics.cc",
51 "android/sync_compositor_statics.h",
52 "appcache_interfaces.cc",
53 "appcache_interfaces.h",
rockotf62002a2016-09-15 00:08:5954 "associated_interface_provider_impl.cc",
55 "associated_interface_provider_impl.h",
56 "associated_interface_registry_impl.cc",
57 "associated_interface_registry_impl.h",
brettw8ad01a32016-09-01 23:26:2558 "ax_content_node_data.cc",
59 "ax_content_node_data.h",
petera1ab5a92017-03-24 13:59:5360 "background_fetch/background_fetch_struct_traits.cc",
61 "background_fetch/background_fetch_struct_traits.h",
62 "background_fetch/background_fetch_types.cc",
63 "background_fetch/background_fetch_types.h",
brettw8ad01a32016-09-01 23:26:2564 "bluetooth/web_bluetooth_device_id.cc",
65 "bluetooth/web_bluetooth_device_id.h",
66 "browser_plugin/browser_plugin_constants.cc",
67 "browser_plugin/browser_plugin_constants.h",
68 "browser_plugin/browser_plugin_messages.h",
69 "cache_storage/cache_storage_messages.h",
70 "cache_storage/cache_storage_types.cc",
71 "cache_storage/cache_storage_types.h",
72 "child_process_host_impl.cc",
73 "child_process_host_impl.h",
jamcc96c422017-02-10 18:50:2074 "common_sandbox_support_linux.cc",
brettw8ad01a32016-09-01 23:26:2575 "content_constants_internal.cc",
76 "content_constants_internal.h",
77 "content_export.h",
78 "content_ipc_logging.cc",
79 "content_message_generator.cc",
80 "content_message_generator.h",
81 "content_param_traits.cc",
82 "content_param_traits.h",
83 "content_param_traits_macros.h",
84 "content_paths.cc",
arthursonzogni7c9cab42017-02-21 18:58:1385 "content_security_policy/content_security_policy.cc",
86 "content_security_policy/content_security_policy.h",
87 "content_security_policy/csp_context.cc",
88 "content_security_policy/csp_context.h",
89 "content_security_policy/csp_directive.cc",
90 "content_security_policy/csp_directive.h",
tfarina6c067d452017-05-08 20:30:2791 "content_security_policy/csp_disposition_enum.h",
arthursonzogni7c9cab42017-02-21 18:58:1392 "content_security_policy/csp_source.cc",
93 "content_security_policy/csp_source.h",
94 "content_security_policy/csp_source_list.cc",
95 "content_security_policy/csp_source_list.h",
arthursonzogni662aa652017-03-28 11:09:5096 "content_security_policy_header.cc",
brettw8ad01a32016-09-01 23:26:2597 "content_security_policy_header.h",
98 "content_switches_internal.cc",
99 "content_switches_internal.h",
100 "cross_site_document_classifier.cc",
101 "cross_site_document_classifier.h",
102 "cursors/webcursor.cc",
103 "cursors/webcursor.h",
104 "cursors/webcursor_android.cc",
105 "cursors/webcursor_aura.cc",
106 "cursors/webcursor_aurawin.cc",
107 "cursors/webcursor_aurax11.cc",
108 "cursors/webcursor_mac.mm",
109 "cursors/webcursor_ozone.cc",
brettw8ad01a32016-09-01 23:26:25110 "date_time_suggestion.h",
brettw8ad01a32016-09-01 23:26:25111 "devtools_messages.h",
brettw8ad01a32016-09-01 23:26:25112 "dom_storage/dom_storage_map.cc",
113 "dom_storage/dom_storage_map.h",
114 "dom_storage/dom_storage_messages.h",
tfarina6c067d452017-05-08 20:30:27115 "dom_storage/dom_storage_types.h",
carlosk29da4fe2016-11-29 00:01:29116 "download/mhtml_save_status.cc",
117 "download/mhtml_save_status.h",
brettw8ad01a32016-09-01 23:26:25118 "drag_event_source_info.h",
119 "drag_messages.h",
120 "drag_traits.h",
121 "dwrite_font_proxy_messages.h",
122 "edit_command.h",
brettw8ad01a32016-09-01 23:26:25123 "fileapi/file_system_messages.h",
tfarina6c067d452017-05-08 20:30:27124 "fileapi/webblob_messages.h",
brettw8ad01a32016-09-01 23:26:25125 "font_cache_dispatcher_win.cc",
126 "font_cache_dispatcher_win.h",
127 "font_config_ipc_linux.cc",
128 "font_config_ipc_linux.h",
129 "font_list.cc",
130 "font_list.h",
131 "font_list_android.cc",
132 "font_list_fontconfig.cc",
133 "font_list_mac.mm",
134 "font_list_win.cc",
135 "frame_message_enums.h",
136 "frame_messages.h",
Balazs Engedya40712f2017-09-15 15:01:11137 "frame_messages_forward.h",
brettw8ad01a32016-09-01 23:26:25138 "frame_owner_properties.cc",
139 "frame_owner_properties.h",
140 "frame_replication_state.cc",
141 "frame_replication_state.h",
brettw8ad01a32016-09-01 23:26:25142 "gin_java_bridge_messages.h",
brettw8ad01a32016-09-01 23:26:25143 "in_process_child_thread_params.cc",
144 "in_process_child_thread_params.h",
145 "indexed_db/indexed_db_constants.h",
146 "indexed_db/indexed_db_key.cc",
147 "indexed_db/indexed_db_key.h",
148 "indexed_db/indexed_db_key_path.cc",
149 "indexed_db/indexed_db_key_path.h",
150 "indexed_db/indexed_db_key_range.cc",
151 "indexed_db/indexed_db_key_range.h",
reillyg627e7f72016-10-20 05:12:43152 "indexed_db/indexed_db_metadata.cc",
153 "indexed_db/indexed_db_metadata.h",
reillyg627e7f72016-10-20 05:12:43154 "indexed_db/indexed_db_struct_traits.cc",
155 "indexed_db/indexed_db_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25156 "input/event_with_latency_info.h",
157 "input/gesture_event_stream_validator.cc",
158 "input/gesture_event_stream_validator.h",
Ryan Landay69ac1e42017-09-14 02:17:38159 "input/ime_text_span_conversions.cc",
160 "input/ime_text_span_conversions.h",
brettw8ad01a32016-09-01 23:26:25161 "input/input_event.cc",
162 "input/input_event.h",
163 "input/input_event_ack.cc",
164 "input/input_event_ack.h",
Daniel Bratell364b9f32017-10-24 16:53:21165 "input/input_event_ack_state.cc",
brettw8ad01a32016-09-01 23:26:25166 "input/input_event_dispatch_type.h",
167 "input/input_event_stream_validator.cc",
168 "input/input_event_stream_validator.h",
Dave Tapuska3b202772017-07-07 21:42:02169 "input/input_event_struct_traits.cc",
170 "input/input_event_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25171 "input/input_param_traits.cc",
172 "input/input_param_traits.h",
Dave Tapuska734b27d2017-12-20 00:52:56173 "input/sync_compositor_messages.cc",
174 "input/sync_compositor_messages.h",
brettw8ad01a32016-09-01 23:26:25175 "input/synthetic_gesture_params.cc",
176 "input/synthetic_gesture_params.h",
177 "input/synthetic_pinch_gesture_params.cc",
178 "input/synthetic_pinch_gesture_params.h",
lanwei3df2fbb2016-12-21 22:10:02179 "input/synthetic_pointer_action_list_params.cc",
180 "input/synthetic_pointer_action_list_params.h",
brettw8ad01a32016-09-01 23:26:25181 "input/synthetic_pointer_action_params.cc",
182 "input/synthetic_pointer_action_params.h",
183 "input/synthetic_smooth_drag_gesture_params.cc",
184 "input/synthetic_smooth_drag_gesture_params.h",
185 "input/synthetic_smooth_scroll_gesture_params.cc",
186 "input/synthetic_smooth_scroll_gesture_params.h",
187 "input/synthetic_tap_gesture_params.cc",
188 "input/synthetic_tap_gesture_params.h",
189 "input/synthetic_web_input_event_builders.cc",
190 "input/synthetic_web_input_event_builders.h",
Dave Tapuskab28a1082017-08-30 15:37:26191 "input/touch_action_optional_struct_traits.cc",
192 "input/touch_action_optional_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25193 "input/touch_event_stream_validator.cc",
194 "input/touch_event_stream_validator.h",
brettw8ad01a32016-09-01 23:26:25195 "input/web_touch_event_traits.cc",
196 "input/web_touch_event_traits.h",
197 "input_messages.h",
198 "inter_process_time_ticks_converter.cc",
199 "inter_process_time_ticks_converter.h",
200 "layer_tree_settings_factory.cc",
201 "layer_tree_settings_factory.h",
John Abd-El-Malek287591b2017-07-20 22:28:30202 "loader_util.cc",
203 "loader_util.h",
brettw8ad01a32016-09-01 23:26:25204 "mac/attributed_string_coder.h",
205 "mac/attributed_string_coder.mm",
brettw8ad01a32016-09-01 23:26:25206 "mac/font_loader.h",
207 "mac/font_loader.mm",
brettw8ad01a32016-09-01 23:26:25208 "media/aec_dump_messages.h",
209 "media/audio_messages.h",
210 "media/cdm_info.cc",
guidoucc6d4602016-09-23 21:28:43211 "media/media_devices.cc",
212 "media/media_devices.h",
brettw8ad01a32016-09-01 23:26:25213 "media/media_player_delegate_messages.h",
214 "media/media_player_messages_android.h",
Chandan Padhi06fba2c2017-09-08 08:10:57215 "media/media_stream_controls.cc",
216 "media/media_stream_controls.h",
Chandan Padhi2e16c462017-08-18 10:24:02217 "media/media_stream_param_traits.cc",
218 "media/media_stream_param_traits.h",
brettw8ad01a32016-09-01 23:26:25219 "media/media_stream_track_metrics_host_messages.h",
220 "media/midi_messages.h",
tfarina6c067d452017-05-08 20:30:27221 "media/peer_connection_tracker_messages.h",
brettw8ad01a32016-09-01 23:26:25222 "media/surface_view_manager_messages_android.h",
223 "media/video_capture.h",
brettw8ad01a32016-09-01 23:26:25224 "navigation_gesture.h",
225 "navigation_params.cc",
226 "navigation_params.h",
Kinuko Yasuda250577c2017-10-29 02:51:24227 "navigation_subresource_loader_params.cc",
228 "navigation_subresource_loader_params.h",
brettw8ad01a32016-09-01 23:26:25229 "net/url_fetcher.cc",
230 "net/url_request_service_worker_data.cc",
231 "net/url_request_service_worker_data.h",
232 "net/url_request_user_data.cc",
233 "net/url_request_user_data.h",
Alex Valléedb4232d2017-10-12 01:17:05234 "origin_trials/trial_policy_impl.cc",
235 "origin_trials/trial_policy_impl.h",
brettw8ad01a32016-09-01 23:26:25236 "origin_util.cc",
tfarina6c067d452017-05-08 20:30:27237 "p2p_socket_type.h",
238 "page_message_enums.h",
239 "page_messages.h",
brettw8ad01a32016-09-01 23:26:25240 "page_state_serialization.cc",
241 "page_state_serialization.h",
242 "page_zoom.cc",
243 "pepper_file_util.cc",
244 "pepper_file_util.h",
245 "pepper_plugin_list.cc",
246 "pepper_plugin_list.h",
247 "pepper_renderer_instance_data.cc",
248 "pepper_renderer_instance_data.h",
249 "platform_notification_messages.h",
250 "plugin_list.cc",
251 "plugin_list.h",
yzshenefcb7c72017-06-16 23:12:30252 "possibly_associated_interface_ptr.h",
Reilly Grantd175c5e62017-08-30 19:26:58253 "possibly_associated_interface_ptr_info.h",
mfoltz0dc2a6b2017-03-07 18:24:19254 "presentation/presentation_struct_traits.cc",
255 "presentation/presentation_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25256 "process_type.cc",
asankac1ab0292016-12-08 21:53:33257 "quarantine/quarantine.cc",
258 "quarantine/quarantine_constants_linux.h",
259 "quarantine/quarantine_linux.cc",
260 "quarantine/quarantine_mac.mm",
261 "quarantine/quarantine_win.cc",
samansa1d159d82017-05-17 18:27:21262 "render_widget_surface_properties.cc",
263 "render_widget_surface_properties.h",
brettw8ad01a32016-09-01 23:26:25264 "resize_params.cc",
265 "resize_params.h",
266 "resource_messages.cc",
267 "resource_messages.h",
Tom Sepezc09f5d42017-10-16 19:10:00268 "sandbox_init_linux.cc",
brettw8ad01a32016-09-01 23:26:25269 "sandbox_init_mac.cc",
brettw8ad01a32016-09-01 23:26:25270 "sandbox_init_win.cc",
brettw8ad01a32016-09-01 23:26:25271 "savable_subframe.h",
brettw8ad01a32016-09-01 23:26:25272 "send_zygote_child_ping_linux.cc",
bend32292b2016-10-07 00:21:58273 "service_manager/service_manager_connection_impl.cc",
274 "service_manager/service_manager_connection_impl.h",
brettw8ad01a32016-09-01 23:26:25275 "service_worker/embedded_worker_messages.h",
276 "service_worker/embedded_worker_settings.h",
shimazu5de409e42016-09-29 08:45:28277 "service_worker/embedded_worker_start_params.cc",
278 "service_worker/embedded_worker_start_params.h",
brettw8ad01a32016-09-01 23:26:25279 "service_worker/service_worker_client_info.cc",
280 "service_worker/service_worker_client_info.h",
Emi Morikawa38169632017-09-05 15:02:37281 "service_worker/service_worker_loader_helpers.cc",
282 "service_worker/service_worker_loader_helpers.h",
brettw8ad01a32016-09-01 23:26:25283 "service_worker/service_worker_messages.h",
shimazu3b85dfb2017-02-21 13:03:30284 "service_worker/service_worker_provider_host_info.cc",
285 "service_worker/service_worker_provider_host_info.h",
brettw8ad01a32016-09-01 23:26:25286 "service_worker/service_worker_status_code.cc",
287 "service_worker/service_worker_status_code.h",
brettw8ad01a32016-09-01 23:26:25288 "service_worker/service_worker_types.cc",
289 "service_worker/service_worker_types.h",
290 "service_worker/service_worker_utils.cc",
291 "service_worker/service_worker_utils.h",
brettw8ad01a32016-09-01 23:26:25292 "speech_recognition_messages.h",
brettw8ad01a32016-09-01 23:26:25293 "swapped_out_messages.cc",
294 "swapped_out_messages.h",
Francois Doray6d3c649692017-06-16 19:20:25295 "task_scheduler.cc",
296 "task_scheduler.h",
brettw8ad01a32016-09-01 23:26:25297 "text_input_client_messages.h",
298 "text_input_state.cc",
299 "text_input_state.h",
yzshen208145b2017-06-06 00:47:42300 "throttling_url_loader.cc",
301 "throttling_url_loader.h",
dcheng61b2c9222017-05-25 23:10:11302 "unique_name_helper.cc",
303 "unique_name_helper.h",
Ken Rockotbe87ab322017-11-02 19:40:23304 "url_loader_factory_bundle.cc",
305 "url_loader_factory_bundle.h",
yhirano933ee582017-01-27 13:28:40306 "url_request_struct_traits.cc",
307 "url_request_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25308 "url_schemes.cc",
309 "url_schemes.h",
310 "user_agent.cc",
brettw8ad01a32016-09-01 23:26:25311 "view_message_enums.h",
312 "view_messages.h",
brettw8ad01a32016-09-01 23:26:25313 "zygote_commands_linux.h",
314 ]
[email protected]df3ecfde2014-05-20 21:52:34315
brettw1deb76bc2015-02-18 19:28:20316 configs += [
317 "//content:content_implementation",
brettwbc8b2a22015-07-28 18:24:42318 "//build/config:precompiled_headers",
brettw1deb76bc2015-02-18 19:28:20319 "//build/config/compiler:no_size_t_to_int_warning",
320 ]
[email protected]df3ecfde2014-05-20 21:52:34321
Brett Wilsone53895272014-09-23 23:41:46322 public_deps = [
jamb3c1195df2016-03-21 20:41:29323 ":mojo_bindings",
xlai8f405382016-09-01 19:46:22324 "//cc",
Brett Wilsone53895272014-09-23 23:41:46325 "//gpu/command_buffer/common",
agrievee786dac2015-12-02 14:45:22326 "//ipc",
Tom Sepez15d4e5202017-09-27 23:59:05327 "//services/service_manager/sandbox",
Marijn Kruisselbrink6dc8a882017-10-04 02:33:23328 "//third_party/WebKit/common:blink_common",
Brett Wilsone53895272014-09-23 23:41:46329 "//third_party/WebKit/public:blink_headers",
330 ]
[email protected]df3ecfde2014-05-20 21:52:34331 deps = [
thakis18e426412017-03-15 12:06:37332 ":features",
[email protected]df3ecfde2014-05-20 21:52:34333 "//base",
brettw63340882016-03-22 17:09:49334 "//base/third_party/dynamic_annotations",
[email protected]7e4c33142014-05-21 22:01:32335 "//build/util:webkit_version",
fsamuel812b8482016-05-16 18:52:18336 "//cc/ipc",
penghuangd81c1a62016-11-02 20:06:06337 "//components/discardable_memory/common",
[email protected]df3ecfde2014-05-20 21:52:34338 "//components/tracing",
zhenw062a94522015-06-22 20:55:28339 "//components/tracing:startup_tracing",
Fady Samuele4786072017-07-24 20:03:38340 "//components/viz/service",
brettw26c6ab452016-06-23 00:41:09341 "//content:resources",
342 "//content/app/resources",
mmenke680c2142017-07-05 19:08:56343 "//content/public/common:interfaces",
ben6f95c4752017-04-25 21:08:53344 "//content/public/common:service_names",
alexis.menardb39a30822016-09-30 15:14:39345 "//device/base/synchronization",
jamb3c1195df2016-03-21 20:41:29346 "//device/bluetooth",
brettw63340882016-03-22 17:09:49347 "//gpu",
jamb3c1195df2016-03-21 20:41:29348 "//gpu/command_buffer/client:gles2_c_lib",
349 "//gpu/command_buffer/client:gles2_cmd_helper",
350 "//gpu/command_buffer/client:gles2_implementation",
jbromancba3d2fe2014-09-16 01:04:24351 "//gpu/command_buffer/client:gles2_interface",
brettw542f7532015-04-06 22:35:45352 "//gpu/command_buffer/common:gles2_utils",
jamb3c1195df2016-03-21 20:41:29353 "//gpu/command_buffer/service",
penghuang346a46f92016-03-31 21:37:52354 "//gpu/ipc/client",
jamb3c1195df2016-03-21 20:41:29355 "//gpu/ipc/common",
356 "//gpu/skia_bindings",
357 "//ipc",
jamb3c1195df2016-03-21 20:41:29358 "//media",
359 "//media:shared_memory_support",
jamc17b7fa02016-05-12 03:57:55360 "//media/base/ipc",
mcasase40d7522016-06-21 16:11:40361 "//media/capture",
chfremerb689c2a2016-10-27 23:04:46362 "//media/capture/ipc",
Alexandre Courbotc3265092017-08-30 16:32:30363 "//media/gpu:features",
penghuang13b168b2016-04-07 15:23:31364 "//media/gpu/ipc/client",
fsamuel29ebf3c2016-04-01 00:20:00365 "//media/gpu/ipc/common",
jamb3c1195df2016-03-21 20:41:29366 "//media/midi",
sammc64324c3a2017-01-05 00:40:15367 "//media/midi:mojo",
jamb3c1195df2016-03-21 20:41:29368 "//mojo/common:common_base",
jamb3c1195df2016-03-21 20:41:29369 "//mojo/edk/system",
[email protected]df3ecfde2014-05-20 21:52:34370 "//net",
brettw4b461082016-11-19 18:55:16371 "//ppapi/features",
jamb3c1195df2016-03-21 20:41:29372 "//sandbox",
rsesek7b1273af02016-12-06 20:55:47373 "//sandbox:sandbox_features",
Randy Smithc5734252017-12-06 02:37:55374 "//services/network/public/cpp",
375 "//services/network/public/interfaces",
ssidf91ad00d2017-04-26 01:24:46376 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp",
rockot734fb662016-10-15 16:41:30377 "//services/service_manager",
rockot60d92c22017-03-21 06:35:23378 "//services/service_manager/embedder",
rockot734fb662016-10-15 16:41:30379 "//services/service_manager/public/cpp",
380 "//services/service_manager/public/interfaces",
381 "//services/service_manager/runner/common",
ben6b0453d12016-07-02 04:27:19382 "//services/ui/public/interfaces",
mcasasc3b336b2016-10-07 14:55:45383 "//services/video_capture/public/interfaces",
Saman Sami1f34578b2017-08-28 18:31:56384 "//services/viz/public/interfaces",
[email protected]df3ecfde2014-05-20 21:52:34385 "//skia",
jamb3c1195df2016-03-21 20:41:29386 "//storage/common",
Satyajit Sahu82a76e02017-09-18 14:50:14387 "//third_party/angle:angle_gpu_info_util",
jamb3c1195df2016-03-21 20:41:29388 "//third_party/boringssl",
[email protected]df3ecfde2014-05-20 21:52:34389 "//third_party/icu",
390 "//ui/accessibility",
[email protected]52140d882014-05-30 19:22:40391 "//ui/base",
spang1c36fac2015-02-05 19:55:12392 "//ui/base/ime",
brettw26c6ab452016-06-23 00:41:09393 "//ui/display",
chongza8ba91fc2016-08-16 21:39:17394 "//ui/events/blink",
[email protected]df3ecfde2014-05-20 21:52:34395 "//ui/gfx",
396 "//ui/gfx/geometry",
[email protected]d7e69fa2014-07-24 21:19:28397 "//ui/gfx/ipc",
ccamerone0d9f382016-07-19 20:12:15398 "//ui/gfx/ipc/color",
fsamuel6b98cf92016-04-28 05:42:24399 "//ui/gfx/ipc/geometry",
markdittmer99d77bf2016-03-31 19:03:24400 "//ui/gfx/ipc/skia",
jamb3c1195df2016-03-21 20:41:29401 "//ui/gl",
mfomitchev3ba450ad2017-04-03 18:20:40402 "//ui/latency/ipc",
[email protected]a1d7d4f2014-07-16 21:33:36403 "//ui/shell_dialogs",
[email protected]df3ecfde2014-05-20 21:52:34404 "//url",
markdittmer67b71ea2016-03-03 22:40:03405 "//url/ipc:url_ipc",
[email protected]df3ecfde2014-05-20 21:52:34406 ]
[email protected]7e4c33142014-05-21 22:01:32407
ben3f5f9992015-11-19 10:38:30408 defines = []
[email protected]7e4c33142014-05-21 22:01:32409 include_dirs = []
[email protected]7e4c33142014-05-21 22:01:32410 libs = []
411 ldflags = []
412
mmenke680c2142017-07-05 19:08:56413 allow_circular_includes_from = [
414 ":mojo_bindings",
415 "//content/public/common:interfaces",
416 ]
yhirano72f62272016-08-13 12:50:06417
[email protected]7e4c33142014-05-21 22:01:32418 if (is_android && use_seccomp_bpf) {
419 set_sources_assignment_filter([])
420 sources += [
Tom Sepez10c04552017-11-03 17:20:36421 "//services/service_manager/sandbox/linux/bpf_base_policy_linux.cc",
422 "//services/service_manager/sandbox/linux/bpf_base_policy_linux.h",
[email protected]7e4c33142014-05-21 22:01:32423 ]
424 set_sources_assignment_filter(sources_assignment_filter)
425 }
426
427 if (is_mac) {
markdittmer6e70beb82016-05-02 05:40:47428 deps += [ "//sandbox/mac:seatbelt" ]
[email protected]7e4c33142014-05-21 22:01:32429 }
430
431 if (is_android) {
James Robinson060f2e32014-09-10 22:31:37432 deps += [
James Robinson060f2e32014-09-10 22:31:37433 "//content/public/android:common_aidl",
rockotac2a36e2015-11-20 17:56:54434 "//content/public/android:jni",
James Robinson060f2e32014-09-10 22:31:37435 ]
[email protected]7e4c33142014-05-21 22:01:32436
437 libs += [ "android" ]
438 }
439
agrievee786dac2015-12-02 14:45:22440 if (is_debug && !is_component_build && enable_plugins) {
erg85ac9312015-04-16 18:20:53441 # Content depends on the PPAPI message logging stuff; if this isn't here,
442 # some unit test binaries won't compile. This only worked in release mode
443 # because logging is disabled there.
444 deps += [ "//ppapi/proxy:ipc_sources" ]
445 }
446
Kevin Marshall8a39c1a2017-08-14 20:07:27447 if (enable_webrtc) {
448 sources += [ "p2p_messages.h" ]
449 deps += [
450 "//third_party/webrtc/rtc_base:rtc_base",
451 "//third_party/webrtc_overrides",
452 ]
453 }
454
revemanbc2de2b2014-11-17 03:21:32455 if (use_ozone) {
spang033576972016-02-24 00:10:57456 deps += [ "//ui/ozone" ]
revemanbc2de2b2014-11-17 03:21:32457 } else {
drotte70ca0a2016-08-26 09:24:36458 sources -= [ "cursors/webcursor_ozone.cc" ]
[email protected]7e4c33142014-05-21 22:01:32459 }
460
Lei Zhang9ae2c0d2017-09-20 17:41:00461 if (!use_aura) {
[email protected]79ff77e62014-07-08 10:59:16462 sources -= [ "cursors/webcursor_aura.cc" ]
463 }
464
[email protected]7e4c33142014-05-21 22:01:32465 if (!use_aura || !use_x11) {
466 sources -= [ "cursors/webcursor_aurax11.cc" ]
467 }
468
drotte70ca0a2016-08-26 09:24:36469 if (is_linux) {
rchfd3053f22017-06-08 22:34:15470 deps += [ "//third_party/fontconfig" ]
drotte70ca0a2016-08-26 09:24:36471 }
472
Kevin Marshalla6f51552017-08-17 01:50:58473 if (is_mac || is_win || is_android || is_fuchsia) {
drotte70ca0a2016-08-26 09:24:36474 sources -= [ "font_list_fontconfig.cc" ]
[email protected]7e4c33142014-05-21 22:01:32475 }
476
[email protected]7e4c33142014-05-21 22:01:32477 if (enable_plugins) {
brettw26c6ab452016-06-23 00:41:09478 deps += [
scottmg3cab0ba2017-01-25 18:34:16479 "//ppapi/proxy:ipc",
brettw26c6ab452016-06-23 00:41:09480 "//ppapi/shared_impl",
481 ]
[email protected]7e4c33142014-05-21 22:01:32482 } else {
483 sources -= [
thestigc4cac8f2014-09-04 21:17:50484 "pepper_file_util.cc",
485 "pepper_file_util.h",
[email protected]7e4c33142014-05-21 22:01:32486 "pepper_plugin_list.cc",
487 "pepper_plugin_list.h",
thestigc4cac8f2014-09-04 21:17:50488 "pepper_renderer_instance_data.cc",
489 "pepper_renderer_instance_data.h",
490 "plugin_list.cc",
491 "plugin_list.h",
[email protected]7e4c33142014-05-21 22:01:32492 ]
493 }
494
[email protected]7e4c33142014-05-21 22:01:32495 if (!is_win || !use_aura) {
496 sources -= [ "cursors/webcursor_aurawin.cc" ]
497 }
[email protected]7e4c33142014-05-21 22:01:32498
brettw26c6ab452016-06-23 00:41:09499 if (is_mac) {
500 deps += [ "//media/gpu" ]
501 }
502
ochangdd89a1e2016-06-08 16:39:01503 if (enable_ipc_fuzzer) {
504 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ]
505 sources += [
506 "external_ipc_dumper.cc",
507 "external_ipc_dumper.h",
508 ]
509 }
xhwang785a8342017-01-26 06:46:39510
Scott Graham5459cc3e2017-08-18 20:16:30511 if (is_fuchsia) {
Kevin Marshall65c26702017-09-25 18:21:42512 sources += [
513 "font_list_fuchsia.cc",
514 "sandbox_policy_fuchsia.cc",
515 "sandbox_policy_fuchsia.h",
516 ]
Scott Graham5459cc3e2017-08-18 20:16:30517 }
[email protected]df3ecfde2014-05-20 21:52:34518}
[email protected]7e4c33142014-05-21 22:01:32519
brettwb78fc9e2016-03-25 21:02:51520# See comment at the top of //content/BUILD.gn for how this works.
521group("for_content_tests") {
522 visibility = [ "//content/test/*" ]
523 if (!is_component_build) {
524 public_deps = [
525 ":common",
526 ]
527 }
528}
529
[email protected]189add52014-05-28 16:51:44530mojom("mojo_bindings") {
jamb97b473d2016-08-08 20:48:29531 # This interface is internal to content.
brettwb78fc9e2016-03-25 21:02:51532 visibility = [ "//content/*" ]
533
reillyg627e7f72016-10-20 05:12:43534 # indexed_db.mojom uses a native typemap that is not available in Java.
535 cpp_only = true
536
[email protected]189add52014-05-28 16:51:44537 sources = [
Nicholas Verne8a13f0052017-12-01 00:39:19538 "appcache.mojom",
rockotf62002a2016-09-15 00:08:59539 "associated_interfaces.mojom",
bena06f7d62017-04-04 20:48:52540 "child.mojom",
Nicholas Verne5420564d2017-10-27 07:37:54541 "child_control.mojom",
bashia6264042016-09-15 04:49:51542 "child_memory_coordinator.mojom",
Dmitry Gozman7f95c842017-10-25 22:13:00543 "devtools.mojom",
chiniforooshan614d70a2017-03-17 01:19:33544 "field_trial_recorder.mojom",
Stuart Langleye6f32c592017-09-27 04:35:18545 "file_utilities.mojom",
ben76f52b242016-06-18 05:42:48546 "frame.mojom",
samans2040988b2017-04-11 23:58:35547 "frame_sink_provider.mojom",
Nicholas Verne91bf4a632017-10-12 21:14:24548 "histogram_fetcher.mojom",
scottmg276753cf2016-10-27 18:25:22549 "host_zoom.mojom",
halton.huoca2eabd2015-07-06 08:17:40550 "image_downloader/image_downloader.mojom",
reillyg627e7f72016-10-20 05:12:43551 "indexed_db/indexed_db.mojom",
dtapuska9d46ef7d2017-05-26 19:06:06552 "input/input_handler.mojom",
Dave Tapuskaf238a1a2017-08-28 21:24:39553 "input/input_injector.mojom",
jamc912ca32016-02-24 20:17:31554 "leveldb_wrapper.mojom",
Sam McNally145fb172017-05-10 00:13:23555 "manifest_observer.mojom",
Chandan Padhi92b1cd9b2017-07-21 02:42:08556 "media/media_stream.mojom",
Max Morin70fb1d62017-12-14 07:52:29557 "media/renderer_audio_input_stream_factory.mojom",
maxmorin2781f5ff2017-04-04 08:29:41558 "media/renderer_audio_output_stream_factory.mojom",
bashia6264042016-09-15 04:49:51559 "memory_coordinator.mojom",
rockot067ca55f2016-09-30 22:00:15560 "native_types.mojom",
Arthur Hemery7b67a972017-12-01 15:24:49561 "navigation_params.mojom",
Patrick Noland62b96a22017-10-28 01:31:13562 "page_state.mojom",
ke.he5f426e322017-02-22 12:37:12563 "push_messaging.mojom",
Sasha Bermeister9a3f9da2017-11-29 03:30:28564 "quota_dispatcher_host.mojom",
rockot1587e332016-07-27 17:44:14565 "render_frame_message_filter.mojom",
rockote261d2112016-09-21 22:22:23566 "render_message_filter.mojom",
fsamuel6c6da0232015-11-26 05:13:46567 "render_widget_window_tree_client_factory.mojom",
rockot067ca55f2016-09-30 22:00:15568 "renderer.mojom",
jam188f19f2017-06-07 03:56:24569 "renderer_host.mojom",
Kinuko Yasuda914325122017-09-14 18:03:33570 "service_worker/controller_service_worker.mojom",
shimazu5de409e42016-09-29 08:45:28571 "service_worker/embedded_worker.mojom",
shimazu804b3e42016-10-17 09:13:29572 "service_worker/service_worker.mojom",
xzhan960e76d2582017-08-30 05:35:39573 "service_worker/service_worker_container.mojom",
shimazu317dd7b2016-11-25 04:55:51574 "service_worker/service_worker_event_dispatcher.mojom",
Kinuko Yasuda914325122017-09-14 18:03:33575 "service_worker/service_worker_fetch_response_callback.mojom",
shimazu3b85dfb2017-02-21 13:03:30576 "service_worker/service_worker_provider.mojom",
Darin Fisherbcc33632017-09-26 00:57:16577 "shared_worker/shared_worker.mojom",
Darin Fisher7d01ede2017-09-09 00:48:39578 "shared_worker/shared_worker_client.mojom",
579 "shared_worker/shared_worker_connector.mojom",
Darin Fisherbcc33632017-09-26 00:57:16580 "shared_worker/shared_worker_factory.mojom",
581 "shared_worker/shared_worker_host.mojom",
582 "shared_worker/shared_worker_info.mojom",
jamc912ca32016-02-24 20:17:31583 "storage_partition_service.mojom",
Ken Rockotbe87ab322017-11-02 19:40:23584 "url_loader_factory_bundle.mojom",
mcasas796b2e6c2016-10-06 01:48:14585 "video_capture.mojom",
Dave Tapuska1bdf1832017-07-07 18:07:19586 "widget.mojom",
[email protected]189add52014-05-28 16:51:44587 ]
[email protected]e2051232014-06-30 17:45:45588
Nicholas Verne33a2d10d2017-11-28 00:18:28589 if (is_win) {
590 sources += [ "font_cache_win.mojom" ]
591 }
592
rockotb814a582015-06-05 00:30:52593 import_dirs = [ "//mojo/services" ]
594
rockot0506ca82016-02-05 18:13:05595 public_deps = [
jamc912ca32016-02-24 20:17:31596 "//components/leveldb/public/interfaces",
rockot5c478a72016-09-28 23:14:18597 "//content/public/common:interfaces",
Ken Rockotfd907632017-09-14 04:23:41598 "//ipc:mojom_constants",
chfremerb689c2a2016-10-27 23:04:46599 "//media/capture/mojo:capture_types",
mcasas2ff39f622016-10-11 20:00:46600 "//media/mojo/interfaces",
horo011e3a5a2016-10-11 11:59:11601 "//mojo/common:common_custom_types",
Matt Falkenhagen2ab4ee32017-08-10 10:43:10602 "//services/network/public/interfaces",
rockot734fb662016-10-15 16:41:30603 "//services/service_manager/public/interfaces",
ben6b0453d12016-07-02 04:27:19604 "//services/ui/public/interfaces",
mcasasc3b336b2016-10-07 14:55:45605 "//services/video_capture/public/interfaces",
Saman Sami1f34578b2017-08-28 18:31:56606 "//services/viz/public/interfaces",
halton.huoca2eabd2015-07-06 08:17:40607 "//skia/public/interfaces",
Sasha Bermeister9a3f9da2017-11-29 03:30:28608 "//storage/common:mojo_bindings",
Luciano Pacheco8def47f2017-12-07 06:52:30609 "//third_party/WebKit/common:mojo_platform_bindings",
ortunob160cb72016-03-16 20:44:30610 "//third_party/WebKit/public:mojo_bindings",
rockot5c478a72016-09-28 23:14:18611 "//ui/base/mojo:mojo_bindings",
sammc813a8eb32016-05-28 03:34:07612 "//ui/gfx/geometry/mojo",
rockot067ca55f2016-09-30 22:00:15613 "//ui/gfx/mojo",
sammcf6f4fcf2016-06-21 05:39:39614 "//url/mojo:url_mojom_gurl",
sammca1107b72016-03-23 18:51:58615 "//url/mojo:url_mojom_origin",
[email protected]e2051232014-06-30 17:45:45616 ]
yzshen4e4d53c2016-07-19 06:56:42617
Luciano Pacheco8def47f2017-12-07 06:52:30618 overridden_deps = [ "//third_party/WebKit/common:mojo_platform_bindings" ]
619 component_deps = [ "//third_party/WebKit/common:blink_common" ]
620
Ken Rockotfe0424e72017-05-13 02:29:08621 component_output_prefix = "content_common_mojo_bindings"
jamb97b473d2016-08-08 20:48:29622 export_class_attribute = "CONTENT_EXPORT"
623 export_define = "CONTENT_IMPLEMENTATION=1"
624 export_header = "content/common/content_export.h"
[email protected]189add52014-05-28 16:51:44625}