| 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", | |
| 29 "//google_apis", | 28 "//google_apis", |
| 30 "//net", | 29 "//net", |
| 31 "//skia", | 30 "//skia", |
| 32 "//sql", | 31 "//sql", |
| 33 "//third_party/npapi", | 32 "//third_party/npapi", |
| 34 "//third_party/re2", | 33 "//third_party/re2", |
| 35 "//third_party/WebKit/public:blink_headers", | 34 "//third_party/WebKit/public:blink_headers", |
| 36 "//third_party/zlib", | 35 "//third_party/zlib", |
| 37 "//third_party/zlib:zip", | 36 "//third_party/zlib:zip", |
| 38 "//ui/accessibility", | 37 "//ui/accessibility", |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated | 261 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated |
| 263 # given the interaction between os_chromeos and the feature flags for X11 and | 262 # given the interaction between os_chromeos and the feature flags for X11 and |
| 264 # ozone, so do it all in one spot. | 263 # ozone, so do it all in one spot. |
| 265 if (is_chromeos || !use_ozone) { | 264 if (is_chromeos || !use_ozone) { |
| 266 sources -= [ "power_save_blocker_ozone.cc", ] | 265 sources -= [ "power_save_blocker_ozone.cc", ] |
| 267 } | 266 } |
| 268 if (is_chromeos || !use_x11) { | 267 if (is_chromeos || !use_x11) { |
| 269 sources -= [ "power_save_blocker_x11.cc", ] | 268 sources -= [ "power_save_blocker_x11.cc", ] |
| 270 } | 269 } |
| 271 | 270 |
| 272 # Dealing with *wifi_data_provider_*.cc is also a bit complicated given | 271 # Dealing with battery_status_manager_*.cc and *wifi_data_provider_*.cc |
| 273 # android, chromeos, linux and use_dbus. | 272 # is also a bit complicated given android, chromeos, linux and use_dbus. |
| 273 if (is_android || is_chromeos || (is_linux && use_dbus)) { |
| 274 sources -= [ "battery_status/battery_status_manager_default.cc" ] |
| 275 } |
| 276 if (is_chromeos || (is_linux && !use_dbus)) { |
| 277 # This will already have gotten removed for all non-Linux cases. |
| 278 sources -= [ |
| 279 "battery_status/battery_status_manager_linux.cc", |
| 280 "geolocation/wifi_data_provider_linux.cc" |
| 281 ] |
| 282 } |
| 283 |
| 274 if (is_android) { | 284 if (is_android) { |
| 275 sources -= [ "geolocation/wifi_data_provider_common.cc" ] | 285 sources -= [ "geolocation/wifi_data_provider_common.cc" ] |
| 276 } | 286 } |
| 277 if (is_chromeos || (is_linux && !use_dbus)) { | |
| 278 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] | |
| 279 } | |
| 280 if (is_linux && use_dbus) { | 287 if (is_linux && use_dbus) { |
| 281 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] | 288 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] |
| 282 } | 289 } |
| 283 | 290 |
| 284 if (use_pango) { | 291 if (use_pango) { |
| 285 configs += [ "//build/config/linux:pangocairo" ] | 292 configs += [ "//build/config/linux:pangocairo" ] |
| 286 } | 293 } |
| 287 | 294 |
| 288 if (is_android) { | 295 if (is_android) { |
| 289 sources += rebase_path(content_browser_gypi_values.android_browser_sources, | 296 sources += rebase_path(content_browser_gypi_values.android_browser_sources, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 } | 407 } |
| 401 | 408 |
| 402 if (enable_web_speech) { | 409 if (enable_web_speech) { |
| 403 deps += [ | 410 deps += [ |
| 404 "//third_party/flac", | 411 "//third_party/flac", |
| 405 "//third_party/speex", | 412 "//third_party/speex", |
| 406 ] | 413 ] |
| 407 } | 414 } |
| 408 | 415 |
| 409 if (is_linux && use_dbus) { | 416 if (is_linux && use_dbus) { |
| 410 deps += [ "//dbus" ] | 417 deps += [ "//dbus" ] |
| 411 } | 418 } |
| 412 | 419 |
| 413 if (enable_browser_cdms) { | 420 if (enable_browser_cdms) { |
| 414 sources += [ | 421 sources += [ |
| 415 "media/cdm/browser_cdm_manager.cc", | 422 "media/cdm/browser_cdm_manager.cc", |
| 416 "media/cdm/browser_cdm_manager.h", | 423 "media/cdm/browser_cdm_manager.h", |
| 417 "media/media_web_contents_observer.cc", | 424 "media/media_web_contents_observer.cc", |
| 418 "media/media_web_contents_observer.h", | 425 "media/media_web_contents_observer.h", |
| 419 ] | 426 ] |
| 420 } | 427 } |
| 421 } | 428 } |
| OLD | NEW |