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 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
9 | 9 |
10 source_set("browser") { | 10 source_set("browser") { |
11 # Only the public target should depend on this. All other targets (even | 11 # Only the public target should depend on this. All other targets (even |
12 # internal content ones) should depend on the public one. | 12 # internal content ones) should depend on the public one. |
13 visibility = [ "//content/public/browser:browser_sources" ] | 13 visibility = [ "//content/public/browser:browser_sources" ] |
14 | 14 |
15 defines = [] | 15 defines = [] |
16 libs = [] | 16 libs = [] |
17 ldflags = [] | 17 ldflags = [] |
18 | 18 |
19 # Shared deps. See also non-iOS deps below. | 19 # Shared deps. See also non-iOS deps below. |
20 deps = [ | 20 deps = [ |
21 "//base", | 21 "//base", |
22 "//base:base_static", | 22 "//base:base_static", |
23 "//content:resources", | 23 "//content:resources", |
24 "//content/browser/service_worker:proto", | 24 "//content/browser/service_worker:proto", |
25 "//content/browser/speech/proto", | 25 "//content/browser/speech/proto", |
26 "//content/public/common:common_sources", | 26 "//content/public/common:common_sources", |
27 "//crypto", | 27 "//crypto", |
| 28 "//device/battery", |
28 "//google_apis", | 29 "//google_apis", |
29 "//net", | 30 "//net", |
30 "//skia", | 31 "//skia", |
31 "//sql", | 32 "//sql", |
32 "//third_party/npapi", | 33 "//third_party/npapi", |
33 "//third_party/re2", | 34 "//third_party/re2", |
34 "//third_party/WebKit/public:blink_headers", | 35 "//third_party/WebKit/public:blink_headers", |
35 "//third_party/zlib", | 36 "//third_party/zlib", |
36 "//third_party/zlib:zip", | 37 "//third_party/zlib:zip", |
37 "//ui/accessibility", | 38 "//ui/accessibility", |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated | 262 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated |
262 # given the interaction between os_chromeos and the feature flags for X11 and | 263 # given the interaction between os_chromeos and the feature flags for X11 and |
263 # ozone, so do it all in one spot. | 264 # ozone, so do it all in one spot. |
264 if (is_chromeos || !use_ozone) { | 265 if (is_chromeos || !use_ozone) { |
265 sources -= [ "power_save_blocker_ozone.cc", ] | 266 sources -= [ "power_save_blocker_ozone.cc", ] |
266 } | 267 } |
267 if (is_chromeos || !use_x11) { | 268 if (is_chromeos || !use_x11) { |
268 sources -= [ "power_save_blocker_x11.cc", ] | 269 sources -= [ "power_save_blocker_x11.cc", ] |
269 } | 270 } |
270 | 271 |
271 # Dealing with battery_status_manager_*.cc and *wifi_data_provider_*.cc | 272 # Dealing with *wifi_data_provider_*.cc is also a bit complicated given |
272 # is also a bit complicated given android, chromeos, linux and use_dbus. | 273 # android, chromeos, linux and use_dbus. |
273 if (is_android || is_chromeos || (is_linux && use_dbus)) { | 274 if (is_android) { |
274 sources -= [ "battery_status/battery_status_manager_default.cc" ] | 275 sources -= [ "geolocation/wifi_data_provider_common.cc" ] |
275 } | 276 } |
276 if (is_chromeos || (is_linux && !use_dbus)) { | 277 if (is_chromeos || (is_linux && !use_dbus)) { |
277 # This will already have gotten removed for all non-Linux cases. | 278 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] |
278 sources -= [ | |
279 "battery_status/battery_status_manager_linux.cc", | |
280 "geolocation/wifi_data_provider_linux.cc" | |
281 ] | |
282 } | |
283 | |
284 if (is_android) { | |
285 sources -= [ "geolocation/wifi_data_provider_common.cc" ] | |
286 } | 279 } |
287 if (is_linux && use_dbus) { | 280 if (is_linux && use_dbus) { |
288 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] | 281 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] |
289 } | 282 } |
290 | 283 |
291 if (use_pango) { | 284 if (use_pango) { |
292 configs += [ "//build/config/linux:pangocairo" ] | 285 configs += [ "//build/config/linux:pangocairo" ] |
293 } | 286 } |
294 | 287 |
295 if (is_android) { | 288 if (is_android) { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 } | 400 } |
408 | 401 |
409 if (enable_web_speech) { | 402 if (enable_web_speech) { |
410 deps += [ | 403 deps += [ |
411 "//third_party/flac", | 404 "//third_party/flac", |
412 "//third_party/speex", | 405 "//third_party/speex", |
413 ] | 406 ] |
414 } | 407 } |
415 | 408 |
416 if (is_linux && use_dbus) { | 409 if (is_linux && use_dbus) { |
417 deps += [ "//dbus" ] | 410 deps += [ "//dbus" ] |
418 } | 411 } |
419 | 412 |
420 if (enable_browser_cdms) { | 413 if (enable_browser_cdms) { |
421 sources += [ | 414 sources += [ |
422 "media/cdm/browser_cdm_manager.cc", | 415 "media/cdm/browser_cdm_manager.cc", |
423 "media/cdm/browser_cdm_manager.h", | 416 "media/cdm/browser_cdm_manager.h", |
424 "media/media_web_contents_observer.cc", | 417 "media/media_web_contents_observer.cc", |
425 "media/media_web_contents_observer.h", | 418 "media/media_web_contents_observer.h", |
426 ] | 419 ] |
427 } | 420 } |
428 } | 421 } |
OLD | NEW |