blob: cf899ff08b2a2f1825dab3c5e0c6383b2e501b6a [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
[email protected]7e4c33142014-05-21 22:01:325import("//build/config/features.gni")
6import("//build/config/ui.gni")
xhwang13eab742015-11-18 20:29:377import("//media/media_options.gni")
rockot85dce0862015-11-13 01:33:598import("//mojo/public/tools/bindings/mojom.gni")
brettw4b461082016-11-19 18:55:169import("//ppapi/features/features.gni")
rsesek7b1273af02016-12-06 20:55:4710import("//sandbox/features.gni")
ochangdd89a1e2016-06-08 16:39:0111import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
dpranke517335e2015-08-01 02:41:1412if (is_mac) {
13 import("//build/config/mac/mac_sdk.gni")
14}
[email protected]df3ecfde2014-05-20 21:52:3415
16source_set("common") {
brettwb78fc9e2016-03-25 21:02:5117 # Targets external to content should always link to the public API.
18 # In addition, targets outside of the content component (shell and tests)
19 # must not link to this because it will duplicate the code in the component
20 # build.
21 visibility = [ "//content/*" ]
[email protected]df3ecfde2014-05-20 21:52:3422
brettw8ad01a32016-09-01 23:26:2523 sources = [
24 "accessibility_messages.h",
25 "all_messages.h",
26 "android/address_parser.cc",
27 "android/address_parser.h",
28 "android/address_parser_internal.cc",
29 "android/address_parser_internal.h",
30 "android/common_jni_registrar.cc",
31 "android/common_jni_registrar.h",
32 "android/gin_java_bridge_errors.cc",
33 "android/gin_java_bridge_errors.h",
34 "android/gin_java_bridge_value.cc",
35 "android/gin_java_bridge_value.h",
36 "android/hash_set.cc",
37 "android/hash_set.h",
38 "android/media_metadata_android.cc",
39 "android/media_metadata_android.h",
40 "android/resource_request_body_android.cc",
41 "android/resource_request_body_android.h",
42 "android/sync_compositor_messages.cc",
43 "android/sync_compositor_messages.h",
44 "android/sync_compositor_statics.cc",
45 "android/sync_compositor_statics.h",
yusufoed66fc02016-10-11 20:59:0446 "app_web_message_port_messages.h",
brettw8ad01a32016-09-01 23:26:2547 "appcache_interfaces.cc",
48 "appcache_interfaces.h",
49 "appcache_messages.h",
rockotf62002a2016-09-15 00:08:5950 "associated_interface_provider_impl.cc",
51 "associated_interface_provider_impl.h",
52 "associated_interface_registry_impl.cc",
53 "associated_interface_registry_impl.h",
brettw8ad01a32016-09-01 23:26:2554 "ax_content_node_data.cc",
55 "ax_content_node_data.h",
56 "bluetooth/web_bluetooth_device_id.cc",
57 "bluetooth/web_bluetooth_device_id.h",
58 "browser_plugin/browser_plugin_constants.cc",
59 "browser_plugin/browser_plugin_constants.h",
60 "browser_plugin/browser_plugin_messages.h",
61 "cache_storage/cache_storage_messages.h",
62 "cache_storage/cache_storage_types.cc",
63 "cache_storage/cache_storage_types.h",
64 "child_process_host_impl.cc",
65 "child_process_host_impl.h",
66 "child_process_messages.h",
brettw8ad01a32016-09-01 23:26:2567 "clipboard_format.h",
68 "clipboard_messages.h",
jamcc96c422017-02-10 18:50:2069 "common_sandbox_support_linux.cc",
brettw8ad01a32016-09-01 23:26:2570 "content_constants_internal.cc",
71 "content_constants_internal.h",
72 "content_export.h",
73 "content_ipc_logging.cc",
74 "content_message_generator.cc",
75 "content_message_generator.h",
76 "content_param_traits.cc",
77 "content_param_traits.h",
78 "content_param_traits_macros.h",
79 "content_paths.cc",
80 "content_security_policy_header.h",
81 "content_switches_internal.cc",
82 "content_switches_internal.h",
83 "cross_site_document_classifier.cc",
84 "cross_site_document_classifier.h",
85 "cursors/webcursor.cc",
86 "cursors/webcursor.h",
87 "cursors/webcursor_android.cc",
88 "cursors/webcursor_aura.cc",
89 "cursors/webcursor_aurawin.cc",
90 "cursors/webcursor_aurax11.cc",
91 "cursors/webcursor_mac.mm",
92 "cursors/webcursor_ozone.cc",
93 "database_messages.h",
94 "date_time_suggestion.h",
brettw8ad01a32016-09-01 23:26:2595 "devtools_messages.h",
brettw8ad01a32016-09-01 23:26:2596 "dom_storage/dom_storage_map.cc",
97 "dom_storage/dom_storage_map.h",
98 "dom_storage/dom_storage_messages.h",
carlosk29da4fe2016-11-29 00:01:2999 "download/mhtml_save_status.cc",
100 "download/mhtml_save_status.h",
brettw8ad01a32016-09-01 23:26:25101 "drag_event_source_info.h",
102 "drag_messages.h",
103 "drag_traits.h",
104 "dwrite_font_proxy_messages.h",
105 "edit_command.h",
106 "establish_channel_params.cc",
107 "establish_channel_params.h",
iclelland9071e0e2017-02-03 06:35:56108 "feature_policy/feature_policy.cc",
109 "feature_policy/feature_policy.h",
brettw8ad01a32016-09-01 23:26:25110 "file_utilities_messages.h",
111 "fileapi/file_system_messages.h",
112 "font_cache_dispatcher_win.cc",
113 "font_cache_dispatcher_win.h",
114 "font_config_ipc_linux.cc",
115 "font_config_ipc_linux.h",
116 "font_list.cc",
117 "font_list.h",
118 "font_list_android.cc",
119 "font_list_fontconfig.cc",
120 "font_list_mac.mm",
121 "font_list_win.cc",
122 "frame_message_enums.h",
123 "frame_messages.h",
124 "frame_owner_properties.cc",
125 "frame_owner_properties.h",
126 "frame_replication_state.cc",
127 "frame_replication_state.h",
brettw8ad01a32016-09-01 23:26:25128 "generic_shared_memory_id_generator.cc",
129 "generic_shared_memory_id_generator.h",
130 "gin_java_bridge_messages.h",
brettw8ad01a32016-09-01 23:26:25131 "gpu_host_messages.h",
brettw8ad01a32016-09-01 23:26:25132 "host_shared_bitmap_manager.cc",
133 "host_shared_bitmap_manager.h",
134 "in_process_child_thread_params.cc",
135 "in_process_child_thread_params.h",
136 "indexed_db/indexed_db_constants.h",
137 "indexed_db/indexed_db_key.cc",
138 "indexed_db/indexed_db_key.h",
139 "indexed_db/indexed_db_key_path.cc",
140 "indexed_db/indexed_db_key_path.h",
141 "indexed_db/indexed_db_key_range.cc",
142 "indexed_db/indexed_db_key_range.h",
reillyg627e7f72016-10-20 05:12:43143 "indexed_db/indexed_db_metadata.cc",
144 "indexed_db/indexed_db_metadata.h",
reillyg627e7f72016-10-20 05:12:43145 "indexed_db/indexed_db_struct_traits.cc",
146 "indexed_db/indexed_db_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25147 "input/event_with_latency_info.h",
148 "input/gesture_event_stream_validator.cc",
149 "input/gesture_event_stream_validator.h",
150 "input/input_event.cc",
151 "input/input_event.h",
152 "input/input_event_ack.cc",
153 "input/input_event_ack.h",
dtapuska120e9972016-11-07 20:13:39154 "input/input_event_ack_source.h",
155 "input/input_event_ack_state.h",
brettw8ad01a32016-09-01 23:26:25156 "input/input_event_dispatch_type.h",
157 "input/input_event_stream_validator.cc",
158 "input/input_event_stream_validator.h",
159 "input/input_param_traits.cc",
160 "input/input_param_traits.h",
161 "input/synthetic_gesture_packet.cc",
162 "input/synthetic_gesture_packet.h",
163 "input/synthetic_gesture_params.cc",
164 "input/synthetic_gesture_params.h",
165 "input/synthetic_pinch_gesture_params.cc",
166 "input/synthetic_pinch_gesture_params.h",
lanwei3df2fbb2016-12-21 22:10:02167 "input/synthetic_pointer_action_list_params.cc",
168 "input/synthetic_pointer_action_list_params.h",
brettw8ad01a32016-09-01 23:26:25169 "input/synthetic_pointer_action_params.cc",
170 "input/synthetic_pointer_action_params.h",
171 "input/synthetic_smooth_drag_gesture_params.cc",
172 "input/synthetic_smooth_drag_gesture_params.h",
173 "input/synthetic_smooth_scroll_gesture_params.cc",
174 "input/synthetic_smooth_scroll_gesture_params.h",
175 "input/synthetic_tap_gesture_params.cc",
176 "input/synthetic_tap_gesture_params.h",
177 "input/synthetic_web_input_event_builders.cc",
178 "input/synthetic_web_input_event_builders.h",
179 "input/touch_event_stream_validator.cc",
180 "input/touch_event_stream_validator.h",
181 "input/web_input_event_queue.h",
182 "input/web_touch_event_traits.cc",
183 "input/web_touch_event_traits.h",
184 "input_messages.h",
185 "inter_process_time_ticks_converter.cc",
186 "inter_process_time_ticks_converter.h",
187 "layer_tree_settings_factory.cc",
188 "layer_tree_settings_factory.h",
189 "mac/attributed_string_coder.h",
190 "mac/attributed_string_coder.mm",
191 "mac/font_descriptor.h",
192 "mac/font_descriptor.mm",
193 "mac/font_loader.h",
194 "mac/font_loader.mm",
195 "manifest_manager_messages.h",
196 "media/aec_dump_messages.h",
197 "media/audio_messages.h",
198 "media/cdm_info.cc",
guidoucc6d4602016-09-23 21:28:43199 "media/media_devices.cc",
200 "media/media_devices.h",
guidou9357cc52016-10-11 19:53:36201 "media/media_devices_param_traits.cc",
202 "media/media_devices_param_traits.h",
brettw8ad01a32016-09-01 23:26:25203 "media/media_player_delegate_messages.h",
204 "media/media_player_messages_android.h",
brettw8ad01a32016-09-01 23:26:25205 "media/media_stream_messages.h",
206 "media/media_stream_options.cc",
207 "media/media_stream_options.h",
208 "media/media_stream_track_metrics_host_messages.h",
209 "media/midi_messages.h",
210 "media/surface_view_manager_messages_android.h",
211 "media/video_capture.h",
brettw8ad01a32016-09-01 23:26:25212 "memory_messages.h",
213 "message_port_messages.h",
brettw8ad01a32016-09-01 23:26:25214 "navigation_gesture.h",
215 "navigation_params.cc",
216 "navigation_params.h",
217 "net/url_fetcher.cc",
218 "net/url_request_service_worker_data.cc",
219 "net/url_request_service_worker_data.h",
220 "net/url_request_user_data.cc",
221 "net/url_request_user_data.h",
brettw8ad01a32016-09-01 23:26:25222 "origin_trials/trial_token.cc",
223 "origin_trials/trial_token.h",
224 "origin_trials/trial_token_validator.cc",
225 "origin_trials/trial_token_validator.h",
226 "origin_util.cc",
227 "p2p_messages.h",
228 "page_state_serialization.cc",
229 "page_state_serialization.h",
230 "page_zoom.cc",
231 "pepper_file_util.cc",
232 "pepper_file_util.h",
233 "pepper_plugin_list.cc",
234 "pepper_plugin_list.h",
235 "pepper_renderer_instance_data.cc",
236 "pepper_renderer_instance_data.h",
237 "platform_notification_messages.h",
238 "plugin_list.cc",
239 "plugin_list.h",
brettw8ad01a32016-09-01 23:26:25240 "process_type.cc",
241 "push_messaging_messages.h",
asankac1ab0292016-12-08 21:53:33242 "quarantine/quarantine.cc",
243 "quarantine/quarantine_constants_linux.h",
244 "quarantine/quarantine_linux.cc",
245 "quarantine/quarantine_mac.mm",
246 "quarantine/quarantine_win.cc",
brettw8ad01a32016-09-01 23:26:25247 "quota_messages.h",
248 "render_process_messages.h",
249 "resize_params.cc",
250 "resize_params.h",
251 "resource_messages.cc",
252 "resource_messages.h",
253 "resource_request.cc",
254 "resource_request.h",
255 "resource_request_body_impl.cc",
256 "resource_request_body_impl.h",
257 "resource_request_completion_status.cc",
258 "resource_request_completion_status.h",
259 "sandbox_init_mac.cc",
260 "sandbox_init_mac.h",
261 "sandbox_init_win.cc",
262 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc",
263 "sandbox_linux/android/sandbox_bpf_base_policy_android.h",
264 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc",
265 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h",
266 "sandbox_linux/bpf_gpu_policy_linux.cc",
267 "sandbox_linux/bpf_gpu_policy_linux.h",
268 "sandbox_linux/bpf_ppapi_policy_linux.cc",
269 "sandbox_linux/bpf_ppapi_policy_linux.h",
270 "sandbox_linux/bpf_renderer_policy_linux.cc",
271 "sandbox_linux/bpf_renderer_policy_linux.h",
272 "sandbox_linux/bpf_utility_policy_linux.cc",
273 "sandbox_linux/bpf_utility_policy_linux.h",
274 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
275 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
276 "sandbox_linux/sandbox_debug_handling_linux.cc",
277 "sandbox_linux/sandbox_debug_handling_linux.h",
278 "sandbox_linux/sandbox_init_linux.cc",
279 "sandbox_linux/sandbox_linux.cc",
280 "sandbox_linux/sandbox_linux.h",
281 "sandbox_linux/sandbox_seccomp_bpf_linux.cc",
282 "sandbox_linux/sandbox_seccomp_bpf_linux.h",
283 "sandbox_mac.h",
284 "sandbox_mac.mm",
285 "sandbox_win.cc",
286 "sandbox_win.h",
287 "savable_subframe.h",
brettw8ad01a32016-09-01 23:26:25288 "screen_orientation_messages.h",
289 "send_zygote_child_ping_linux.cc",
bend32292b2016-10-07 00:21:58290 "service_manager/embedded_service_runner.cc",
291 "service_manager/embedded_service_runner.h",
292 "service_manager/service_manager_connection_impl.cc",
293 "service_manager/service_manager_connection_impl.h",
brettw8ad01a32016-09-01 23:26:25294 "service_worker/embedded_worker_messages.h",
295 "service_worker/embedded_worker_settings.h",
shimazu5de409e42016-09-29 08:45:28296 "service_worker/embedded_worker_start_params.cc",
297 "service_worker/embedded_worker_start_params.h",
brettw8ad01a32016-09-01 23:26:25298 "service_worker/service_worker_client_info.cc",
299 "service_worker/service_worker_client_info.h",
300 "service_worker/service_worker_messages.h",
301 "service_worker/service_worker_status_code.cc",
302 "service_worker/service_worker_status_code.h",
brettw8ad01a32016-09-01 23:26:25303 "service_worker/service_worker_types.cc",
304 "service_worker/service_worker_types.h",
305 "service_worker/service_worker_utils.cc",
306 "service_worker/service_worker_utils.h",
307 "set_process_title.cc",
308 "set_process_title.h",
309 "set_process_title_linux.cc",
310 "set_process_title_linux.h",
311 "site_isolation_policy.cc",
312 "site_isolation_policy.h",
313 "speech_recognition_messages.h",
brettw8ad01a32016-09-01 23:26:25314 "swapped_out_messages.cc",
315 "swapped_out_messages.h",
316 "text_input_client_messages.h",
317 "text_input_state.cc",
318 "text_input_state.h",
yhirano933ee582017-01-27 13:28:40319 "url_request_struct_traits.cc",
320 "url_request_struct_traits.h",
brettw8ad01a32016-09-01 23:26:25321 "url_schemes.cc",
322 "url_schemes.h",
323 "user_agent.cc",
324 "utility_messages.h",
325 "view_message_enums.h",
326 "view_messages.h",
327 "worker_messages.h",
328 "zygote_commands_linux.h",
329 ]
[email protected]df3ecfde2014-05-20 21:52:34330
brettw1deb76bc2015-02-18 19:28:20331 configs += [
332 "//content:content_implementation",
brettwbc8b2a22015-07-28 18:24:42333 "//build/config:precompiled_headers",
brettw1deb76bc2015-02-18 19:28:20334 "//build/config/compiler:no_size_t_to_int_warning",
henryhsu5580c3ab2016-07-14 05:11:41335 "//media/gpu:gpu_config",
brettw1deb76bc2015-02-18 19:28:20336 ]
[email protected]df3ecfde2014-05-20 21:52:34337
Brett Wilsone53895272014-09-23 23:41:46338 public_deps = [
jamb3c1195df2016-03-21 20:41:29339 ":mojo_bindings",
xlai8f405382016-09-01 19:46:22340 "//cc",
Brett Wilsone53895272014-09-23 23:41:46341 "//gpu/command_buffer/common",
agrievee786dac2015-12-02 14:45:22342 "//ipc",
Brett Wilsone53895272014-09-23 23:41:46343 "//third_party/WebKit/public:blink_headers",
344 ]
[email protected]df3ecfde2014-05-20 21:52:34345 deps = [
346 "//base",
brettw63340882016-03-22 17:09:49347 "//base/third_party/dynamic_annotations",
[email protected]7e4c33142014-05-21 22:01:32348 "//build/util:webkit_version",
fsamuel812b8482016-05-16 18:52:18349 "//cc/ipc",
brettw63340882016-03-22 17:09:49350 "//cc/surfaces",
penghuangd81c1a62016-11-02 20:06:06351 "//components/discardable_memory/common",
jinho.bang1cc5c532017-01-10 06:16:28352 "//components/payments:payment_app",
[email protected]df3ecfde2014-05-20 21:52:34353 "//components/tracing",
zhenw062a94522015-06-22 20:55:28354 "//components/tracing:startup_tracing",
brettw26c6ab452016-06-23 00:41:09355 "//content:resources",
356 "//content/app/resources",
alexis.menardb39a30822016-09-30 15:14:39357 "//device/base/synchronization",
jamb3c1195df2016-03-21 20:41:29358 "//device/bluetooth",
brettw63340882016-03-22 17:09:49359 "//gpu",
jamb3c1195df2016-03-21 20:41:29360 "//gpu/command_buffer/client:gles2_c_lib",
361 "//gpu/command_buffer/client:gles2_cmd_helper",
362 "//gpu/command_buffer/client:gles2_implementation",
jbromancba3d2fe2014-09-16 01:04:24363 "//gpu/command_buffer/client:gles2_interface",
brettw542f7532015-04-06 22:35:45364 "//gpu/command_buffer/common:gles2_utils",
jamb3c1195df2016-03-21 20:41:29365 "//gpu/command_buffer/service",
penghuang346a46f92016-03-31 21:37:52366 "//gpu/ipc/client",
jamb3c1195df2016-03-21 20:41:29367 "//gpu/ipc/common",
368 "//gpu/skia_bindings",
369 "//ipc",
jamb3c1195df2016-03-21 20:41:29370 "//media",
371 "//media:shared_memory_support",
jamc17b7fa02016-05-12 03:57:55372 "//media/base/ipc",
mcasase40d7522016-06-21 16:11:40373 "//media/capture",
chfremerb689c2a2016-10-27 23:04:46374 "//media/capture/ipc",
penghuang13b168b2016-04-07 15:23:31375 "//media/gpu/ipc/client",
fsamuel29ebf3c2016-04-01 00:20:00376 "//media/gpu/ipc/common",
jamb3c1195df2016-03-21 20:41:29377 "//media/midi",
sammc64324c3a2017-01-05 00:40:15378 "//media/midi:mojo",
jamb3c1195df2016-03-21 20:41:29379 "//mojo/common:common_base",
jamb3c1195df2016-03-21 20:41:29380 "//mojo/edk/system",
[email protected]df3ecfde2014-05-20 21:52:34381 "//net",
brettw4b461082016-11-19 18:55:16382 "//ppapi/features",
jamb3c1195df2016-03-21 20:41:29383 "//sandbox",
rsesek7b1273af02016-12-06 20:55:47384 "//sandbox:sandbox_features",
rockot734fb662016-10-15 16:41:30385 "//services/service_manager",
386 "//services/service_manager/public/cpp",
387 "//services/service_manager/public/interfaces",
388 "//services/service_manager/runner/common",
ben6b0453d12016-07-02 04:27:19389 "//services/ui/public/interfaces",
mcasasc3b336b2016-10-07 14:55:45390 "//services/video_capture/public/interfaces",
[email protected]df3ecfde2014-05-20 21:52:34391 "//skia",
jamb3c1195df2016-03-21 20:41:29392 "//storage/common",
scottmg581bbb4d2016-05-06 18:35:16393 "//third_party/WebKit/public:blink_minimal",
jamb3c1195df2016-03-21 20:41:29394 "//third_party/boringssl",
[email protected]df3ecfde2014-05-20 21:52:34395 "//third_party/icu",
rockotac2a36e2015-11-20 17:56:54396 "//third_party/libjingle",
brettwc15ed732016-03-21 23:14:29397 "//third_party/webrtc/base:rtc_base",
[email protected]df3ecfde2014-05-20 21:52:34398 "//ui/accessibility",
[email protected]52140d882014-05-30 19:22:40399 "//ui/base",
spang1c36fac2015-02-05 19:55:12400 "//ui/base/ime",
brettw26c6ab452016-06-23 00:41:09401 "//ui/display",
chongza8ba91fc2016-08-16 21:39:17402 "//ui/events/blink",
Nico Weber9d6e12942016-04-19 18:51:09403 "//ui/events/ipc",
[email protected]df3ecfde2014-05-20 21:52:34404 "//ui/gfx",
405 "//ui/gfx/geometry",
[email protected]d7e69fa2014-07-24 21:19:28406 "//ui/gfx/ipc",
ccamerone0d9f382016-07-19 20:12:15407 "//ui/gfx/ipc/color",
fsamuel6b98cf92016-04-28 05:42:24408 "//ui/gfx/ipc/geometry",
markdittmer99d77bf2016-03-31 19:03:24409 "//ui/gfx/ipc/skia",
jamb3c1195df2016-03-21 20:41:29410 "//ui/gl",
[email protected]a1d7d4f2014-07-16 21:33:36411 "//ui/shell_dialogs",
[email protected]df3ecfde2014-05-20 21:52:34412 "//url",
markdittmer67b71ea2016-03-03 22:40:03413 "//url/ipc:url_ipc",
[email protected]df3ecfde2014-05-20 21:52:34414 ]
[email protected]7e4c33142014-05-21 22:01:32415
ben3f5f9992015-11-19 10:38:30416 defines = []
[email protected]7e4c33142014-05-21 22:01:32417 include_dirs = []
[email protected]7e4c33142014-05-21 22:01:32418 libs = []
419 ldflags = []
420
sammc64324c3a2017-01-05 00:40:15421 allow_circular_includes_from = [ ":mojo_bindings" ]
yhirano72f62272016-08-13 12:50:06422
[email protected]7e4c33142014-05-21 22:01:32423 if (is_android && use_seccomp_bpf) {
424 set_sources_assignment_filter([])
425 sources += [
426 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
427 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
428 ]
429 set_sources_assignment_filter(sources_assignment_filter)
430 }
431
432 if (is_mac) {
markdittmer6e70beb82016-05-02 05:40:47433 deps += [ "//sandbox/mac:seatbelt" ]
[email protected]7e4c33142014-05-21 22:01:32434 }
435
436 if (is_android) {
James Robinson060f2e32014-09-10 22:31:37437 deps += [
James Robinson060f2e32014-09-10 22:31:37438 "//content/public/android:common_aidl",
rockotac2a36e2015-11-20 17:56:54439 "//content/public/android:jni",
James Robinson060f2e32014-09-10 22:31:37440 ]
[email protected]7e4c33142014-05-21 22:01:32441
442 libs += [ "android" ]
443 }
444
agrievee786dac2015-12-02 14:45:22445 if (is_debug && !is_component_build && enable_plugins) {
erg85ac9312015-04-16 18:20:53446 # Content depends on the PPAPI message logging stuff; if this isn't here,
447 # some unit test binaries won't compile. This only worked in release mode
448 # because logging is disabled there.
449 deps += [ "//ppapi/proxy:ipc_sources" ]
450 }
451
revemanbc2de2b2014-11-17 03:21:32452 if (use_ozone) {
spang033576972016-02-24 00:10:57453 deps += [ "//ui/ozone" ]
revemanbc2de2b2014-11-17 03:21:32454 } else {
drotte70ca0a2016-08-26 09:24:36455 sources -= [ "cursors/webcursor_ozone.cc" ]
[email protected]7e4c33142014-05-21 22:01:32456 }
457
mfomitchev2977ebf2015-08-07 00:12:29458 if (!use_aura || is_android) {
[email protected]79ff77e62014-07-08 10:59:16459 sources -= [ "cursors/webcursor_aura.cc" ]
460 }
461
[email protected]7e4c33142014-05-21 22:01:32462 if (!use_aura || !use_x11) {
463 sources -= [ "cursors/webcursor_aurax11.cc" ]
464 }
465
drotte70ca0a2016-08-26 09:24:36466 if (is_linux) {
467 deps += [ "//build/linux:fontconfig" ]
468 }
469
470 if (is_mac || is_win || is_android) {
471 sources -= [ "font_list_fontconfig.cc" ]
[email protected]7e4c33142014-05-21 22:01:32472 }
473
[email protected]7e4c33142014-05-21 22:01:32474 if (enable_plugins) {
brettw26c6ab452016-06-23 00:41:09475 deps += [
scottmg3cab0ba2017-01-25 18:34:16476 "//ppapi/proxy:ipc",
brettw26c6ab452016-06-23 00:41:09477 "//ppapi/shared_impl",
478 ]
[email protected]7e4c33142014-05-21 22:01:32479 } else {
480 sources -= [
thestigc4cac8f2014-09-04 21:17:50481 "pepper_file_util.cc",
482 "pepper_file_util.h",
[email protected]7e4c33142014-05-21 22:01:32483 "pepper_plugin_list.cc",
484 "pepper_plugin_list.h",
thestigc4cac8f2014-09-04 21:17:50485 "pepper_renderer_instance_data.cc",
486 "pepper_renderer_instance_data.h",
487 "plugin_list.cc",
488 "plugin_list.h",
[email protected]7e4c33142014-05-21 22:01:32489 ]
490 }
491
[email protected]7e4c33142014-05-21 22:01:32492 if (!is_win || !use_aura) {
493 sources -= [ "cursors/webcursor_aurawin.cc" ]
494 }
[email protected]7e4c33142014-05-21 22:01:32495
rsesek7b1273af02016-12-06 20:55:47496 if (!use_seccomp_bpf) {
[email protected]7e4c33142014-05-21 22:01:32497 if (is_linux) {
498 sources -= [
499 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc",
500 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h",
501 "sandbox_linux/bpf_gpu_policy_linux.cc",
502 "sandbox_linux/bpf_gpu_policy_linux.h",
503 "sandbox_linux/bpf_ppapi_policy_linux.cc",
504 "sandbox_linux/bpf_ppapi_policy_linux.h",
505 "sandbox_linux/bpf_renderer_policy_linux.cc",
506 "sandbox_linux/bpf_renderer_policy_linux.h",
[email protected]692a9542014-06-25 23:04:47507 "sandbox_linux/bpf_utility_policy_linux.cc",
508 "sandbox_linux/bpf_utility_policy_linux.h",
[email protected]7e4c33142014-05-21 22:01:32509 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
510 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
511 ]
512 }
513 if (is_android) {
514 sources -= [
515 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc",
516 "sandbox_linux/android/sandbox_bpf_base_policy_android.h",
517 ]
518 }
519 }
ochangdd89a1e2016-06-08 16:39:01520
brettw26c6ab452016-06-23 00:41:09521 if (is_mac) {
522 deps += [ "//media/gpu" ]
523 }
524
ochangdd89a1e2016-06-08 16:39:01525 if (enable_ipc_fuzzer) {
526 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ]
527 sources += [
528 "external_ipc_dumper.cc",
529 "external_ipc_dumper.h",
530 ]
531 }
xhwang785a8342017-01-26 06:46:39532
533 if (enable_pepper_cdms) {
534 sources += [
535 "media/cdm_host_file.cc",
536 "media/cdm_host_file.h",
537 "media/cdm_host_files.cc",
538 "media/cdm_host_files.h",
539 ]
540 deps += [
541 "//media:cdm_paths",
542
543 # Needed for finding CDM path from CDM adapter path.
544 # TODO(xhwang): Remove this dependency when CDM adapter is deprecated.
545 # See http://crbug.com/403462
546 "//third_party/widevine/cdm:headers",
547 ]
548 }
[email protected]df3ecfde2014-05-20 21:52:34549}
[email protected]7e4c33142014-05-21 22:01:32550
brettwb78fc9e2016-03-25 21:02:51551# See comment at the top of //content/BUILD.gn for how this works.
552group("for_content_tests") {
553 visibility = [ "//content/test/*" ]
554 if (!is_component_build) {
555 public_deps = [
556 ":common",
557 ]
558 }
559}
560
[email protected]189add52014-05-28 16:51:44561mojom("mojo_bindings") {
jamb97b473d2016-08-08 20:48:29562 # This interface is internal to content.
brettwb78fc9e2016-03-25 21:02:51563 visibility = [ "//content/*" ]
564
reillyg627e7f72016-10-20 05:12:43565 # indexed_db.mojom uses a native typemap that is not available in Java.
566 cpp_only = true
567
[email protected]189add52014-05-28 16:51:44568 sources = [
rockotf62002a2016-09-15 00:08:59569 "associated_interfaces.mojom",
bashia6264042016-09-15 04:49:51570 "child_memory_coordinator.mojom",
ben76f52b242016-06-18 05:42:48571 "frame.mojom",
scottmg276753cf2016-10-27 18:25:22572 "host_zoom.mojom",
halton.huoca2eabd2015-07-06 08:17:40573 "image_downloader/image_downloader.mojom",
reillyg627e7f72016-10-20 05:12:43574 "indexed_db/indexed_db.mojom",
jamc912ca32016-02-24 20:17:31575 "leveldb_wrapper.mojom",
guidou9357cc52016-10-11 19:53:36576 "media/media_devices.mojom",
bashia6264042016-09-15 04:49:51577 "memory_coordinator.mojom",
rockot067ca55f2016-09-30 22:00:15578 "native_types.mojom",
rockot1587e332016-07-27 17:44:14579 "render_frame_message_filter.mojom",
rockote261d2112016-09-21 22:22:23580 "render_message_filter.mojom",
fsamuel6c6da0232015-11-26 05:13:46581 "render_widget_window_tree_client_factory.mojom",
rockot067ca55f2016-09-30 22:00:15582 "renderer.mojom",
shimazu5de409e42016-09-29 08:45:28583 "service_worker/embedded_worker.mojom",
shimazu804b3e42016-10-17 09:13:29584 "service_worker/service_worker.mojom",
shimazu317dd7b2016-11-25 04:55:51585 "service_worker/service_worker_event_dispatcher.mojom",
shimazu804b3e42016-10-17 09:13:29586 "service_worker/service_worker_types.mojom",
jamc912ca32016-02-24 20:17:31587 "storage_partition_service.mojom",
yhirano72f62272016-08-13 12:50:06588 "url_loader.mojom",
589 "url_loader_factory.mojom",
mcasas796b2e6c2016-10-06 01:48:14590 "video_capture.mojom",
[email protected]189add52014-05-28 16:51:44591 ]
[email protected]e2051232014-06-30 17:45:45592
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",
mcasas32a88202016-10-11 02:02:52598
599 # TODO(mcasas): remove the following dep after https://crbug.com/653994
600 "//gpu/ipc/common:interfaces",
rockot067ca55f2016-09-30 22:00:15601 "//ipc:mojom",
chfremerb689c2a2016-10-27 23:04:46602 "//media/capture/mojo:capture_types",
mcasas2ff39f622016-10-11 20:00:46603 "//media/mojo/interfaces",
horo011e3a5a2016-10-11 11:59:11604 "//mojo/common:common_custom_types",
rockot734fb662016-10-15 16:41:30605 "//services/service_manager/public/interfaces",
ben6b0453d12016-07-02 04:27:19606 "//services/ui/public/interfaces",
mcasasc3b336b2016-10-07 14:55:45607 "//services/video_capture/public/interfaces",
halton.huoca2eabd2015-07-06 08:17:40608 "//skia/public/interfaces",
ortunob160cb72016-03-16 20:44:30609 "//third_party/WebKit/public:mojo_bindings",
rockot5c478a72016-09-28 23:14:18610 "//ui/base/mojo:mojo_bindings",
sammc813a8eb32016-05-28 03:34:07611 "//ui/gfx/geometry/mojo",
rockot067ca55f2016-09-30 22:00:15612 "//ui/gfx/mojo",
sammcf6f4fcf2016-06-21 05:39:39613 "//url/mojo:url_mojom_gurl",
sammca1107b72016-03-23 18:51:58614 "//url/mojo:url_mojom_origin",
[email protected]e2051232014-06-30 17:45:45615 ]
yzshen4e4d53c2016-07-19 06:56:42616
rockota628d0b2017-02-09 08:40:15617 overridden_deps = [ "//ipc:mojom" ]
618 component_deps = [ "//ipc" ]
619
jamb97b473d2016-08-08 20:48:29620 export_class_attribute = "CONTENT_EXPORT"
621 export_define = "CONTENT_IMPLEMENTATION=1"
622 export_header = "content/common/content_export.h"
[email protected]189add52014-05-28 16:51:44623}