[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 1 | # 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 | |
| 5 | import("//build/config/features.gni") |
| 6 | import("//build/config/ui.gni") |
| 7 | import("//content/browser/browser.gni") |
cjhopman | 2fd48fd | 2014-09-24 00:52:56 | [diff] [blame] | 8 | import("//media/media_options.gni") |
ochang | dd89a1e | 2016-06-08 16:39:01 | [diff] [blame] | 9 | import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 10 | |
| 11 | source_set("browser") { |
Brett Wilson | 8f132304 | 2014-09-11 16:58:56 | [diff] [blame] | 12 | # Only the public target should depend on this. All other targets (even |
| 13 | # internal content ones) should depend on the public one. |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 14 | visibility = [ |
| 15 | ":for_content_tests", # See top of //content/BUILD.gn for why. |
| 16 | "//content/public/browser:browser_sources", |
| 17 | ] |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 18 | |
ben | 3f5f999 | 2015-11-19 10:38:30 | [diff] [blame] | 19 | configs += [ |
| 20 | "//build/config:precompiled_headers", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 21 | "//content:content_implementation", |
ben | 3f5f999 | 2015-11-19 10:38:30 | [diff] [blame] | 22 | "//content/public/common:mojo_shell_client", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 23 | "//third_party/WebKit/public:debug_devtools", |
| 24 | "//v8:external_startup_data", |
ben | 3f5f999 | 2015-11-19 10:38:30 | [diff] [blame] | 25 | ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 26 | defines = [] |
| 27 | libs = [] |
| 28 | ldflags = [] |
[email protected] | 9786502 | 2014-06-13 23:18:04 | [diff] [blame] | 29 | |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 30 | deps = [ |
| 31 | "//base", |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 32 | "//base:base_static", |
brettw | c15ed73 | 2016-03-21 23:14:29 | [diff] [blame] | 33 | "//base/third_party/dynamic_annotations", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 34 | "//cc", |
| 35 | "//cc/surfaces", |
fsamuel | 540b8c1 | 2016-04-21 18:47:10 | [diff] [blame] | 36 | "//components/display_compositor", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 37 | "//components/filesystem:lib", |
| 38 | "//components/leveldb:lib", |
mek | 9b28f42 | 2016-05-13 21:46:23 | [diff] [blame] | 39 | "//components/link_header_util", |
rsleevi | c327b48f8 | 2015-04-30 02:03:25 | [diff] [blame] | 40 | "//components/mime_util", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 41 | "//components/scheduler:common", |
brettw | c15ed73 | 2016-03-21 23:14:29 | [diff] [blame] | 42 | "//components/tracing", |
| 43 | "//components/tracing:startup_tracing", |
rsleevi | 24f64dc2 | 2015-08-07 21:39:21 | [diff] [blame] | 44 | "//components/url_formatter", |
[email protected] | d28b3cb8 | 2014-05-31 04:46:18 | [diff] [blame] | 45 | "//content:resources", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 46 | "//content/app/resources", |
| 47 | "//content/app/strings", |
jkarlin | 34ee23cf | 2015-03-26 13:58:50 | [diff] [blame] | 48 | "//content/browser/background_sync:background_sync_proto", |
jsbell | 279efb4 | 2015-03-31 17:02:46 | [diff] [blame] | 49 | "//content/browser/cache_storage:cache_storage_proto", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 50 | "//content/browser/devtools:gen_devtools_protocol_handler", |
| 51 | "//content/browser/devtools:resources", |
peter | 05cb4db | 2015-03-13 14:33:38 | [diff] [blame] | 52 | "//content/browser/notifications:notification_proto", |
jkarlin | d678ae4b | 2015-01-27 15:04:53 | [diff] [blame] | 53 | "//content/browser/service_worker:service_worker_proto", |
[email protected] | b506cdf | 2014-06-09 17:13:21 | [diff] [blame] | 54 | "//content/browser/speech/proto", |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 55 | "//content/common", |
Brett Wilson | 8f132304 | 2014-09-11 16:58:56 | [diff] [blame] | 56 | "//content/public/common:common_sources", |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 57 | "//crypto", |
ppi | 2438a3e | 2014-10-28 21:55:10 | [diff] [blame] | 58 | "//device/battery", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 59 | "//device/bluetooth", |
scottmg | c40e882 | 2016-06-17 17:57:48 | [diff] [blame] | 60 | "//device/power_save_blocker", |
timvolodine | 8e29c14 | 2014-12-06 13:49:01 | [diff] [blame] | 61 | "//device/vibration", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 62 | "//gin", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 63 | "//google_apis", |
brettw | c15ed73 | 2016-03-21 23:14:29 | [diff] [blame] | 64 | "//gpu", |
| 65 | "//gpu/command_buffer/client:gles2_implementation", |
jbroman | 84ba684 | 2016-04-28 00:34:50 | [diff] [blame] | 66 | "//gpu/command_buffer/client:gles2_interface", |
brettw | c15ed73 | 2016-03-21 23:14:29 | [diff] [blame] | 67 | "//ipc/mojo", |
| 68 | "//media", |
mcasas | e40d752 | 2016-06-21 16:11:40 | [diff] [blame^] | 69 | "//media/capture", |
jbroman | 79c079be | 2016-04-20 00:17:27 | [diff] [blame] | 70 | "//media/gpu/ipc/client", |
brettw | c15ed73 | 2016-03-21 23:14:29 | [diff] [blame] | 71 | "//media/midi", |
mcasas | afcfc05 | 2016-06-06 20:47:47 | [diff] [blame] | 72 | "//media/mojo/interfaces:image_capture", |
rockot | b814a58 | 2015-06-05 00:30:52 | [diff] [blame] | 73 | "//mojo/common", |
amistry | cafcdff | 2016-06-17 03:33:48 | [diff] [blame] | 74 | "//mojo/edk/system", |
rockot | 85dce086 | 2015-11-13 01:33:59 | [diff] [blame] | 75 | "//mojo/public/cpp/bindings", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 76 | "//mojo/public/js", |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 77 | "//net", |
rohitrao | 1860223c | 2015-05-16 01:07:14 | [diff] [blame] | 78 | "//net:extras", |
ben | f709a309 | 2016-04-12 22:38:22 | [diff] [blame] | 79 | "//services/shell", |
rockot | e98fa42c | 2016-05-15 03:22:10 | [diff] [blame] | 80 | "//services/shell/public/cpp", |
ben | f709a309 | 2016-04-12 22:38:22 | [diff] [blame] | 81 | "//services/shell/public/interfaces", |
| 82 | "//services/shell/runner/common", |
| 83 | "//services/shell/runner/host:lib", |
ben | dbc8f97 | 2016-04-13 22:29:30 | [diff] [blame] | 84 | "//services/user:lib", |
| 85 | "//services/user/public/cpp", |
jbroman | 79c079be | 2016-04-20 00:17:27 | [diff] [blame] | 86 | "//services/user/public/interfaces", |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 87 | "//skia", |
| 88 | "//sql", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 89 | "//storage/browser", |
| 90 | "//storage/common", |
fsamuel | 9cf7bdf | 2015-11-20 02:19:32 | [diff] [blame] | 91 | "//third_party/WebKit/public:blink_headers", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 92 | "//third_party/WebKit/public:image_resources", |
juncai | 30a0e93 | 2016-05-11 00:09:51 | [diff] [blame] | 93 | "//third_party/WebKit/public:mojo_bindings", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 94 | "//third_party/WebKit/public:resources", |
jbroman | 79c079be | 2016-04-20 00:17:27 | [diff] [blame] | 95 | "//third_party/angle:angle_common", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 96 | "//third_party/icu", |
brettw | d0a794a | 2016-01-11 19:38:34 | [diff] [blame] | 97 | "//third_party/kasko:kasko_features", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 98 | "//third_party/libyuv", |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 99 | "//third_party/re2", |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 100 | "//third_party/zlib", |
| 101 | "//third_party/zlib:zip", |
| 102 | "//ui/accessibility", |
| 103 | "//ui/accessibility:ax_gen", |
[email protected] | 52140d88 | 2014-05-30 19:22:40 | [diff] [blame] | 104 | "//ui/base", |
spang | 1c36fac | 2015-02-05 19:55:12 | [diff] [blame] | 105 | "//ui/base/ime", |
robliao | 8d63729c | 2016-03-29 17:49:47 | [diff] [blame] | 106 | "//ui/display", |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 107 | "//ui/events", |
| 108 | "//ui/events:gesture_detection", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 109 | "//ui/events/blink", |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 110 | "//ui/gfx", |
| 111 | "//ui/gfx/geometry", |
ben | 7a77e85 | 2016-05-26 05:50:44 | [diff] [blame] | 112 | "//ui/gfx/geometry/mojo", |
Brett Wilson | e748794 | 2014-09-09 23:37:29 | [diff] [blame] | 113 | "//ui/gl", |
| 114 | "//ui/native_theme", |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 115 | "//ui/resources", |
brettw | c15ed73 | 2016-03-21 23:14:29 | [diff] [blame] | 116 | "//ui/shell_dialogs", |
[email protected] | d28b3cb8 | 2014-05-31 04:46:18 | [diff] [blame] | 117 | "//ui/snapshot", |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 118 | "//ui/surface", |
| 119 | "//ui/touch_selection", |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 120 | ] |
| 121 | |
jam | 447407fb | 2016-05-06 17:57:40 | [diff] [blame] | 122 | public_deps = [ |
| 123 | "//third_party/leveldatabase", |
| 124 | ] |
| 125 | |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 126 | sources = rebase_path(content_browser_gypi_values.private_browser_sources, |
| 127 | ".", |
| 128 | "//content") |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 129 | |
brettw | 57399c5 | 2016-05-10 18:34:05 | [diff] [blame] | 130 | # 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? |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 135 | # |
| 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] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 147 | |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 148 | if (toolkit_views) { |
| 149 | deps += [ "//ui/events" ] |
| 150 | } |
| 151 | |
dgozman | 9d8f818 | 2015-10-12 23:38:56 | [diff] [blame] | 152 | if (!is_win) { |
morrita | d95714f | 2014-10-01 02:37:24 | [diff] [blame] | 153 | sources += [ |
morrita | d95714f | 2014-10-01 02:37:24 | [diff] [blame] | 154 | "file_descriptor_info_impl.cc", |
| 155 | "file_descriptor_info_impl.h", |
| 156 | ] |
[email protected] | 9786502 | 2014-06-13 23:18:04 | [diff] [blame] | 157 | sources -= [ "renderer_host/web_input_event_aurawin.cc" ] |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 158 | } |
| 159 | |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 160 | if (!is_win && !is_mac && !is_android && (!is_linux || !use_udev)) { |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 161 | sources += [ "gamepad/gamepad_platform_data_fetcher.cc" ] |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 162 | } |
| 163 | |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 164 | if (enable_basic_printing || enable_print_preview) { |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 165 | deps += [ "//printing" ] |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 166 | } |
| 167 | |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 168 | if (!is_mac) { |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 169 | deps += [ "//sandbox" ] |
| 170 | } |
jam | b3c1195df | 2016-03-21 20:41:29 | [diff] [blame] | 171 | if (!is_android) { |
[email protected] | 9786502 | 2014-06-13 23:18:04 | [diff] [blame] | 172 | deps += [ "//content/browser/tracing:resources" ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 173 | } |
charliea | b997324 | 2016-02-02 16:22:16 | [diff] [blame] | 174 | 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] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 181 | |
| 182 | if (enable_webrtc) { |
| 183 | sources += rebase_path(content_browser_gypi_values.webrtc_browser_sources, |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 184 | ".", |
| 185 | "//content") |
brettw | f94a6cd | 2016-01-28 23:57:29 | [diff] [blame] | 186 | deps += [ |
| 187 | "//jingle:jingle_glue", |
| 188 | "//third_party/libjingle:libjingle_webrtc", |
mbjorge | cbac808 | 2016-04-21 01:14:23 | [diff] [blame] | 189 | "//third_party/webrtc", |
| 190 | "//third_party/webrtc/base:rtc_base", |
| 191 | "//third_party/webrtc/modules/desktop_capture:primitives", |
brettw | f94a6cd | 2016-01-28 23:57:29 | [diff] [blame] | 192 | ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 193 | 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] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 197 | ] |
[email protected] | c528d87 | 2014-06-27 03:17:16 | [diff] [blame] | 198 | if (use_aura) { |
| 199 | sources += [ |
robert.bradford | 8a244ea | 2015-03-17 19:12:46 | [diff] [blame] | 200 | "media/capture/aura_window_capture_machine.cc", |
| 201 | "media/capture/aura_window_capture_machine.h", |
[email protected] | c528d87 | 2014-06-27 03:17:16 | [diff] [blame] | 202 | "media/capture/desktop_capture_device_aura.cc", |
| 203 | "media/capture/desktop_capture_device_aura.h", |
| 204 | ] |
| 205 | } |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 206 | defines += [ "ENABLE_SCREEN_CAPTURE=1" ] |
Brett Wilson | 83fd424 | 2014-09-02 19:45:33 | [diff] [blame] | 207 | deps += [ "//third_party/webrtc/modules/desktop_capture" ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 208 | } |
| 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] | bf94f9d | 2014-06-17 20:33:53 | [diff] [blame] | 222 | "//third_party/iaccessible2", |
| 223 | "//third_party/isimpledom", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 224 | ] |
| 225 | libs += [ |
| 226 | "comctl32.lib", |
| 227 | "dinput8.lib", |
| 228 | "dwmapi.lib", |
| 229 | "dxguid.lib", |
jam | 6ce8049 | 2016-03-22 22:00:21 | [diff] [blame] | 230 | "imm32.lib", |
brettw | 44a5cf8 | 2015-04-08 19:48:22 | [diff] [blame] | 231 | "oleacc.lib", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 232 | "sensorsapi.lib", |
| 233 | "portabledeviceguids.lib", |
| 234 | ] |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 235 | |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 236 | # TODI(GYP) |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 237 | # 'msvs_settings': { |
| 238 | # 'VCLinkerTool': { |
| 239 | # 'DelayLoadDLLs': [ |
| 240 | # 'dinput8.dll', |
| 241 | # 'user32.dll', |
| 242 | # 'dwmapi.dll', |
| 243 | # ], |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 244 | } |
| 245 | |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 246 | if (use_udev) { |
mcasas | 9d206368 | 2016-02-11 22:12:39 | [diff] [blame] | 247 | deps += [ |
| 248 | "//device/udev_linux", |
mcasas | f261a50 | 2016-02-26 23:40:33 | [diff] [blame] | 249 | "//media/capture", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 250 | ] |
mcasas | 9d206368 | 2016-02-11 22:12:39 | [diff] [blame] | 251 | } else { |
[email protected] | 9786502 | 2014-06-13 23:18:04 | [diff] [blame] | 252 | if (is_linux) { |
mcasas | 9d206368 | 2016-02-11 22:12:39 | [diff] [blame] | 253 | sources -= [ "gamepad/gamepad_platform_data_fetcher_linux.cc" ] |
[email protected] | 9786502 | 2014-06-13 23:18:04 | [diff] [blame] | 254 | } |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 255 | } |
| 256 | |
| 257 | if (enable_plugins) { |
| 258 | sources += rebase_path(content_browser_gypi_values.plugin_browser_sources, |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 259 | ".", |
| 260 | "//content") |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 261 | deps += [ |
tmoniuszko | 6cddaa9 | 2015-06-10 07:51:34 | [diff] [blame] | 262 | "//ppapi/host", |
jbroman | 79c079be | 2016-04-20 00:17:27 | [diff] [blame] | 263 | "//ppapi/proxy", |
brettw | f7eb6ca | 2015-02-14 01:37:31 | [diff] [blame] | 264 | "//ppapi/proxy:ipc", |
| 265 | "//ppapi/shared_impl", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 266 | ] |
| 267 | if (!use_ozone || use_pango) { |
| 268 | sources -= [ "renderer_host/pepper/pepper_truetype_font_list_ozone.cc" ] |
| 269 | } |
[email protected] | c528d87 | 2014-06-27 03:17:16 | [diff] [blame] | 270 | if (!use_pango) { |
| 271 | sources -= [ "renderer_host/pepper/pepper_truetype_font_list_pango.cc" ] |
| 272 | } |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 273 | } |
| 274 | |
shreeram.k | 792fba03 | 2015-07-20 11:43:37 | [diff] [blame] | 275 | if (use_atk) { |
| 276 | sources += |
| 277 | rebase_path(content_browser_gypi_values.auralinux_browser_sources, |
| 278 | ".", |
| 279 | "//content") |
| 280 | |
| 281 | configs += [ |
agrieve | 95ba444 | 2016-04-25 15:47:13 | [diff] [blame] | 282 | "//build/config/linux/atk", |
| 283 | "//build/config/linux/atk:warnings", |
| 284 | "//build/config/linux/gconf", |
shreeram.k | 792fba03 | 2015-07-20 11:43:37 | [diff] [blame] | 285 | "//build/config/linux:glib", |
| 286 | ] |
| 287 | } |
| 288 | |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 289 | if (is_linux && use_aura) { |
slan | 17e5ce7f | 2015-09-25 00:04:45 | [diff] [blame] | 290 | deps += [ "//build/linux:fontconfig" ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 291 | } |
| 292 | |
| 293 | if (use_x11) { |
| 294 | configs += [ "//build/config/linux:x11" ] |
jamesr | 4359db7 | 2015-01-21 12:40:00 | [diff] [blame] | 295 | deps += [ "//ui/gfx/x" ] |
cmasone | db5203e | 2014-09-11 18:18:38 | [diff] [blame] | 296 | } |
| 297 | |
ppi | 2438a3e | 2014-10-28 21:55:10 | [diff] [blame] | 298 | # Dealing with *wifi_data_provider_*.cc is also a bit complicated given |
| 299 | # android, chromeos, linux and use_dbus. |
leviw | 86b6face | 2014-10-27 18:56:07 | [diff] [blame] | 300 | if (is_android) { |
| 301 | sources -= [ "geolocation/wifi_data_provider_common.cc" ] |
ppi | 9e6d238 | 2014-10-27 16:48:16 | [diff] [blame] | 302 | } |
ppi | 2438a3e | 2014-10-28 21:55:10 | [diff] [blame] | 303 | if (is_chromeos || (is_linux && !use_dbus)) { |
| 304 | sources -= [ "geolocation/wifi_data_provider_linux.cc" ] |
| 305 | } |
cmasone | db5203e | 2014-09-11 18:18:38 | [diff] [blame] | 306 | if (is_linux && use_dbus) { |
| 307 | sources -= [ "geolocation/empty_wifi_data_provider.cc" ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 308 | } |
| 309 | |
| 310 | if (use_pango) { |
agrieve | 95ba444 | 2016-04-25 15:47:13 | [diff] [blame] | 311 | configs += [ "//build/config/linux/pangocairo" ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 312 | } |
| 313 | |
| 314 | if (is_android) { |
| 315 | sources += rebase_path(content_browser_gypi_values.android_browser_sources, |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 316 | ".", |
| 317 | "//content") |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 318 | sources -= [ |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 319 | "browser_ipc_logging.cc", |
| 320 | "device_sensors/data_fetcher_shared_memory_default.cc", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 321 | "geolocation/network_location_provider.cc", |
| 322 | "geolocation/network_location_provider.h", |
| 323 | "geolocation/network_location_request.cc", |
| 324 | "geolocation/network_location_request.h", |
mlamouri | 91873409 | 2016-03-12 04:47:52 | [diff] [blame] | 325 | "media/session/media_session_delegate_default.cc", |
leon.han | 4e5d810 | 2015-09-02 07:12:00 | [diff] [blame] | 326 | "power_usage_monitor_impl.cc", |
| 327 | "power_usage_monitor_impl.h", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 328 | "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] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 344 | "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.han | 4e5d810 | 2015-09-02 07:12:00 | [diff] [blame] | 349 | deps -= [ "//device/battery" ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 350 | deps += [ |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 351 | "//content/public/android:jni", |
[email protected] | d7e69fa | 2014-07-24 21:19:28 | [diff] [blame] | 352 | "//media", |
mcasas | e40d752 | 2016-06-21 16:11:40 | [diff] [blame^] | 353 | "//media/capture/video/android", |
xhwang | 952e0235 | 2015-11-25 09:12:42 | [diff] [blame] | 354 | "//media/mojo/interfaces", |
cjhopman | aac45ed8 | 2014-10-17 22:08:19 | [diff] [blame] | 355 | "//mojo/android:libsystem_java", |
mfomitchev | e12a6c5a | 2016-01-28 00:22:34 | [diff] [blame] | 356 | "//ui/android", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 357 | ] |
pkotwicz | efafec13 | 2015-10-22 20:23:00 | [diff] [blame] | 358 | defines += [ "APPCACHE_USE_SIMPLE_CACHE" ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 359 | 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 | ] |
jiangj | 2bd42fd | 2015-04-18 13:29:06 | [diff] [blame] | 368 | deps += [ |
rsesek | 02aa51c | 2016-05-11 02:13:57 | [diff] [blame] | 369 | "//media", |
jiangj | 2bd42fd | 2015-04-18 13:29:06 | [diff] [blame] | 370 | "//sandbox/mac:sandbox", |
| 371 | "//third_party/mozilla", |
| 372 | "//third_party/sudden_motion_sensor", |
| 373 | "//ui/accelerated_widget_mac", |
| 374 | ] |
rsesek | 02aa51c | 2016-05-11 02:13:57 | [diff] [blame] | 375 | libs += [ |
| 376 | "Carbon.framework", |
| 377 | "QuartzCore.framework", |
| 378 | "IOSurface.framework", |
| 379 | ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 380 | } |
| 381 | |
| 382 | if (is_chromeos) { |
jonross | a6725f1 | 2015-02-05 00:52:53 | [diff] [blame] | 383 | sources -= [ "device_sensors/data_fetcher_shared_memory_default.cc" ] |
mukai | 2dc70ed3 | 2014-10-29 01:01:43 | [diff] [blame] | 384 | deps += [ |
| 385 | "//chromeos", |
| 386 | "//chromeos:power_manager_proto", |
| 387 | ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 388 | } |
| 389 | |
| 390 | if (use_aura) { |
| 391 | deps += [ |
fsamuel | 9cf7bdf | 2015-11-20 02:19:32 | [diff] [blame] | 392 | "//components/bitmap_uploader", |
fsamuel | 6c6da023 | 2015-11-26 05:13:46 | [diff] [blame] | 393 | "//components/mus/public/cpp", |
| 394 | "//components/mus/public/interfaces", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 395 | "//ui/aura", |
mohsen | 166a918 | 2015-02-09 18:19:09 | [diff] [blame] | 396 | "//ui/aura_extra", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 397 | "//ui/strings", |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 398 | "//ui/wm", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 399 | ] |
rjkroege | c109de61 | 2015-11-19 01:40:47 | [diff] [blame] | 400 | sources += [ |
| 401 | "compositor/software_output_device_mus.cc", |
| 402 | "compositor/software_output_device_mus.h", |
fsamuel | 402274e | 2015-11-22 23:38:03 | [diff] [blame] | 403 | "renderer_host/render_widget_host_view_mus.cc", |
| 404 | "renderer_host/render_widget_host_view_mus.h", |
fsamuel | 9cf7bdf | 2015-11-20 02:19:32 | [diff] [blame] | 405 | "web_contents/web_contents_view_mus.cc", |
| 406 | "web_contents/web_contents_view_mus.h", |
rjkroege | c109de61 | 2015-11-19 01:40:47 | [diff] [blame] | 407 | ] |
altimin | 8e78a34 | 2015-12-01 11:34:33 | [diff] [blame] | 408 | if (toolkit_views) { |
altimin | 8e78a34 | 2015-12-01 11:34:33 | [diff] [blame] | 409 | defines += [ "MOJO_RUNNER_CLIENT" ] |
| 410 | } |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 411 | } else { # Not aura. |
| 412 | sources -= [ |
isheriff | 727606c | 2015-11-10 23:46:57 | [diff] [blame] | 413 | "media/capture/cursor_renderer_aura.cc", |
| 414 | "media/capture/cursor_renderer_aura.h", |
isheriff | 70bcae4 | 2015-12-09 21:41:28 | [diff] [blame] | 415 | "media/capture/window_activity_tracker_aura.cc", |
| 416 | "media/capture/window_activity_tracker_aura.h", |
jiangj | 2bd42fd | 2015-04-18 13:29:06 | [diff] [blame] | 417 | "renderer_host/compositor_resize_lock_aura.cc", |
| 418 | "renderer_host/compositor_resize_lock_aura.h", |
[email protected] | c528d87 | 2014-06-27 03:17:16 | [diff] [blame] | 419 | "renderer_host/input/synthetic_gesture_target_aura.cc", |
| 420 | "renderer_host/input/synthetic_gesture_target_aura.h", |
mohsen | b0eeba7 | 2015-08-09 06:20:08 | [diff] [blame] | 421 | "renderer_host/input/touch_selection_controller_client_aura.cc", |
| 422 | "renderer_host/input/touch_selection_controller_client_aura.h", |
[email protected] | c528d87 | 2014-06-27 03:17:16 | [diff] [blame] | 423 | "renderer_host/native_web_keyboard_event_aura.cc", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 424 | "renderer_host/render_widget_host_view_aura.cc", |
| 425 | "renderer_host/render_widget_host_view_aura.h", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 426 | "renderer_host/ui_events_helper.cc", |
| 427 | "renderer_host/ui_events_helper.h", |
[email protected] | c528d87 | 2014-06-27 03:17:16 | [diff] [blame] | 428 | "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] | c528d87 | 2014-06-27 03:17:16 | [diff] [blame] | 432 | "web_contents/aura/overscroll_navigation_overlay.cc", |
| 433 | "web_contents/aura/overscroll_navigation_overlay.h", |
nsatragno | c0b2fa5 | 2015-04-09 22:30:51 | [diff] [blame] | 434 | "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] | c528d87 | 2014-06-27 03:17:16 | [diff] [blame] | 438 | "web_contents/aura/shadow_layer_delegate.cc", |
| 439 | "web_contents/aura/shadow_layer_delegate.h", |
[email protected] | c528d87 | 2014-06-27 03:17:16 | [diff] [blame] | 440 | "web_contents/web_contents_view_aura.cc", |
| 441 | "web_contents/web_contents_view_aura.h", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 442 | ] |
| 443 | } |
| 444 | |
| 445 | if (use_aura || is_mac) { |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 446 | sources += |
| 447 | rebase_path(content_browser_gypi_values.compositor_browser_sources, |
| 448 | ".", |
| 449 | "//content") |
sohan.jyoti | 86c41c7 | 2016-04-26 15:33:20 | [diff] [blame] | 450 | 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] | 886323c | 2014-06-14 20:34:16 | [diff] [blame] | 456 | if (!use_x11) { |
| 457 | sources -= [ |
| 458 | "compositor/software_output_device_x11.cc", |
| 459 | "compositor/software_output_device_x11.h", |
| 460 | ] |
| 461 | } |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 462 | |
[email protected] | b1867c9 | 2014-08-13 00:22:04 | [diff] [blame] | 463 | if (!use_ozone) { |
| 464 | sources -= [ |
[email protected] | b1867c9 | 2014-08-13 00:22:04 | [diff] [blame] | 465 | "compositor/software_output_device_ozone.cc", |
| 466 | "compositor/software_output_device_ozone.h", |
| 467 | ] |
| 468 | } |
| 469 | deps += [ "//ui/compositor" ] |
[email protected] | 604b127 | 2014-07-24 11:27:53 | [diff] [blame] | 470 | } |
| 471 | |
[email protected] | 418653fdf | 2014-07-02 07:38:21 | [diff] [blame] | 472 | if (enable_web_speech) { |
tfarina | 152a972 | 2015-07-28 04:03:45 | [diff] [blame] | 473 | deps += [ "//third_party/flac" ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 474 | } |
| 475 | |
cmasone | db5203e | 2014-09-11 18:18:38 | [diff] [blame] | 476 | if (is_linux && use_dbus) { |
ppi | 2438a3e | 2014-10-28 21:55:10 | [diff] [blame] | 477 | deps += [ "//dbus" ] |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 478 | } |
cjhopman | 2fd48fd | 2014-09-24 00:52:56 | [diff] [blame] | 479 | |
| 480 | if (enable_browser_cdms) { |
| 481 | sources += [ |
| 482 | "media/cdm/browser_cdm_manager.cc", |
| 483 | "media/cdm/browser_cdm_manager.h", |
cjhopman | 2fd48fd | 2014-09-24 00:52:56 | [diff] [blame] | 484 | ] |
| 485 | } |
davidben | b983d4b | 2015-01-07 16:39:44 | [diff] [blame] | 486 | |
davidben | ee55ed44 | 2015-10-02 17:06:11 | [diff] [blame] | 487 | if (is_linux) { |
davidben | b983d4b | 2015-01-07 16:39:44 | [diff] [blame] | 488 | deps += [ "//third_party/boringssl" ] |
| 489 | } |
xhwang | e611733 | 2015-01-28 08:51:16 | [diff] [blame] | 490 | |
xhwang | be72003 | 2016-02-19 18:45:31 | [diff] [blame] | 491 | if (enable_mojo_media) { |
| 492 | configs += [ "//media/mojo/services:mojo_media_config" ] |
xhwang | fb22df1 | 2015-10-13 23:13:46 | [diff] [blame] | 493 | } |
| 494 | |
jbroman | 79c079be | 2016-04-20 00:17:27 | [diff] [blame] | 495 | if (use_ozone) { |
| 496 | deps += [ "//ui/ozone" ] |
| 497 | } |
piman | a333e3d | 2016-04-27 02:37:25 | [diff] [blame] | 498 | |
| 499 | if (!is_mac && !is_android) { |
| 500 | sources -= [ |
| 501 | "gpu/gpu_surface_tracker.cc", |
| 502 | "gpu/gpu_surface_tracker.h", |
| 503 | ] |
| 504 | } |
bajones | 98f9652 | 2016-06-03 22:43:57 | [diff] [blame] | 505 | |
| 506 | if (enable_webvr) { |
| 507 | deps += [ "//device/vr" ] |
| 508 | } |
ochang | dd89a1e | 2016-06-08 16:39:01 | [diff] [blame] | 509 | |
| 510 | if (enable_ipc_fuzzer) { |
| 511 | configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] |
| 512 | } |
[email protected] | 4db51ec | 2014-05-29 21:08:32 | [diff] [blame] | 513 | } |
ben | 66696d1 | 2016-03-08 17:48:00 | [diff] [blame] | 514 | |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 515 | # See comment at the top of //content/BUILD.gn for how this works. |
| 516 | group("for_content_tests") { |
| 517 | visibility = [ "//content/test/*" ] |
| 518 | if (!is_component_build) { |
| 519 | public_deps = [ |
| 520 | ":browser", |
| 521 | ] |
jam | 447407fb | 2016-05-06 17:57:40 | [diff] [blame] | 522 | } else { |
| 523 | public_deps = [ |
| 524 | "//third_party/leveldatabase", |
| 525 | ] |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 526 | } |
| 527 | } |