blob: fe4a920ffdccb194be18cca3a1e3584d18f6ee29 [file] [log] [blame]
[email protected]4db51ec2014-05-29 21:08:321# 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
5import("//build/config/features.gni")
6import("//build/config/ui.gni")
7import("//content/browser/browser.gni")
cjhopman2fd48fd2014-09-24 00:52:568import("//media/media_options.gni")
ochangdd89a1e2016-06-08 16:39:019import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
[email protected]4db51ec2014-05-29 21:08:3210
11source_set("browser") {
Brett Wilson8f1323042014-09-11 16:58:5612 # Only the public target should depend on this. All other targets (even
13 # internal content ones) should depend on the public one.
brettwb78fc9e2016-03-25 21:02:5114 visibility = [
15 ":for_content_tests", # See top of //content/BUILD.gn for why.
16 "//content/public/browser:browser_sources",
17 ]
[email protected]4db51ec2014-05-29 21:08:3218
ben3f5f9992015-11-19 10:38:3019 configs += [
20 "//build/config:precompiled_headers",
jamb3c1195df2016-03-21 20:41:2921 "//content:content_implementation",
ben3f5f9992015-11-19 10:38:3022 "//content/public/common:mojo_shell_client",
jamb3c1195df2016-03-21 20:41:2923 "//third_party/WebKit/public:debug_devtools",
24 "//v8:external_startup_data",
ben3f5f9992015-11-19 10:38:3025 ]
[email protected]743530f2014-06-12 19:38:5026 defines = []
27 libs = []
28 ldflags = []
[email protected]97865022014-06-13 23:18:0429
[email protected]4db51ec2014-05-29 21:08:3230 deps = [
31 "//base",
[email protected]22fe91d2014-08-12 17:07:1232 "//base:base_static",
brettwc15ed732016-03-21 23:14:2933 "//base/third_party/dynamic_annotations",
jamb3c1195df2016-03-21 20:41:2934 "//cc",
35 "//cc/surfaces",
fsamuel540b8c12016-04-21 18:47:1036 "//components/display_compositor",
jamb3c1195df2016-03-21 20:41:2937 "//components/filesystem:lib",
38 "//components/leveldb:lib",
mek9b28f422016-05-13 21:46:2339 "//components/link_header_util",
rsleevic327b48f82015-04-30 02:03:2540 "//components/mime_util",
jamb3c1195df2016-03-21 20:41:2941 "//components/scheduler:common",
brettwc15ed732016-03-21 23:14:2942 "//components/tracing",
43 "//components/tracing:startup_tracing",
rsleevi24f64dc22015-08-07 21:39:2144 "//components/url_formatter",
[email protected]d28b3cb82014-05-31 04:46:1845 "//content:resources",
jamb3c1195df2016-03-21 20:41:2946 "//content/app/resources",
47 "//content/app/strings",
jkarlin34ee23cf2015-03-26 13:58:5048 "//content/browser/background_sync:background_sync_proto",
jsbell279efb42015-03-31 17:02:4649 "//content/browser/cache_storage:cache_storage_proto",
jamb3c1195df2016-03-21 20:41:2950 "//content/browser/devtools:gen_devtools_protocol_handler",
51 "//content/browser/devtools:resources",
peter05cb4db2015-03-13 14:33:3852 "//content/browser/notifications:notification_proto",
jkarlind678ae4b2015-01-27 15:04:5353 "//content/browser/service_worker:service_worker_proto",
[email protected]b506cdf2014-06-09 17:13:2154 "//content/browser/speech/proto",
brettwb78fc9e2016-03-25 21:02:5155 "//content/common",
Brett Wilson8f1323042014-09-11 16:58:5656 "//content/public/common:common_sources",
[email protected]4db51ec2014-05-29 21:08:3257 "//crypto",
ppi2438a3e2014-10-28 21:55:1058 "//device/battery",
jamb3c1195df2016-03-21 20:41:2959 "//device/bluetooth",
scottmgc40e8822016-06-17 17:57:4860 "//device/power_save_blocker",
timvolodine8e29c142014-12-06 13:49:0161 "//device/vibration",
jamb3c1195df2016-03-21 20:41:2962 "//gin",
[email protected]44a5a362014-05-30 20:01:5163 "//google_apis",
brettwc15ed732016-03-21 23:14:2964 "//gpu",
65 "//gpu/command_buffer/client:gles2_implementation",
jbroman84ba6842016-04-28 00:34:5066 "//gpu/command_buffer/client:gles2_interface",
brettwc15ed732016-03-21 23:14:2967 "//ipc/mojo",
68 "//media",
mcasase40d7522016-06-21 16:11:4069 "//media/capture",
jbroman79c079be2016-04-20 00:17:2770 "//media/gpu/ipc/client",
brettwc15ed732016-03-21 23:14:2971 "//media/midi",
mcasasafcfc052016-06-06 20:47:4772 "//media/mojo/interfaces:image_capture",
rockotb814a582015-06-05 00:30:5273 "//mojo/common",
amistrycafcdff2016-06-17 03:33:4874 "//mojo/edk/system",
rockot85dce0862015-11-13 01:33:5975 "//mojo/public/cpp/bindings",
jamb3c1195df2016-03-21 20:41:2976 "//mojo/public/js",
[email protected]4db51ec2014-05-29 21:08:3277 "//net",
rohitrao1860223c2015-05-16 01:07:1478 "//net:extras",
benf709a3092016-04-12 22:38:2279 "//services/shell",
rockote98fa42c2016-05-15 03:22:1080 "//services/shell/public/cpp",
benf709a3092016-04-12 22:38:2281 "//services/shell/public/interfaces",
82 "//services/shell/runner/common",
83 "//services/shell/runner/host:lib",
bendbc8f972016-04-13 22:29:3084 "//services/user:lib",
85 "//services/user/public/cpp",
jbroman79c079be2016-04-20 00:17:2786 "//services/user/public/interfaces",
[email protected]4db51ec2014-05-29 21:08:3287 "//skia",
88 "//sql",
jamb3c1195df2016-03-21 20:41:2989 "//storage/browser",
90 "//storage/common",
fsamuel9cf7bdf2015-11-20 02:19:3291 "//third_party/WebKit/public:blink_headers",
jamb3c1195df2016-03-21 20:41:2992 "//third_party/WebKit/public:image_resources",
juncai30a0e932016-05-11 00:09:5193 "//third_party/WebKit/public:mojo_bindings",
jamb3c1195df2016-03-21 20:41:2994 "//third_party/WebKit/public:resources",
jbroman79c079be2016-04-20 00:17:2795 "//third_party/angle:angle_common",
jamb3c1195df2016-03-21 20:41:2996 "//third_party/icu",
brettwd0a794a2016-01-11 19:38:3497 "//third_party/kasko:kasko_features",
jamb3c1195df2016-03-21 20:41:2998 "//third_party/libyuv",
[email protected]4db51ec2014-05-29 21:08:3299 "//third_party/re2",
[email protected]4db51ec2014-05-29 21:08:32100 "//third_party/zlib",
101 "//third_party/zlib:zip",
102 "//ui/accessibility",
103 "//ui/accessibility:ax_gen",
[email protected]52140d882014-05-30 19:22:40104 "//ui/base",
spang1c36fac2015-02-05 19:55:12105 "//ui/base/ime",
robliao8d63729c2016-03-29 17:49:47106 "//ui/display",
[email protected]4db51ec2014-05-29 21:08:32107 "//ui/events",
108 "//ui/events:gesture_detection",
jamb3c1195df2016-03-21 20:41:29109 "//ui/events/blink",
[email protected]4db51ec2014-05-29 21:08:32110 "//ui/gfx",
111 "//ui/gfx/geometry",
ben7a77e852016-05-26 05:50:44112 "//ui/gfx/geometry/mojo",
Brett Wilsone7487942014-09-09 23:37:29113 "//ui/gl",
114 "//ui/native_theme",
[email protected]4db51ec2014-05-29 21:08:32115 "//ui/resources",
brettwc15ed732016-03-21 23:14:29116 "//ui/shell_dialogs",
[email protected]d28b3cb82014-05-31 04:46:18117 "//ui/snapshot",
jamb3c1195df2016-03-21 20:41:29118 "//ui/surface",
119 "//ui/touch_selection",
[email protected]4db51ec2014-05-29 21:08:32120 ]
121
jam447407fb2016-05-06 17:57:40122 public_deps = [
123 "//third_party/leveldatabase",
124 ]
125
jamb3c1195df2016-03-21 20:41:29126 sources = rebase_path(content_browser_gypi_values.private_browser_sources,
127 ".",
128 "//content")
[email protected]743530f2014-06-12 19:38:50129
brettw57399c52016-05-10 18:34:05130 # TODO(GYP_GONE) these generated files are listed as sources in
131 # content_browser. This is a bit suspicious. The GN grit template will make
132 # a source set containing the generated code so it should be sufficient to
133 # just depend on the grit rule. But maybe some of these will need to be
134 # added?
jamb3c1195df2016-03-21 20:41:29135 #
136 # Need this annoying rebase_path call to match what happened with the
137 # sources.
138 sources -= rebase_path(
139 [
140 "$root_gen_dir/blink/grit/devtools_resources.h",
141 "$root_gen_dir/blink/grit/devtools_resources_map.cc",
142 "$root_gen_dir/blink/grit/devtools_resources_map.h",
143 "$root_gen_dir/content/browser/tracing/grit/tracing_resources.h",
144 "$root_gen_dir/ui/resources/grit/webui_resources_map.cc",
145 ],
146 ".")
[email protected]743530f2014-06-12 19:38:50147
[email protected]4db51ec2014-05-29 21:08:32148 if (toolkit_views) {
149 deps += [ "//ui/events" ]
150 }
151
dgozman9d8f8182015-10-12 23:38:56152 if (!is_win) {
morritad95714f2014-10-01 02:37:24153 sources += [
morritad95714f2014-10-01 02:37:24154 "file_descriptor_info_impl.cc",
155 "file_descriptor_info_impl.h",
156 ]
[email protected]97865022014-06-13 23:18:04157 sources -= [ "renderer_host/web_input_event_aurawin.cc" ]
[email protected]4db51ec2014-05-29 21:08:32158 }
159
James Robinson060f2e32014-09-10 22:31:37160 if (!is_win && !is_mac && !is_android && (!is_linux || !use_udev)) {
[email protected]743530f2014-06-12 19:38:50161 sources += [ "gamepad/gamepad_platform_data_fetcher.cc" ]
[email protected]4db51ec2014-05-29 21:08:32162 }
163
vitalybuka93eea402014-11-05 23:47:15164 if (enable_basic_printing || enable_print_preview) {
[email protected]743530f2014-06-12 19:38:50165 deps += [ "//printing" ]
[email protected]4db51ec2014-05-29 21:08:32166 }
167
jamb3c1195df2016-03-21 20:41:29168 if (!is_mac) {
[email protected]743530f2014-06-12 19:38:50169 deps += [ "//sandbox" ]
170 }
jamb3c1195df2016-03-21 20:41:29171 if (!is_android) {
[email protected]97865022014-06-13 23:18:04172 deps += [ "//content/browser/tracing:resources" ]
[email protected]743530f2014-06-12 19:38:50173 }
charlieab9973242016-02-02 16:22:16174 if ((use_udev && is_posix) || is_mac || is_win) {
175 deps += [ "//tools/battor_agent:battor_agent_lib" ]
176 sources += [
177 "tracing/power_tracing_agent.cc",
178 "tracing/power_tracing_agent.h",
179 ]
180 }
[email protected]743530f2014-06-12 19:38:50181
182 if (enable_webrtc) {
183 sources += rebase_path(content_browser_gypi_values.webrtc_browser_sources,
scottmg7afc4092014-12-03 19:22:42184 ".",
185 "//content")
brettwf94a6cd2016-01-28 23:57:29186 deps += [
187 "//jingle:jingle_glue",
188 "//third_party/libjingle:libjingle_webrtc",
mbjorgecbac8082016-04-21 01:14:23189 "//third_party/webrtc",
190 "//third_party/webrtc/base:rtc_base",
191 "//third_party/webrtc/modules/desktop_capture:primitives",
brettwf94a6cd2016-01-28 23:57:29192 ]
[email protected]743530f2014-06-12 19:38:50193 if (is_linux || is_mac || is_win) {
194 sources += [
195 "media/capture/desktop_capture_device.cc",
196 "media/capture/desktop_capture_device.h",
[email protected]743530f2014-06-12 19:38:50197 ]
[email protected]c528d872014-06-27 03:17:16198 if (use_aura) {
199 sources += [
robert.bradford8a244ea2015-03-17 19:12:46200 "media/capture/aura_window_capture_machine.cc",
201 "media/capture/aura_window_capture_machine.h",
[email protected]c528d872014-06-27 03:17:16202 "media/capture/desktop_capture_device_aura.cc",
203 "media/capture/desktop_capture_device_aura.h",
204 ]
205 }
[email protected]743530f2014-06-12 19:38:50206 defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
Brett Wilson83fd4242014-09-02 19:45:33207 deps += [ "//third_party/webrtc/modules/desktop_capture" ]
[email protected]743530f2014-06-12 19:38:50208 }
209 }
210
211 if (is_win) {
212 sources -= [
213 "device_sensors/data_fetcher_shared_memory_default.cc",
214 "geolocation/empty_wifi_data_provider.cc",
215 ]
216 defines += [
217 # This prevents the inclusion of atlhost.h which paired
218 # with the windows 8 sdk it does the wrong thing.
219 "__ATLHOST_H__",
220 ]
221 deps += [
[email protected]bf94f9d2014-06-17 20:33:53222 "//third_party/iaccessible2",
223 "//third_party/isimpledom",
[email protected]743530f2014-06-12 19:38:50224 ]
225 libs += [
226 "comctl32.lib",
227 "dinput8.lib",
228 "dwmapi.lib",
229 "dxguid.lib",
jam6ce80492016-03-22 22:00:21230 "imm32.lib",
brettw44a5cf82015-04-08 19:48:22231 "oleacc.lib",
[email protected]743530f2014-06-12 19:38:50232 "sensorsapi.lib",
233 "portabledeviceguids.lib",
234 ]
scottmg7afc4092014-12-03 19:22:42235
[email protected]743530f2014-06-12 19:38:50236 # TODI(GYP)
scottmg7afc4092014-12-03 19:22:42237 # 'msvs_settings': {
238 # 'VCLinkerTool': {
239 # 'DelayLoadDLLs': [
240 # 'dinput8.dll',
241 # 'user32.dll',
242 # 'dwmapi.dll',
243 # ],
[email protected]743530f2014-06-12 19:38:50244 }
245
[email protected]743530f2014-06-12 19:38:50246 if (use_udev) {
mcasas9d2063682016-02-11 22:12:39247 deps += [
248 "//device/udev_linux",
mcasasf261a502016-02-26 23:40:33249 "//media/capture",
[email protected]743530f2014-06-12 19:38:50250 ]
mcasas9d2063682016-02-11 22:12:39251 } else {
[email protected]97865022014-06-13 23:18:04252 if (is_linux) {
mcasas9d2063682016-02-11 22:12:39253 sources -= [ "gamepad/gamepad_platform_data_fetcher_linux.cc" ]
[email protected]97865022014-06-13 23:18:04254 }
[email protected]743530f2014-06-12 19:38:50255 }
256
257 if (enable_plugins) {
258 sources += rebase_path(content_browser_gypi_values.plugin_browser_sources,
scottmg7afc4092014-12-03 19:22:42259 ".",
260 "//content")
[email protected]743530f2014-06-12 19:38:50261 deps += [
tmoniuszko6cddaa92015-06-10 07:51:34262 "//ppapi/host",
jbroman79c079be2016-04-20 00:17:27263 "//ppapi/proxy",
brettwf7eb6ca2015-02-14 01:37:31264 "//ppapi/proxy:ipc",
265 "//ppapi/shared_impl",
[email protected]743530f2014-06-12 19:38:50266 ]
267 if (!use_ozone || use_pango) {
268 sources -= [ "renderer_host/pepper/pepper_truetype_font_list_ozone.cc" ]
269 }
[email protected]c528d872014-06-27 03:17:16270 if (!use_pango) {
271 sources -= [ "renderer_host/pepper/pepper_truetype_font_list_pango.cc" ]
272 }
[email protected]743530f2014-06-12 19:38:50273 }
274
shreeram.k792fba032015-07-20 11:43:37275 if (use_atk) {
276 sources +=
277 rebase_path(content_browser_gypi_values.auralinux_browser_sources,
278 ".",
279 "//content")
280
281 configs += [
agrieve95ba4442016-04-25 15:47:13282 "//build/config/linux/atk",
283 "//build/config/linux/atk:warnings",
284 "//build/config/linux/gconf",
shreeram.k792fba032015-07-20 11:43:37285 "//build/config/linux:glib",
286 ]
287 }
288
[email protected]743530f2014-06-12 19:38:50289 if (is_linux && use_aura) {
slan17e5ce7f2015-09-25 00:04:45290 deps += [ "//build/linux:fontconfig" ]
[email protected]743530f2014-06-12 19:38:50291 }
292
293 if (use_x11) {
294 configs += [ "//build/config/linux:x11" ]
jamesr4359db72015-01-21 12:40:00295 deps += [ "//ui/gfx/x" ]
cmasonedb5203e2014-09-11 18:18:38296 }
297
ppi2438a3e2014-10-28 21:55:10298 # Dealing with *wifi_data_provider_*.cc is also a bit complicated given
299 # android, chromeos, linux and use_dbus.
leviw86b6face2014-10-27 18:56:07300 if (is_android) {
301 sources -= [ "geolocation/wifi_data_provider_common.cc" ]
ppi9e6d2382014-10-27 16:48:16302 }
ppi2438a3e2014-10-28 21:55:10303 if (is_chromeos || (is_linux && !use_dbus)) {
304 sources -= [ "geolocation/wifi_data_provider_linux.cc" ]
305 }
cmasonedb5203e2014-09-11 18:18:38306 if (is_linux && use_dbus) {
307 sources -= [ "geolocation/empty_wifi_data_provider.cc" ]
[email protected]743530f2014-06-12 19:38:50308 }
309
310 if (use_pango) {
agrieve95ba4442016-04-25 15:47:13311 configs += [ "//build/config/linux/pangocairo" ]
[email protected]743530f2014-06-12 19:38:50312 }
313
314 if (is_android) {
315 sources += rebase_path(content_browser_gypi_values.android_browser_sources,
scottmg7afc4092014-12-03 19:22:42316 ".",
317 "//content")
[email protected]743530f2014-06-12 19:38:50318 sources -= [
[email protected]743530f2014-06-12 19:38:50319 "browser_ipc_logging.cc",
320 "device_sensors/data_fetcher_shared_memory_default.cc",
[email protected]743530f2014-06-12 19:38:50321 "geolocation/network_location_provider.cc",
322 "geolocation/network_location_provider.h",
323 "geolocation/network_location_request.cc",
324 "geolocation/network_location_request.h",
mlamouri918734092016-03-12 04:47:52325 "media/session/media_session_delegate_default.cc",
leon.han4e5d8102015-09-02 07:12:00326 "power_usage_monitor_impl.cc",
327 "power_usage_monitor_impl.h",
[email protected]743530f2014-06-12 19:38:50328 "tracing/tracing_ui.cc",
329 "tracing/tracing_ui.h",
330
331 # Android skips most, but not all, of the speech code.
332 "speech/audio_buffer.cc",
333 "speech/audio_buffer.h",
334 "speech/audio_encoder.cc",
335 "speech/audio_encoder.h",
336 "speech/chunked_byte_buffer.cc",
337 "speech/chunked_byte_buffer.h",
338 "speech/endpointer/endpointer.cc",
339 "speech/endpointer/endpointer.h",
340 "speech/endpointer/energy_endpointer.cc",
341 "speech/endpointer/energy_endpointer.h",
342 "speech/endpointer/energy_endpointer_params.cc",
343 "speech/endpointer/energy_endpointer_params.h",
[email protected]743530f2014-06-12 19:38:50344 "speech/speech_recognition_engine.cc",
345 "speech/speech_recognition_engine.h",
346 "speech/speech_recognizer_impl.cc",
347 "speech/speech_recognizer_impl.h",
348 ]
leon.han4e5d8102015-09-02 07:12:00349 deps -= [ "//device/battery" ]
[email protected]743530f2014-06-12 19:38:50350 deps += [
James Robinson060f2e32014-09-10 22:31:37351 "//content/public/android:jni",
[email protected]d7e69fa2014-07-24 21:19:28352 "//media",
mcasase40d7522016-06-21 16:11:40353 "//media/capture/video/android",
xhwang952e02352015-11-25 09:12:42354 "//media/mojo/interfaces",
cjhopmanaac45ed82014-10-17 22:08:19355 "//mojo/android:libsystem_java",
mfomitcheve12a6c5a2016-01-28 00:22:34356 "//ui/android",
[email protected]743530f2014-06-12 19:38:50357 ]
pkotwiczefafec132015-10-22 20:23:00358 defines += [ "APPCACHE_USE_SIMPLE_CACHE" ]
[email protected]743530f2014-06-12 19:38:50359 libs += [ "jnigraphics" ]
360 }
361
362 if (is_mac) {
363 sources -= [
364 "device_sensors/data_fetcher_shared_memory_default.cc",
365 "geolocation/empty_wifi_data_provider.cc",
366 "geolocation/empty_wifi_data_provider.h",
367 ]
jiangj2bd42fd2015-04-18 13:29:06368 deps += [
rsesek02aa51c2016-05-11 02:13:57369 "//media",
jiangj2bd42fd2015-04-18 13:29:06370 "//sandbox/mac:sandbox",
371 "//third_party/mozilla",
372 "//third_party/sudden_motion_sensor",
373 "//ui/accelerated_widget_mac",
374 ]
rsesek02aa51c2016-05-11 02:13:57375 libs += [
376 "Carbon.framework",
377 "QuartzCore.framework",
378 "IOSurface.framework",
379 ]
[email protected]743530f2014-06-12 19:38:50380 }
381
382 if (is_chromeos) {
jonrossa6725f12015-02-05 00:52:53383 sources -= [ "device_sensors/data_fetcher_shared_memory_default.cc" ]
mukai2dc70ed32014-10-29 01:01:43384 deps += [
385 "//chromeos",
386 "//chromeos:power_manager_proto",
387 ]
[email protected]743530f2014-06-12 19:38:50388 }
389
390 if (use_aura) {
391 deps += [
fsamuel9cf7bdf2015-11-20 02:19:32392 "//components/bitmap_uploader",
fsamuel6c6da0232015-11-26 05:13:46393 "//components/mus/public/cpp",
394 "//components/mus/public/interfaces",
[email protected]743530f2014-06-12 19:38:50395 "//ui/aura",
mohsen166a9182015-02-09 18:19:09396 "//ui/aura_extra",
[email protected]743530f2014-06-12 19:38:50397 "//ui/strings",
James Robinson060f2e32014-09-10 22:31:37398 "//ui/wm",
[email protected]743530f2014-06-12 19:38:50399 ]
rjkroegec109de612015-11-19 01:40:47400 sources += [
401 "compositor/software_output_device_mus.cc",
402 "compositor/software_output_device_mus.h",
fsamuel402274e2015-11-22 23:38:03403 "renderer_host/render_widget_host_view_mus.cc",
404 "renderer_host/render_widget_host_view_mus.h",
fsamuel9cf7bdf2015-11-20 02:19:32405 "web_contents/web_contents_view_mus.cc",
406 "web_contents/web_contents_view_mus.h",
rjkroegec109de612015-11-19 01:40:47407 ]
altimin8e78a342015-12-01 11:34:33408 if (toolkit_views) {
altimin8e78a342015-12-01 11:34:33409 defines += [ "MOJO_RUNNER_CLIENT" ]
410 }
[email protected]743530f2014-06-12 19:38:50411 } else { # Not aura.
412 sources -= [
isheriff727606c2015-11-10 23:46:57413 "media/capture/cursor_renderer_aura.cc",
414 "media/capture/cursor_renderer_aura.h",
isheriff70bcae42015-12-09 21:41:28415 "media/capture/window_activity_tracker_aura.cc",
416 "media/capture/window_activity_tracker_aura.h",
jiangj2bd42fd2015-04-18 13:29:06417 "renderer_host/compositor_resize_lock_aura.cc",
418 "renderer_host/compositor_resize_lock_aura.h",
[email protected]c528d872014-06-27 03:17:16419 "renderer_host/input/synthetic_gesture_target_aura.cc",
420 "renderer_host/input/synthetic_gesture_target_aura.h",
mohsenb0eeba72015-08-09 06:20:08421 "renderer_host/input/touch_selection_controller_client_aura.cc",
422 "renderer_host/input/touch_selection_controller_client_aura.h",
[email protected]c528d872014-06-27 03:17:16423 "renderer_host/native_web_keyboard_event_aura.cc",
[email protected]743530f2014-06-12 19:38:50424 "renderer_host/render_widget_host_view_aura.cc",
425 "renderer_host/render_widget_host_view_aura.h",
[email protected]743530f2014-06-12 19:38:50426 "renderer_host/ui_events_helper.cc",
427 "renderer_host/ui_events_helper.h",
[email protected]c528d872014-06-27 03:17:16428 "renderer_host/web_input_event_aura.cc",
429 "renderer_host/web_input_event_aura.h",
430 "web_contents/aura/gesture_nav_simple.cc",
431 "web_contents/aura/gesture_nav_simple.h",
[email protected]c528d872014-06-27 03:17:16432 "web_contents/aura/overscroll_navigation_overlay.cc",
433 "web_contents/aura/overscroll_navigation_overlay.h",
nsatragnoc0b2fa52015-04-09 22:30:51434 "web_contents/aura/overscroll_window_animation.cc",
435 "web_contents/aura/overscroll_window_animation.h",
436 "web_contents/aura/overscroll_window_delegate.cc",
437 "web_contents/aura/overscroll_window_delegate.h",
[email protected]c528d872014-06-27 03:17:16438 "web_contents/aura/shadow_layer_delegate.cc",
439 "web_contents/aura/shadow_layer_delegate.h",
[email protected]c528d872014-06-27 03:17:16440 "web_contents/web_contents_view_aura.cc",
441 "web_contents/web_contents_view_aura.h",
[email protected]743530f2014-06-12 19:38:50442 ]
443 }
444
445 if (use_aura || is_mac) {
scottmg7afc4092014-12-03 19:22:42446 sources +=
447 rebase_path(content_browser_gypi_values.compositor_browser_sources,
448 ".",
449 "//content")
sohan.jyoti86c41c72016-04-26 15:33:20450 if (enable_vulkan) {
451 sources += [
452 "compositor/vulkan_browser_compositor_output_surface.cc",
453 "compositor/vulkan_browser_compositor_output_surface.h",
454 ]
455 }
[email protected]886323c2014-06-14 20:34:16456 if (!use_x11) {
457 sources -= [
458 "compositor/software_output_device_x11.cc",
459 "compositor/software_output_device_x11.h",
460 ]
461 }
[email protected]743530f2014-06-12 19:38:50462
[email protected]b1867c92014-08-13 00:22:04463 if (!use_ozone) {
464 sources -= [
[email protected]b1867c92014-08-13 00:22:04465 "compositor/software_output_device_ozone.cc",
466 "compositor/software_output_device_ozone.h",
467 ]
468 }
469 deps += [ "//ui/compositor" ]
[email protected]604b1272014-07-24 11:27:53470 }
471
[email protected]418653fdf2014-07-02 07:38:21472 if (enable_web_speech) {
tfarina152a9722015-07-28 04:03:45473 deps += [ "//third_party/flac" ]
[email protected]743530f2014-06-12 19:38:50474 }
475
cmasonedb5203e2014-09-11 18:18:38476 if (is_linux && use_dbus) {
ppi2438a3e2014-10-28 21:55:10477 deps += [ "//dbus" ]
[email protected]743530f2014-06-12 19:38:50478 }
cjhopman2fd48fd2014-09-24 00:52:56479
480 if (enable_browser_cdms) {
481 sources += [
482 "media/cdm/browser_cdm_manager.cc",
483 "media/cdm/browser_cdm_manager.h",
cjhopman2fd48fd2014-09-24 00:52:56484 ]
485 }
davidbenb983d4b2015-01-07 16:39:44486
davidbenee55ed442015-10-02 17:06:11487 if (is_linux) {
davidbenb983d4b2015-01-07 16:39:44488 deps += [ "//third_party/boringssl" ]
489 }
xhwange6117332015-01-28 08:51:16490
xhwangbe720032016-02-19 18:45:31491 if (enable_mojo_media) {
492 configs += [ "//media/mojo/services:mojo_media_config" ]
xhwangfb22df12015-10-13 23:13:46493 }
494
jbroman79c079be2016-04-20 00:17:27495 if (use_ozone) {
496 deps += [ "//ui/ozone" ]
497 }
pimana333e3d2016-04-27 02:37:25498
499 if (!is_mac && !is_android) {
500 sources -= [
501 "gpu/gpu_surface_tracker.cc",
502 "gpu/gpu_surface_tracker.h",
503 ]
504 }
bajones98f96522016-06-03 22:43:57505
506 if (enable_webvr) {
507 deps += [ "//device/vr" ]
508 }
ochangdd89a1e2016-06-08 16:39:01509
510 if (enable_ipc_fuzzer) {
511 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ]
512 }
[email protected]4db51ec2014-05-29 21:08:32513}
ben66696d12016-03-08 17:48:00514
brettwb78fc9e2016-03-25 21:02:51515# See comment at the top of //content/BUILD.gn for how this works.
516group("for_content_tests") {
517 visibility = [ "//content/test/*" ]
518 if (!is_component_build) {
519 public_deps = [
520 ":browser",
521 ]
jam447407fb2016-05-06 17:57:40522 } else {
523 public_deps = [
524 "//third_party/leveldatabase",
525 ]
brettwb78fc9e2016-03-25 21:02:51526 }
527}