2018-09-12 13:45:08 +00:00
|
|
|
# Copyright (c) 2018 GitHub, Inc.
|
|
|
|
# Use of this source code is governed by the MIT license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2018-10-03 12:26:42 +00:00
|
|
|
import("//electron/buildflags/buildflags.gni")
|
|
|
|
|
2018-09-12 13:45:08 +00:00
|
|
|
# Builds some of the chrome sources that Electron depends
|
|
|
|
# on unconditionally.
|
|
|
|
source_set("chrome") {
|
|
|
|
visibility = [ "//electron:electron_lib" ]
|
|
|
|
sources = [
|
2018-10-05 19:12:53 +00:00
|
|
|
"//chrome/browser/icon_loader.cc",
|
|
|
|
"//chrome/browser/icon_loader.h",
|
|
|
|
"//chrome/browser/icon_loader_mac.mm",
|
|
|
|
"//chrome/browser/icon_loader_win.cc",
|
|
|
|
"//chrome/browser/icon_manager.cc",
|
|
|
|
"//chrome/browser/icon_manager.h",
|
2018-10-04 18:08:56 +00:00
|
|
|
"//chrome/browser/net/chrome_mojo_proxy_resolver_factory.cc",
|
|
|
|
"//chrome/browser/net/chrome_mojo_proxy_resolver_factory.h",
|
|
|
|
"//chrome/browser/net/chrome_net_log_helper.cc",
|
|
|
|
"//chrome/browser/net/chrome_net_log_helper.h",
|
|
|
|
"//chrome/browser/net/proxy_config_monitor.cc",
|
|
|
|
"//chrome/browser/net/proxy_config_monitor.h",
|
|
|
|
"//chrome/browser/net/proxy_service_factory.cc",
|
|
|
|
"//chrome/browser/net/proxy_service_factory.h",
|
2018-09-12 13:45:08 +00:00
|
|
|
"//chrome/browser/ssl/security_state_tab_helper.cc",
|
|
|
|
"//chrome/browser/ssl/security_state_tab_helper.h",
|
2018-10-03 18:44:22 +00:00
|
|
|
"//chrome/common/chrome_constants.cc",
|
|
|
|
"//chrome/common/chrome_constants.h",
|
2018-10-04 18:08:56 +00:00
|
|
|
"//chrome/common/chrome_switches.cc",
|
|
|
|
"//chrome/common/chrome_switches.h",
|
2018-09-15 00:22:22 +00:00
|
|
|
"//chrome/common/secure_origin_whitelist.cc",
|
|
|
|
"//chrome/common/secure_origin_whitelist.h",
|
2018-09-12 13:45:08 +00:00
|
|
|
]
|
2018-10-03 12:26:42 +00:00
|
|
|
public_deps = [
|
|
|
|
"//content/public/browser",
|
|
|
|
]
|
|
|
|
deps = [
|
2018-10-03 18:44:22 +00:00
|
|
|
"//chrome/common:constants",
|
2018-10-04 18:08:56 +00:00
|
|
|
"//components/proxy_config",
|
2018-10-03 12:26:42 +00:00
|
|
|
"//components/security_state/content",
|
|
|
|
]
|
|
|
|
|
2018-10-05 19:12:53 +00:00
|
|
|
if (is_linux) {
|
|
|
|
sources += [ "//chrome/browser/icon_loader_auralinux.cc" ]
|
|
|
|
}
|
|
|
|
|
2018-10-03 12:26:42 +00:00
|
|
|
if (enable_desktop_capturer) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/media/webrtc/desktop_media_list.h",
|
|
|
|
"//chrome/browser/media/webrtc/desktop_media_list_base.cc",
|
|
|
|
"//chrome/browser/media/webrtc/desktop_media_list_base.h",
|
|
|
|
"//chrome/browser/media/webrtc/desktop_media_list_observer.h",
|
|
|
|
"//chrome/browser/media/webrtc/native_desktop_media_list.cc",
|
|
|
|
"//chrome/browser/media/webrtc/native_desktop_media_list.h",
|
|
|
|
]
|
|
|
|
deps += [ "//ui/snapshot" ]
|
|
|
|
}
|
2018-09-12 13:45:08 +00:00
|
|
|
}
|