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-11 23:53:46 +00:00
|
|
|
import("//build/config/ui.gni")
|
2018-10-03 12:26:42 +00:00
|
|
|
import("//electron/buildflags/buildflags.gni")
|
2018-11-09 03:42:34 +00:00
|
|
|
import("//printing/buildflags/buildflags.gni")
|
2018-10-11 13:52:12 +00:00
|
|
|
import("//third_party/widevine/cdm/widevine.gni")
|
2018-10-03 12:26:42 +00:00
|
|
|
|
2018-10-11 13:52:12 +00:00
|
|
|
# Builds some of the chrome sources that Electron depends on.
|
|
|
|
static_library("chrome") {
|
2018-09-12 13:45:08 +00:00
|
|
|
visibility = [ "//electron:electron_lib" ]
|
|
|
|
sources = [
|
2018-10-11 13:52:12 +00:00
|
|
|
"//chrome/browser/browser_process.cc",
|
|
|
|
"//chrome/browser/browser_process.h",
|
2018-10-19 13:50:30 +00:00
|
|
|
"//chrome/browser/devtools/devtools_contents_resizing_strategy.cc",
|
|
|
|
"//chrome/browser/devtools/devtools_contents_resizing_strategy.h",
|
|
|
|
"//chrome/browser/devtools/devtools_embedder_message_dispatcher.cc",
|
|
|
|
"//chrome/browser/devtools/devtools_embedder_message_dispatcher.h",
|
|
|
|
"//chrome/browser/devtools/devtools_file_system_indexer.cc",
|
|
|
|
"//chrome/browser/devtools/devtools_file_system_indexer.h",
|
2018-10-11 05:02:58 +00:00
|
|
|
"//chrome/browser/extensions/global_shortcut_listener.cc",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener.h",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_mac.h",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_mac.mm",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_win.cc",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_win.h",
|
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/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",
|
2019-02-11 19:38:58 +00:00
|
|
|
"//chrome/browser/ui/autofill/popup_view_common.cc",
|
|
|
|
"//chrome/browser/ui/autofill/popup_view_common.h",
|
2018-11-05 14:29:33 +00:00
|
|
|
"//chrome/browser/win/chrome_process_finder.cc",
|
|
|
|
"//chrome/browser/win/chrome_process_finder.h",
|
2018-10-11 13:52:12 +00:00
|
|
|
"//extensions/browser/app_window/size_constraints.cc",
|
|
|
|
"//extensions/browser/app_window/size_constraints.h",
|
2018-09-12 13:45:08 +00:00
|
|
|
]
|
2018-10-03 12:26:42 +00:00
|
|
|
public_deps = [
|
2018-10-11 13:52:12 +00:00
|
|
|
"//chrome/common",
|
2019-03-05 05:08:55 +00:00
|
|
|
"//chrome/common:version_header",
|
2018-10-11 13:52:12 +00:00
|
|
|
"//components/keyed_service/content",
|
2018-10-04 18:08:56 +00:00
|
|
|
"//components/proxy_config",
|
2018-10-03 12:26:42 +00:00
|
|
|
"//components/security_state/content",
|
2019-03-05 05:08:55 +00:00
|
|
|
"//content/public/browser",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
"//components/feature_engagement:buildflags",
|
2018-10-03 12:26:42 +00:00
|
|
|
]
|
|
|
|
|
2018-10-05 19:12:53 +00:00
|
|
|
if (is_linux) {
|
|
|
|
sources += [ "//chrome/browser/icon_loader_auralinux.cc" ]
|
2018-10-11 05:02:58 +00:00
|
|
|
sources += [
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_x11.cc",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_x11.h",
|
|
|
|
]
|
2018-10-05 19:12:53 +00:00
|
|
|
}
|
|
|
|
|
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",
|
2018-12-04 06:42:49 +00:00
|
|
|
"//chrome/browser/media/webrtc/window_icon_util.h",
|
2018-10-03 12:26:42 +00:00
|
|
|
]
|
|
|
|
deps += [ "//ui/snapshot" ]
|
|
|
|
}
|
2018-10-11 13:52:12 +00:00
|
|
|
|
2018-10-11 23:53:46 +00:00
|
|
|
if (enable_color_chooser) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/platform_util.cc",
|
|
|
|
"//chrome/browser/platform_util.h",
|
|
|
|
"//chrome/browser/ui/browser_dialogs.h",
|
2019-03-05 05:08:55 +00:00
|
|
|
"//chrome/browser/ui/color_chooser.h",
|
2018-10-11 23:53:46 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if (use_aura) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/platform_util_aura.cc",
|
|
|
|
"//chrome/browser/ui/views/color_chooser_aura.cc",
|
|
|
|
"//chrome/browser/ui/views/color_chooser_aura.h",
|
|
|
|
]
|
2019-01-11 22:15:27 +00:00
|
|
|
deps += [ "//components/feature_engagement" ]
|
2018-10-11 23:53:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
sources += [
|
2018-12-04 06:42:49 +00:00
|
|
|
"//chrome/browser/media/webrtc/window_icon_util_mac.mm",
|
2018-10-11 23:53:46 +00:00
|
|
|
"//chrome/browser/ui/cocoa/color_chooser_mac.h",
|
|
|
|
"//chrome/browser/ui/cocoa/color_chooser_mac.mm",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
sources += [
|
2018-12-04 06:42:49 +00:00
|
|
|
"//chrome/browser/media/webrtc/window_icon_util_win.cc",
|
2018-10-11 23:53:46 +00:00
|
|
|
"//chrome/browser/ui/views/color_chooser_dialog.cc",
|
|
|
|
"//chrome/browser/ui/views/color_chooser_dialog.h",
|
|
|
|
"//chrome/browser/ui/views/color_chooser_win.cc",
|
|
|
|
]
|
|
|
|
}
|
2019-01-17 18:26:21 +00:00
|
|
|
|
|
|
|
if (is_linux) {
|
|
|
|
sources += [ "//chrome/browser/media/webrtc/window_icon_util_x11.cc" ]
|
|
|
|
}
|
2018-10-11 23:53:46 +00:00
|
|
|
}
|
|
|
|
|
2018-10-11 13:52:12 +00:00
|
|
|
if (enable_tts) {
|
|
|
|
sources += [
|
2019-01-10 00:44:44 +00:00
|
|
|
"//chrome/browser/speech/tts_controller_delegate_impl.cc",
|
|
|
|
"//chrome/browser/speech/tts_controller_delegate_impl.h",
|
2018-10-11 13:52:12 +00:00
|
|
|
"//chrome/browser/speech/tts_message_filter.cc",
|
|
|
|
"//chrome/browser/speech/tts_message_filter.h",
|
|
|
|
"//chrome/renderer/tts_dispatcher.cc",
|
|
|
|
"//chrome/renderer/tts_dispatcher.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (enable_widevine) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/renderer/media/chrome_key_systems.cc",
|
|
|
|
"//chrome/renderer/media/chrome_key_systems.h",
|
|
|
|
"//chrome/renderer/media/chrome_key_systems_provider.cc",
|
|
|
|
"//chrome/renderer/media/chrome_key_systems_provider.h",
|
|
|
|
]
|
|
|
|
deps += [ "//components/cdm/renderer" ]
|
|
|
|
}
|
2018-11-09 03:42:34 +00:00
|
|
|
|
|
|
|
if (enable_basic_printing) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/printing/print_job.cc",
|
|
|
|
"//chrome/browser/printing/print_job.h",
|
|
|
|
"//chrome/browser/printing/print_job_manager.cc",
|
|
|
|
"//chrome/browser/printing/print_job_manager.h",
|
|
|
|
"//chrome/browser/printing/print_job_worker.cc",
|
|
|
|
"//chrome/browser/printing/print_job_worker.h",
|
|
|
|
"//chrome/browser/printing/print_view_manager_base.cc",
|
|
|
|
"//chrome/browser/printing/print_view_manager_base.h",
|
|
|
|
"//chrome/browser/printing/print_view_manager_basic.cc",
|
|
|
|
"//chrome/browser/printing/print_view_manager_basic.h",
|
|
|
|
"//chrome/browser/printing/printer_query.cc",
|
|
|
|
"//chrome/browser/printing/printer_query.h",
|
|
|
|
"//chrome/browser/printing/printing_message_filter.cc",
|
|
|
|
"//chrome/browser/printing/printing_message_filter.h",
|
|
|
|
]
|
2019-03-05 05:08:55 +00:00
|
|
|
public_deps += [
|
2018-11-09 03:42:34 +00:00
|
|
|
"//chrome/services/printing:lib",
|
|
|
|
"//components/printing/browser",
|
|
|
|
"//components/printing/renderer",
|
|
|
|
"//components/services/pdf_compositor/public/cpp:factory",
|
|
|
|
"//components/services/pdf_compositor/public/interfaces",
|
2019-03-05 05:08:55 +00:00
|
|
|
]
|
|
|
|
deps += [
|
|
|
|
"//components/printing/common",
|
|
|
|
"//components/services/pdf_compositor",
|
2018-11-09 03:42:34 +00:00
|
|
|
"//printing",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/printing/pdf_to_emf_converter.cc",
|
|
|
|
"//chrome/browser/printing/pdf_to_emf_converter.h",
|
|
|
|
"//chrome/utility/printing_handler.cc",
|
|
|
|
"//chrome/utility/printing_handler.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2018-09-12 13:45:08 +00:00
|
|
|
}
|