OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//content/browser/browser.gni") | 7 import("//content/browser/browser.gni") |
8 | 8 |
9 source_set("browser") { | 9 source_set("browser") { |
10 # Only the public target should depend on this. All other targets (even | 10 # Only the public target should depend on this. All other targets (even |
11 # internal content ones) should depend on the public one. | 11 # internal content ones) should depend on the public one. |
12 visibility = [ "//content/public/browser:browser_sources" ] | 12 visibility = [ "//content/public/browser:browser_sources" ] |
13 | 13 |
14 defines = [] | 14 defines = [] |
15 libs = [] | 15 libs = [] |
16 ldflags = [] | 16 ldflags = [] |
17 | 17 |
18 # Shared deps. See also non-iOS deps below. | 18 # Shared deps. See also non-iOS deps below. |
19 deps = [ | 19 deps = [ |
20 "//base", | 20 "//base", |
21 "//base:base_static", | 21 "//base:base_static", |
22 "//content:resources", | 22 "//content:resources", |
23 "//content/browser/service_worker:proto", | 23 "//content/browser/service_worker:proto", |
24 "//content/browser/speech/proto", | 24 "//content/browser/speech/proto", |
25 "//content/public/common:common_sources", | 25 "//content/public/common:common_sources", |
26 "//crypto", | 26 "//crypto", |
| 27 "//device/battery", |
27 "//google_apis", | 28 "//google_apis", |
28 "//net", | 29 "//net", |
29 "//skia", | 30 "//skia", |
30 "//sql", | 31 "//sql", |
31 "//third_party/npapi", | 32 "//third_party/npapi", |
32 "//third_party/re2", | 33 "//third_party/re2", |
33 "//third_party/WebKit/public:blink_headers", | 34 "//third_party/WebKit/public:blink_headers", |
34 "//third_party/zlib", | 35 "//third_party/zlib", |
35 "//third_party/zlib:zip", | 36 "//third_party/zlib:zip", |
36 "//ui/accessibility", | 37 "//ui/accessibility", |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated | 255 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated |
255 # given the interaction between os_chromeos and the feature flags for X11 and | 256 # given the interaction between os_chromeos and the feature flags for X11 and |
256 # ozone, so do it all in one spot. | 257 # ozone, so do it all in one spot. |
257 if (is_chromeos || !use_ozone) { | 258 if (is_chromeos || !use_ozone) { |
258 sources -= [ "power_save_blocker_ozone.cc", ] | 259 sources -= [ "power_save_blocker_ozone.cc", ] |
259 } | 260 } |
260 if (is_chromeos || !use_x11) { | 261 if (is_chromeos || !use_x11) { |
261 sources -= [ "power_save_blocker_x11.cc", ] | 262 sources -= [ "power_save_blocker_x11.cc", ] |
262 } | 263 } |
263 | 264 |
264 # Dealing with battery_status_manager_*.cc and *wifi_data_provider_*.cc | 265 # Dealing with *wifi_data_provider_*.cc is also a bit complicated given |
265 # is also a bit complicated given android, chromeos, linux and use_dbus. | 266 # android, chromeos, linux and use_dbus. |
266 if (is_android || is_chromeos || (is_linux && use_dbus)) { | |
267 sources -= [ "battery_status/battery_status_manager_default.cc" ] | |
268 } | |
269 if (is_linux && !use_dbus) { | |
270 # This will already have gotten removed for all non-Linux cases. | |
271 sources -= [ "battery_status/battery_status_manager_linux.cc" ] | |
272 } | |
273 | |
274 if (is_android) { | 267 if (is_android) { |
275 sources -= [ "geolocation/wifi_data_provider_common.cc" ] | 268 sources -= [ "geolocation/wifi_data_provider_common.cc" ] |
276 } | 269 } |
277 if (is_chromeos || (is_linux && !use_dbus)) { | 270 if (is_chromeos || (is_linux && !use_dbus)) { |
278 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] | 271 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] |
279 } | 272 } |
280 if (is_linux && use_dbus) { | 273 if (is_linux && use_dbus) { |
281 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] | 274 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] |
282 } | 275 } |
283 | 276 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 } | 392 } |
400 | 393 |
401 if (enable_web_speech) { | 394 if (enable_web_speech) { |
402 deps += [ | 395 deps += [ |
403 "//third_party/flac", | 396 "//third_party/flac", |
404 "//third_party/speex", | 397 "//third_party/speex", |
405 ] | 398 ] |
406 } | 399 } |
407 | 400 |
408 if (is_linux && use_dbus) { | 401 if (is_linux && use_dbus) { |
409 deps += [ "//dbus" ] | 402 deps += [ "//dbus" ] |
410 } | 403 } |
411 } | 404 } |
OLD | NEW |