| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated | 256 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated |
| 256 # given the interaction between os_chromeos and the feature flags for X11 and | 257 # given the interaction between os_chromeos and the feature flags for X11 and |
| 257 # ozone, so do it all in one spot. | 258 # ozone, so do it all in one spot. |
| 258 if (is_chromeos || !use_ozone) { | 259 if (is_chromeos || !use_ozone) { |
| 259 sources -= [ "power_save_blocker_ozone.cc", ] | 260 sources -= [ "power_save_blocker_ozone.cc", ] |
| 260 } | 261 } |
| 261 if (is_chromeos || !use_x11) { | 262 if (is_chromeos || !use_x11) { |
| 262 sources -= [ "power_save_blocker_x11.cc", ] | 263 sources -= [ "power_save_blocker_x11.cc", ] |
| 263 } | 264 } |
| 264 | 265 |
| 265 # Dealing with battery_status_manager_*.cc and *wifi_data_provider_*.cc | 266 # Dealing with *wifi_data_provider_*.cc is also a bit complicated given |
| 266 # is also a bit complicated given android, chromeos, linux and use_dbus. | 267 # android, chromeos, linux and use_dbus. |
| 267 if (is_android || is_chromeos || (is_linux && use_dbus)) { | |
| 268 sources -= [ "battery_status/battery_status_manager_default.cc" ] | |
| 269 } | |
| 270 if (is_linux && !use_dbus) { | |
| 271 # This will already have gotten removed for all non-Linux cases. | |
| 272 sources -= [ "battery_status/battery_status_manager_linux.cc" ] | |
| 273 } | |
| 274 | |
| 275 if (is_android) { | 268 if (is_android) { |
| 276 sources -= [ "geolocation/wifi_data_provider_common.cc" ] | 269 sources -= [ "geolocation/wifi_data_provider_common.cc" ] |
| 277 } | 270 } |
| 278 if (is_chromeos || (is_linux && !use_dbus)) { | 271 if (is_chromeos || (is_linux && !use_dbus)) { |
| 279 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] | 272 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] |
| 280 } | 273 } |
| 281 if (is_linux && use_dbus) { | 274 if (is_linux && use_dbus) { |
| 282 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] | 275 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] |
| 283 } | 276 } |
| 284 | 277 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 } | 393 } |
| 401 | 394 |
| 402 if (enable_web_speech) { | 395 if (enable_web_speech) { |
| 403 deps += [ | 396 deps += [ |
| 404 "//third_party/flac", | 397 "//third_party/flac", |
| 405 "//third_party/speex", | 398 "//third_party/speex", |
| 406 ] | 399 ] |
| 407 } | 400 } |
| 408 | 401 |
| 409 if (is_linux && use_dbus) { | 402 if (is_linux && use_dbus) { |
| 410 deps += [ "//dbus" ] | 403 deps += [ "//dbus" ] |
| 411 } | 404 } |
| 412 | 405 |
| 413 if (enable_browser_cdms) { | 406 if (enable_browser_cdms) { |
| 414 sources += [ | 407 sources += [ |
| 415 "media/cdm/browser_cdm_manager.cc", | 408 "media/cdm/browser_cdm_manager.cc", |
| 416 "media/cdm/browser_cdm_manager.h", | 409 "media/cdm/browser_cdm_manager.h", |
| 417 "media/media_web_contents_observer.cc", | 410 "media/media_web_contents_observer.cc", |
| 418 "media/media_web_contents_observer.h", | 411 "media/media_web_contents_observer.h", |
| 419 ] | 412 ] |
| 420 } | 413 } |
| 421 } | 414 } |
| OLD | NEW |