blob: 4fea9e7b7ba0d0b73b7df3ec9abf8ac6474b1a4f [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
23 flags = [ "USE_EXTERNAL_POPUP_MENU=$use_external_popup_menu" ]
24}
25
[email protected]df3ecfde2014-05-20 21:52:3426source_set("common") {
brettwb78fc9e2016-03-25 21:02:5127 # Targets external to content should always link to the public API.
28 # In addition, targets outside of the content component (shell and tests)
29 # must not link to this because it will duplicate the code in the component
30 # build.
31 visibility = [ "//content/*" ]
[email protected]df3ecfde2014-05-20 21:52:3432
brettw8ad01a32016-09-01 23:26:2533 sources = [
34 "accessibility_messages.h",
35 "all_messages.h",
36 "android/address_parser.cc",
37 "android/address_parser.h",
38 "android/address_parser_internal.cc",
39 "android/address_parser_internal.h",
40 "android/common_jni_registrar.cc",
41 "android/common_jni_registrar.h",
42 "android/gin_java_bridge_errors.cc",
43 "android/gin_java_bridge_errors.h",
44 "android/gin_java_bridge_value.cc",
45 "android/gin_java_bridge_value.h",
46 "android/hash_set.cc",
47 "android/hash_set.h",
48 "android/media_metadata_android.cc",
49 "android/media_metadata_android.h",
50 "android/resource_request_body_android.cc",
51 "android/resource_request_body_android.h",
52 "android/sync_compositor_messages.cc",
53 "android/sync_compositor_messages.h",
54 "android/sync_compositor_statics.cc",
55 "android/sync_compositor_statics.h",
56 "appcache_interfaces.cc",
57 "appcache_interfaces.h",
58 "appcache_messages.h",
rockotf62002a2016-09-15 00:08:5959 "associated_interface_provider_impl.cc",
60 "associated_interface_provider_impl.h",
61 "associated_interface_registry_impl.cc",
62 "associated_interface_registry_impl.h",
brettw8ad01a32016-09-01 23:26:2563 "ax_content_node_data.cc",
64 "ax_content_node_data.h",
petera1ab5a92017-03-24 13:59:5365 "background_fetch/background_fetch_struct_traits.cc",
66 "background_fetch/background_fetch_struct_traits.h",
67 "background_fetch/background_fetch_types.cc",
68 "background_fetch/background_fetch_types.h",
brettw8ad01a32016-09-01 23:26:2569 "bluetooth/web_bluetooth_device_id.cc",
70 "bluetooth/web_bluetooth_device_id.h",
71 "browser_plugin/browser_plugin_constants.cc",
72 "browser_plugin/browser_plugin_constants.h",
73 "browser_plugin/browser_plugin_messages.h",
74 "cache_storage/cache_storage_messages.h",
75 "cache_storage/cache_storage_types.cc",
76 "cache_storage/cache_storage_types.h",
77 "child_process_host_impl.cc",
78 "child_process_host_impl.h",
79 "child_process_messages.h",
brettw8ad01a32016-09-01 23:26:2580 "clipboard_format.h",
81 "clipboard_messages.h",
jamcc96c422017-02-10 18:50:2082 "common_sandbox_support_linux.cc",
brettw8ad01a32016-09-01 23:26:2583 "content_constants_internal.cc",
84 "content_constants_internal.h",
85 "content_export.h",
86 "content_ipc_logging.cc",
87 "content_message_generator.cc",
88 "content_message_generator.h",
89 "content_param_traits.cc",
90 "content_param_traits.h",
91 "content_param_traits_macros.h",
92 "content_paths.cc",
arthursonzogni7c9cab42017-02-21 18:58:1393 "content_security_policy/content_security_policy.cc",
94 "content_security_policy/content_security_policy.h",
95 "content_security_policy/csp_context.cc",
96 "content_security_policy/csp_context.h",
97 "content_security_policy/csp_directive.cc",
98 "content_security_policy/csp_directive.h",
99 "content_security_policy/csp_source.cc",
100 "content_security_policy/csp_source.h",
101 "content_security_policy/csp_source_list.cc",
102 "content_security_policy/csp_source_list.h",
arthursonzogni662aa652017-03-28 11:09:50103 "content_security_policy_header.cc",
brettw8ad01a32016-09-01 23:26:25104 "content_security_policy_header.h",
105 "content_switches_internal.cc",
106 "content_switches_internal.h",
107 "cross_site_document_classifier.cc",
108 "cross_site_document_classifier.h",
109 "cursors/webcursor.cc",
110 "cursors/webcursor.h",
111 "cursors/webcursor_android.cc",
112 "cursors/webcursor_aura.cc",
113 "cursors/webcursor_aurawin.cc",
114 "cursors/webcursor_aurax11.cc",
115 "cursors/webcursor_mac.mm",
116 "cursors/webcursor_ozone.cc",
117 "database_messages.h",
118 "date_time_suggestion.h",
brettw8ad01a32016-09-01 23:26:25119 "devtools_messages.h",
brettw8ad01a32016-09-01 23:26:25120 "dom_storage/dom_storage_map.cc",
121 "dom_storage/dom_storage_map.h",
122 "dom_storage/dom_storage_messages.h",
carlosk29da4fe2016-11-29 00:01:29123 "download/mhtml_save_status.cc",
124 "download/mhtml_save_status.h",
brettw8ad01a32016-09-01 23:26:25125 "drag_event_source_info.h",
126 "drag_messages.h",
127 "drag_traits.h",
128 "dwrite_font_proxy_messages.h",
129 "edit_command.h",
iclelland9071e0e2017-02-03 06:35:56130 "feature_policy/feature_policy.cc",
131 "feature_policy/feature_policy.h",
brettw8ad01a32016-09-01 23:26:25132 "file_utilities_messages.h",
133 "fileapi/file_system_messages.h",
134 "font_cache_dispatcher_win.cc",
135 "font_cache_dispatcher_win.h",
136 "font_config_ipc_linux.cc",
137 "font_config_ipc_linux.h",
138 "font_list.cc",
139 "font_list.h",
140 "font_list_android.cc",
141 "font_list_fontconfig.cc",
142 "font_list_mac.mm",
143 "font_list_win.cc",
144 "frame_message_enums.h",
145 "frame_messages.h",
146 "frame_owner_properties.cc",
147 "frame_owner_properties.h",
148 "frame_replication_state.cc",
149 "frame_replication_state.h",
brettw8ad01a32016-09-01 23:26:25150 "generic_shared_memory_id_generator.cc",
151 "generic_shared_memory_id_generator.h",
152 "gin_java_bridge_messages.h",
brettw8ad01a32016-09-01 23:26:25153 "gpu_host_messages.h",
brettw8ad01a32016-09-01 23:26:25154 "host_shared_bitmap_manager.cc",
155 "host_shared_bitmap_manager.h",
156 "in_process_child_thread_params.cc",
157 "in_process_child_thread_params.h",
158 "indexed_db/indexed_db_constants.h",
159 "indexed_db/indexed_db_key.cc",
160 "indexed_db/indexed_db_key.h",
161 "indexed_db/indexed_db_key_path.cc",
162 "indexed_db/indexed_db_key_path.h",
163 "indexed_db/indexed_db_key_range.cc",
164 "indexed_db/indexed_db_key_range.h",
reillyg627e7f72016-10-20 05:12:43165 "indexed_db/indexed_db_metadata.cc",
166 "indexed_db/indexed_db_metadata.h",
reillyg627e7f72016-10-20 05:12:43167 "indexed_db/indexed_db_struct_traits.cc",
168 "indexed_db/indexed_db_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25169 "input/event_with_latency_info.h",
170 "input/gesture_event_stream_validator.cc",
171 "input/gesture_event_stream_validator.h",
172 "input/input_event.cc",
173 "input/input_event.h",
174 "input/input_event_ack.cc",
175 "input/input_event_ack.h",
dtapuska120e9972016-11-07 20:13:39176 "input/input_event_ack_source.h",
177 "input/input_event_ack_state.h",
brettw8ad01a32016-09-01 23:26:25178 "input/input_event_dispatch_type.h",
179 "input/input_event_stream_validator.cc",
180 "input/input_event_stream_validator.h",
181 "input/input_param_traits.cc",
182 "input/input_param_traits.h",
183 "input/synthetic_gesture_packet.cc",
184 "input/synthetic_gesture_packet.h",
185 "input/synthetic_gesture_params.cc",
186 "input/synthetic_gesture_params.h",
187 "input/synthetic_pinch_gesture_params.cc",
188 "input/synthetic_pinch_gesture_params.h",
lanwei3df2fbb2016-12-21 22:10:02189 "input/synthetic_pointer_action_list_params.cc",
190 "input/synthetic_pointer_action_list_params.h",
brettw8ad01a32016-09-01 23:26:25191 "input/synthetic_pointer_action_params.cc",
192 "input/synthetic_pointer_action_params.h",
193 "input/synthetic_smooth_drag_gesture_params.cc",
194 "input/synthetic_smooth_drag_gesture_params.h",
195 "input/synthetic_smooth_scroll_gesture_params.cc",
196 "input/synthetic_smooth_scroll_gesture_params.h",
197 "input/synthetic_tap_gesture_params.cc",
198 "input/synthetic_tap_gesture_params.h",
199 "input/synthetic_web_input_event_builders.cc",
200 "input/synthetic_web_input_event_builders.h",
201 "input/touch_event_stream_validator.cc",
202 "input/touch_event_stream_validator.h",
brettw8ad01a32016-09-01 23:26:25203 "input/web_touch_event_traits.cc",
204 "input/web_touch_event_traits.h",
205 "input_messages.h",
206 "inter_process_time_ticks_converter.cc",
207 "inter_process_time_ticks_converter.h",
208 "layer_tree_settings_factory.cc",
209 "layer_tree_settings_factory.h",
210 "mac/attributed_string_coder.h",
211 "mac/attributed_string_coder.mm",
212 "mac/font_descriptor.h",
213 "mac/font_descriptor.mm",
214 "mac/font_loader.h",
215 "mac/font_loader.mm",
216 "manifest_manager_messages.h",
217 "media/aec_dump_messages.h",
218 "media/audio_messages.h",
219 "media/cdm_info.cc",
guidoucc6d4602016-09-23 21:28:43220 "media/media_devices.cc",
221 "media/media_devices.h",
guidou9357cc52016-10-11 19:53:36222 "media/media_devices_param_traits.cc",
223 "media/media_devices_param_traits.h",
brettw8ad01a32016-09-01 23:26:25224 "media/media_player_delegate_messages.h",
225 "media/media_player_messages_android.h",
brettw8ad01a32016-09-01 23:26:25226 "media/media_stream_messages.h",
227 "media/media_stream_options.cc",
228 "media/media_stream_options.h",
229 "media/media_stream_track_metrics_host_messages.h",
230 "media/midi_messages.h",
231 "media/surface_view_manager_messages_android.h",
232 "media/video_capture.h",
brettw8ad01a32016-09-01 23:26:25233 "memory_messages.h",
darin2d145fe2017-02-16 15:22:35234 "message_port.cc",
235 "message_port.h",
brettw8ad01a32016-09-01 23:26:25236 "navigation_gesture.h",
237 "navigation_params.cc",
238 "navigation_params.h",
239 "net/url_fetcher.cc",
240 "net/url_request_service_worker_data.cc",
241 "net/url_request_service_worker_data.h",
242 "net/url_request_user_data.cc",
243 "net/url_request_user_data.h",
brettw8ad01a32016-09-01 23:26:25244 "origin_trials/trial_token.cc",
245 "origin_trials/trial_token.h",
246 "origin_trials/trial_token_validator.cc",
247 "origin_trials/trial_token_validator.h",
248 "origin_util.cc",
249 "p2p_messages.h",
250 "page_state_serialization.cc",
251 "page_state_serialization.h",
252 "page_zoom.cc",
253 "pepper_file_util.cc",
254 "pepper_file_util.h",
255 "pepper_plugin_list.cc",
256 "pepper_plugin_list.h",
257 "pepper_renderer_instance_data.cc",
258 "pepper_renderer_instance_data.h",
259 "platform_notification_messages.h",
260 "plugin_list.cc",
261 "plugin_list.h",
mfoltz0dc2a6b2017-03-07 18:24:19262 "presentation/presentation_struct_traits.cc",
263 "presentation/presentation_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25264 "process_type.cc",
asankac1ab0292016-12-08 21:53:33265 "quarantine/quarantine.cc",
266 "quarantine/quarantine_constants_linux.h",
267 "quarantine/quarantine_linux.cc",
268 "quarantine/quarantine_mac.mm",
269 "quarantine/quarantine_win.cc",
brettw8ad01a32016-09-01 23:26:25270 "quota_messages.h",
271 "render_process_messages.h",
272 "resize_params.cc",
273 "resize_params.h",
274 "resource_messages.cc",
275 "resource_messages.h",
276 "resource_request.cc",
277 "resource_request.h",
278 "resource_request_body_impl.cc",
279 "resource_request_body_impl.h",
280 "resource_request_completion_status.cc",
281 "resource_request_completion_status.h",
282 "sandbox_init_mac.cc",
283 "sandbox_init_mac.h",
284 "sandbox_init_win.cc",
285 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc",
286 "sandbox_linux/android/sandbox_bpf_base_policy_android.h",
287 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc",
288 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h",
289 "sandbox_linux/bpf_gpu_policy_linux.cc",
290 "sandbox_linux/bpf_gpu_policy_linux.h",
291 "sandbox_linux/bpf_ppapi_policy_linux.cc",
292 "sandbox_linux/bpf_ppapi_policy_linux.h",
293 "sandbox_linux/bpf_renderer_policy_linux.cc",
294 "sandbox_linux/bpf_renderer_policy_linux.h",
295 "sandbox_linux/bpf_utility_policy_linux.cc",
296 "sandbox_linux/bpf_utility_policy_linux.h",
297 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
298 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
299 "sandbox_linux/sandbox_debug_handling_linux.cc",
300 "sandbox_linux/sandbox_debug_handling_linux.h",
301 "sandbox_linux/sandbox_init_linux.cc",
302 "sandbox_linux/sandbox_linux.cc",
303 "sandbox_linux/sandbox_linux.h",
304 "sandbox_linux/sandbox_seccomp_bpf_linux.cc",
305 "sandbox_linux/sandbox_seccomp_bpf_linux.h",
306 "sandbox_mac.h",
307 "sandbox_mac.mm",
308 "sandbox_win.cc",
309 "sandbox_win.h",
310 "savable_subframe.h",
brettw8ad01a32016-09-01 23:26:25311 "send_zygote_child_ping_linux.cc",
bend32292b2016-10-07 00:21:58312 "service_manager/embedded_service_runner.cc",
313 "service_manager/embedded_service_runner.h",
314 "service_manager/service_manager_connection_impl.cc",
315 "service_manager/service_manager_connection_impl.h",
brettw8ad01a32016-09-01 23:26:25316 "service_worker/embedded_worker_messages.h",
317 "service_worker/embedded_worker_settings.h",
shimazu5de409e42016-09-29 08:45:28318 "service_worker/embedded_worker_start_params.cc",
319 "service_worker/embedded_worker_start_params.h",
brettw8ad01a32016-09-01 23:26:25320 "service_worker/service_worker_client_info.cc",
321 "service_worker/service_worker_client_info.h",
322 "service_worker/service_worker_messages.h",
shimazu3b85dfb2017-02-21 13:03:30323 "service_worker/service_worker_provider_host_info.cc",
324 "service_worker/service_worker_provider_host_info.h",
brettw8ad01a32016-09-01 23:26:25325 "service_worker/service_worker_status_code.cc",
326 "service_worker/service_worker_status_code.h",
brettw8ad01a32016-09-01 23:26:25327 "service_worker/service_worker_types.cc",
328 "service_worker/service_worker_types.h",
329 "service_worker/service_worker_utils.cc",
330 "service_worker/service_worker_utils.h",
brettw8ad01a32016-09-01 23:26:25331 "site_isolation_policy.cc",
332 "site_isolation_policy.h",
333 "speech_recognition_messages.h",
brettw8ad01a32016-09-01 23:26:25334 "swapped_out_messages.cc",
335 "swapped_out_messages.h",
336 "text_input_client_messages.h",
337 "text_input_state.cc",
338 "text_input_state.h",
yhirano933ee582017-01-27 13:28:40339 "url_request_struct_traits.cc",
340 "url_request_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25341 "url_schemes.cc",
342 "url_schemes.h",
343 "user_agent.cc",
344 "utility_messages.h",
345 "view_message_enums.h",
346 "view_messages.h",
347 "worker_messages.h",
348 "zygote_commands_linux.h",
349 ]
[email protected]df3ecfde2014-05-20 21:52:34350
brettw1deb76bc2015-02-18 19:28:20351 configs += [
352 "//content:content_implementation",
brettwbc8b2a22015-07-28 18:24:42353 "//build/config:precompiled_headers",
brettw1deb76bc2015-02-18 19:28:20354 "//build/config/compiler:no_size_t_to_int_warning",
henryhsu5580c3ab2016-07-14 05:11:41355 "//media/gpu:gpu_config",
brettw1deb76bc2015-02-18 19:28:20356 ]
[email protected]df3ecfde2014-05-20 21:52:34357
Brett Wilsone53895272014-09-23 23:41:46358 public_deps = [
jamb3c1195df2016-03-21 20:41:29359 ":mojo_bindings",
xlai8f405382016-09-01 19:46:22360 "//cc",
Brett Wilsone53895272014-09-23 23:41:46361 "//gpu/command_buffer/common",
agrievee786dac2015-12-02 14:45:22362 "//ipc",
Brett Wilsone53895272014-09-23 23:41:46363 "//third_party/WebKit/public:blink_headers",
364 ]
[email protected]df3ecfde2014-05-20 21:52:34365 deps = [
thakis18e426412017-03-15 12:06:37366 ":features",
[email protected]df3ecfde2014-05-20 21:52:34367 "//base",
brettw63340882016-03-22 17:09:49368 "//base/third_party/dynamic_annotations",
[email protected]7e4c33142014-05-21 22:01:32369 "//build/util:webkit_version",
fsamuel812b8482016-05-16 18:52:18370 "//cc/ipc",
brettw63340882016-03-22 17:09:49371 "//cc/surfaces",
penghuangd81c1a62016-11-02 20:06:06372 "//components/discardable_memory/common",
[email protected]df3ecfde2014-05-20 21:52:34373 "//components/tracing",
zhenw062a94522015-06-22 20:55:28374 "//components/tracing:startup_tracing",
brettw26c6ab452016-06-23 00:41:09375 "//content:resources",
376 "//content/app/resources",
alexis.menardb39a30822016-09-30 15:14:39377 "//device/base/synchronization",
jamb3c1195df2016-03-21 20:41:29378 "//device/bluetooth",
brettw63340882016-03-22 17:09:49379 "//gpu",
jamb3c1195df2016-03-21 20:41:29380 "//gpu/command_buffer/client:gles2_c_lib",
381 "//gpu/command_buffer/client:gles2_cmd_helper",
382 "//gpu/command_buffer/client:gles2_implementation",
jbromancba3d2fe2014-09-16 01:04:24383 "//gpu/command_buffer/client:gles2_interface",
brettw542f7532015-04-06 22:35:45384 "//gpu/command_buffer/common:gles2_utils",
jamb3c1195df2016-03-21 20:41:29385 "//gpu/command_buffer/service",
penghuang346a46f92016-03-31 21:37:52386 "//gpu/ipc/client",
jamb3c1195df2016-03-21 20:41:29387 "//gpu/ipc/common",
388 "//gpu/skia_bindings",
389 "//ipc",
jamb3c1195df2016-03-21 20:41:29390 "//media",
391 "//media:shared_memory_support",
jamc17b7fa02016-05-12 03:57:55392 "//media/base/ipc",
mcasase40d7522016-06-21 16:11:40393 "//media/capture",
chfremerb689c2a2016-10-27 23:04:46394 "//media/capture/ipc",
penghuang13b168b2016-04-07 15:23:31395 "//media/gpu/ipc/client",
fsamuel29ebf3c2016-04-01 00:20:00396 "//media/gpu/ipc/common",
jamb3c1195df2016-03-21 20:41:29397 "//media/midi",
sammc64324c3a2017-01-05 00:40:15398 "//media/midi:mojo",
jamb3c1195df2016-03-21 20:41:29399 "//mojo/common:common_base",
jamb3c1195df2016-03-21 20:41:29400 "//mojo/edk/system",
[email protected]df3ecfde2014-05-20 21:52:34401 "//net",
brettw4b461082016-11-19 18:55:16402 "//ppapi/features",
jamb3c1195df2016-03-21 20:41:29403 "//sandbox",
rsesek7b1273af02016-12-06 20:55:47404 "//sandbox:sandbox_features",
chiniforooshan6e4c5072017-03-17 07:56:56405 "//services/resource_coordinator/public/interfaces",
rockot734fb662016-10-15 16:41:30406 "//services/service_manager",
rockot60d92c22017-03-21 06:35:23407 "//services/service_manager/embedder",
rockot734fb662016-10-15 16:41:30408 "//services/service_manager/public/cpp",
409 "//services/service_manager/public/interfaces",
410 "//services/service_manager/runner/common",
ben6b0453d12016-07-02 04:27:19411 "//services/ui/public/interfaces",
mcasasc3b336b2016-10-07 14:55:45412 "//services/video_capture/public/interfaces",
[email protected]df3ecfde2014-05-20 21:52:34413 "//skia",
jamb3c1195df2016-03-21 20:41:29414 "//storage/common",
jamb3c1195df2016-03-21 20:41:29415 "//third_party/boringssl",
[email protected]df3ecfde2014-05-20 21:52:34416 "//third_party/icu",
brettwc15ed732016-03-21 23:14:29417 "//third_party/webrtc/base:rtc_base",
kjellandere3cbd6d2017-02-28 06:49:46418 "//third_party/webrtc_overrides",
[email protected]df3ecfde2014-05-20 21:52:34419 "//ui/accessibility",
[email protected]52140d882014-05-30 19:22:40420 "//ui/base",
spang1c36fac2015-02-05 19:55:12421 "//ui/base/ime",
brettw26c6ab452016-06-23 00:41:09422 "//ui/display",
chongza8ba91fc2016-08-16 21:39:17423 "//ui/events/blink",
[email protected]df3ecfde2014-05-20 21:52:34424 "//ui/gfx",
425 "//ui/gfx/geometry",
[email protected]d7e69fa2014-07-24 21:19:28426 "//ui/gfx/ipc",
ccamerone0d9f382016-07-19 20:12:15427 "//ui/gfx/ipc/color",
fsamuel6b98cf92016-04-28 05:42:24428 "//ui/gfx/ipc/geometry",
markdittmer99d77bf2016-03-31 19:03:24429 "//ui/gfx/ipc/skia",
jamb3c1195df2016-03-21 20:41:29430 "//ui/gl",
mfomitchev3ba450ad2017-04-03 18:20:40431 "//ui/latency/ipc",
[email protected]a1d7d4f2014-07-16 21:33:36432 "//ui/shell_dialogs",
[email protected]df3ecfde2014-05-20 21:52:34433 "//url",
markdittmer67b71ea2016-03-03 22:40:03434 "//url/ipc:url_ipc",
[email protected]df3ecfde2014-05-20 21:52:34435 ]
[email protected]7e4c33142014-05-21 22:01:32436
ben3f5f9992015-11-19 10:38:30437 defines = []
[email protected]7e4c33142014-05-21 22:01:32438 include_dirs = []
[email protected]7e4c33142014-05-21 22:01:32439 libs = []
440 ldflags = []
441
sammc64324c3a2017-01-05 00:40:15442 allow_circular_includes_from = [ ":mojo_bindings" ]
yhirano72f62272016-08-13 12:50:06443
[email protected]7e4c33142014-05-21 22:01:32444 if (is_android && use_seccomp_bpf) {
445 set_sources_assignment_filter([])
446 sources += [
447 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
448 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
449 ]
450 set_sources_assignment_filter(sources_assignment_filter)
451 }
452
453 if (is_mac) {
markdittmer6e70beb82016-05-02 05:40:47454 deps += [ "//sandbox/mac:seatbelt" ]
[email protected]7e4c33142014-05-21 22:01:32455 }
456
457 if (is_android) {
James Robinson060f2e32014-09-10 22:31:37458 deps += [
James Robinson060f2e32014-09-10 22:31:37459 "//content/public/android:common_aidl",
rockotac2a36e2015-11-20 17:56:54460 "//content/public/android:jni",
James Robinson060f2e32014-09-10 22:31:37461 ]
[email protected]7e4c33142014-05-21 22:01:32462
463 libs += [ "android" ]
464 }
465
agrievee786dac2015-12-02 14:45:22466 if (is_debug && !is_component_build && enable_plugins) {
erg85ac9312015-04-16 18:20:53467 # Content depends on the PPAPI message logging stuff; if this isn't here,
468 # some unit test binaries won't compile. This only worked in release mode
469 # because logging is disabled there.
470 deps += [ "//ppapi/proxy:ipc_sources" ]
471 }
472
revemanbc2de2b2014-11-17 03:21:32473 if (use_ozone) {
spang033576972016-02-24 00:10:57474 deps += [ "//ui/ozone" ]
revemanbc2de2b2014-11-17 03:21:32475 } else {
drotte70ca0a2016-08-26 09:24:36476 sources -= [ "cursors/webcursor_ozone.cc" ]
[email protected]7e4c33142014-05-21 22:01:32477 }
478
mfomitchev2977ebf2015-08-07 00:12:29479 if (!use_aura || is_android) {
[email protected]79ff77e62014-07-08 10:59:16480 sources -= [ "cursors/webcursor_aura.cc" ]
481 }
482
[email protected]7e4c33142014-05-21 22:01:32483 if (!use_aura || !use_x11) {
484 sources -= [ "cursors/webcursor_aurax11.cc" ]
485 }
486
drotte70ca0a2016-08-26 09:24:36487 if (is_linux) {
488 deps += [ "//build/linux:fontconfig" ]
489 }
490
491 if (is_mac || is_win || is_android) {
492 sources -= [ "font_list_fontconfig.cc" ]
[email protected]7e4c33142014-05-21 22:01:32493 }
494
[email protected]7e4c33142014-05-21 22:01:32495 if (enable_plugins) {
brettw26c6ab452016-06-23 00:41:09496 deps += [
scottmg3cab0ba2017-01-25 18:34:16497 "//ppapi/proxy:ipc",
brettw26c6ab452016-06-23 00:41:09498 "//ppapi/shared_impl",
499 ]
[email protected]7e4c33142014-05-21 22:01:32500 } else {
501 sources -= [
thestigc4cac8f2014-09-04 21:17:50502 "pepper_file_util.cc",
503 "pepper_file_util.h",
[email protected]7e4c33142014-05-21 22:01:32504 "pepper_plugin_list.cc",
505 "pepper_plugin_list.h",
thestigc4cac8f2014-09-04 21:17:50506 "pepper_renderer_instance_data.cc",
507 "pepper_renderer_instance_data.h",
508 "plugin_list.cc",
509 "plugin_list.h",
[email protected]7e4c33142014-05-21 22:01:32510 ]
511 }
512
[email protected]7e4c33142014-05-21 22:01:32513 if (!is_win || !use_aura) {
514 sources -= [ "cursors/webcursor_aurawin.cc" ]
515 }
[email protected]7e4c33142014-05-21 22:01:32516
rsesek7b1273af02016-12-06 20:55:47517 if (!use_seccomp_bpf) {
[email protected]7e4c33142014-05-21 22:01:32518 if (is_linux) {
519 sources -= [
520 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc",
521 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h",
522 "sandbox_linux/bpf_gpu_policy_linux.cc",
523 "sandbox_linux/bpf_gpu_policy_linux.h",
524 "sandbox_linux/bpf_ppapi_policy_linux.cc",
525 "sandbox_linux/bpf_ppapi_policy_linux.h",
526 "sandbox_linux/bpf_renderer_policy_linux.cc",
527 "sandbox_linux/bpf_renderer_policy_linux.h",
[email protected]692a9542014-06-25 23:04:47528 "sandbox_linux/bpf_utility_policy_linux.cc",
529 "sandbox_linux/bpf_utility_policy_linux.h",
[email protected]7e4c33142014-05-21 22:01:32530 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
531 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
532 ]
533 }
534 if (is_android) {
535 sources -= [
536 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc",
537 "sandbox_linux/android/sandbox_bpf_base_policy_android.h",
538 ]
539 }
540 }
ochangdd89a1e2016-06-08 16:39:01541
brettw26c6ab452016-06-23 00:41:09542 if (is_mac) {
543 deps += [ "//media/gpu" ]
544 }
545
ochangdd89a1e2016-06-08 16:39:01546 if (enable_ipc_fuzzer) {
547 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ]
548 sources += [
549 "external_ipc_dumper.cc",
550 "external_ipc_dumper.h",
551 ]
552 }
xhwang785a8342017-01-26 06:46:39553
xhwangc3941032017-03-20 18:50:35554 if (enable_cdm_host_verification) {
xhwang785a8342017-01-26 06:46:39555 sources += [
556 "media/cdm_host_file.cc",
557 "media/cdm_host_file.h",
558 "media/cdm_host_files.cc",
559 "media/cdm_host_files.h",
560 ]
561 deps += [
562 "//media:cdm_paths",
563
564 # Needed for finding CDM path from CDM adapter path.
565 # TODO(xhwang): Remove this dependency when CDM adapter is deprecated.
566 # See http://crbug.com/403462
567 "//third_party/widevine/cdm:headers",
568 ]
569 }
[email protected]df3ecfde2014-05-20 21:52:34570}
[email protected]7e4c33142014-05-21 22:01:32571
brettwb78fc9e2016-03-25 21:02:51572# See comment at the top of //content/BUILD.gn for how this works.
573group("for_content_tests") {
574 visibility = [ "//content/test/*" ]
575 if (!is_component_build) {
576 public_deps = [
577 ":common",
578 ]
579 }
580}
581
[email protected]189add52014-05-28 16:51:44582mojom("mojo_bindings") {
jamb97b473d2016-08-08 20:48:29583 # This interface is internal to content.
brettwb78fc9e2016-03-25 21:02:51584 visibility = [ "//content/*" ]
585
reillyg627e7f72016-10-20 05:12:43586 # indexed_db.mojom uses a native typemap that is not available in Java.
587 cpp_only = true
588
[email protected]189add52014-05-28 16:51:44589 sources = [
rockotf62002a2016-09-15 00:08:59590 "associated_interfaces.mojom",
bashia6264042016-09-15 04:49:51591 "child_memory_coordinator.mojom",
chiniforooshan614d70a2017-03-17 01:19:33592 "field_trial_recorder.mojom",
ben76f52b242016-06-18 05:42:48593 "frame.mojom",
scottmg276753cf2016-10-27 18:25:22594 "host_zoom.mojom",
halton.huoca2eabd2015-07-06 08:17:40595 "image_downloader/image_downloader.mojom",
reillyg627e7f72016-10-20 05:12:43596 "indexed_db/indexed_db.mojom",
jamc912ca32016-02-24 20:17:31597 "leveldb_wrapper.mojom",
guidou9357cc52016-10-11 19:53:36598 "media/media_devices.mojom",
bashia6264042016-09-15 04:49:51599 "memory_coordinator.mojom",
rockot067ca55f2016-09-30 22:00:15600 "native_types.mojom",
ke.he5f426e322017-02-22 12:37:12601 "push_messaging.mojom",
rockot1587e332016-07-27 17:44:14602 "render_frame_message_filter.mojom",
rockote261d2112016-09-21 22:22:23603 "render_message_filter.mojom",
fsamuel6c6da0232015-11-26 05:13:46604 "render_widget_window_tree_client_factory.mojom",
rockot067ca55f2016-09-30 22:00:15605 "renderer.mojom",
shimazu5de409e42016-09-29 08:45:28606 "service_worker/embedded_worker.mojom",
shimazu804b3e42016-10-17 09:13:29607 "service_worker/service_worker.mojom",
shimazu317dd7b2016-11-25 04:55:51608 "service_worker/service_worker_event_dispatcher.mojom",
shimazu3b85dfb2017-02-21 13:03:30609 "service_worker/service_worker_provider.mojom",
shimazu804b3e42016-10-17 09:13:29610 "service_worker/service_worker_types.mojom",
jamc912ca32016-02-24 20:17:31611 "storage_partition_service.mojom",
yhirano72f62272016-08-13 12:50:06612 "url_loader.mojom",
613 "url_loader_factory.mojom",
mcasas796b2e6c2016-10-06 01:48:14614 "video_capture.mojom",
[email protected]189add52014-05-28 16:51:44615 ]
[email protected]e2051232014-06-30 17:45:45616
rockotb814a582015-06-05 00:30:52617 import_dirs = [ "//mojo/services" ]
618
rockot0506ca82016-02-05 18:13:05619 public_deps = [
jamc912ca32016-02-24 20:17:31620 "//components/leveldb/public/interfaces",
rouslanbb7522e2017-03-28 17:06:19621 "//components/payments/content:mojom_payment_app",
rockot5c478a72016-09-28 23:14:18622 "//content/public/common:interfaces",
mcasas32a88202016-10-11 02:02:52623
624 # TODO(mcasas): remove the following dep after https://crbug.com/653994
625 "//gpu/ipc/common:interfaces",
rockot067ca55f2016-09-30 22:00:15626 "//ipc:mojom",
chfremerb689c2a2016-10-27 23:04:46627 "//media/capture/mojo:capture_types",
mcasas2ff39f622016-10-11 20:00:46628 "//media/mojo/interfaces",
horo011e3a5a2016-10-11 11:59:11629 "//mojo/common:common_custom_types",
rockot734fb662016-10-15 16:41:30630 "//services/service_manager/public/interfaces",
ben6b0453d12016-07-02 04:27:19631 "//services/ui/public/interfaces",
mcasasc3b336b2016-10-07 14:55:45632 "//services/video_capture/public/interfaces",
halton.huoca2eabd2015-07-06 08:17:40633 "//skia/public/interfaces",
ortunob160cb72016-03-16 20:44:30634 "//third_party/WebKit/public:mojo_bindings",
rockot5c478a72016-09-28 23:14:18635 "//ui/base/mojo:mojo_bindings",
sammc813a8eb32016-05-28 03:34:07636 "//ui/gfx/geometry/mojo",
rockot067ca55f2016-09-30 22:00:15637 "//ui/gfx/mojo",
sammcf6f4fcf2016-06-21 05:39:39638 "//url/mojo:url_mojom_gurl",
sammca1107b72016-03-23 18:51:58639 "//url/mojo:url_mojom_origin",
[email protected]e2051232014-06-30 17:45:45640 ]
yzshen4e4d53c2016-07-19 06:56:42641
rockota628d0b2017-02-09 08:40:15642 overridden_deps = [ "//ipc:mojom" ]
643 component_deps = [ "//ipc" ]
644
jamb97b473d2016-08-08 20:48:29645 export_class_attribute = "CONTENT_EXPORT"
646 export_define = "CONTENT_IMPLEMENTATION=1"
647 export_header = "content/common/content_export.h"
[email protected]189add52014-05-28 16:51:44648}