build: fix building with enable_builtin_spellchecker = false (#21334)
This commit is contained in:
parent
74f698d7bc
commit
03824ef53f
3 changed files with 44 additions and 41 deletions
5
BUILD.gn
5
BUILD.gn
|
@ -354,6 +354,7 @@ source_set("electron_lib") {
|
||||||
":resources",
|
":resources",
|
||||||
"buildflags",
|
"buildflags",
|
||||||
"chromium_src:chrome",
|
"chromium_src:chrome",
|
||||||
|
"chromium_src:chrome_spellchecker",
|
||||||
"native_mate",
|
"native_mate",
|
||||||
"shell/common/api:mojo",
|
"shell/common/api:mojo",
|
||||||
"//base:base_static",
|
"//base:base_static",
|
||||||
|
@ -482,10 +483,6 @@ source_set("electron_lib") {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enable_builtin_spellchecker) {
|
|
||||||
deps += [ "chromium_src:chrome_spellchecker" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_mac) {
|
if (is_mac) {
|
||||||
deps += [
|
deps += [
|
||||||
"//components/remote_cocoa/app_shim",
|
"//components/remote_cocoa/app_shim",
|
||||||
|
|
|
@ -308,45 +308,51 @@ source_set("plugins") {
|
||||||
# You may have to add new files here during the upgrade if //chrome/browser/spellchecker
|
# You may have to add new files here during the upgrade if //chrome/browser/spellchecker
|
||||||
# gets more files
|
# gets more files
|
||||||
source_set("chrome_spellchecker") {
|
source_set("chrome_spellchecker") {
|
||||||
sources = [
|
sources = []
|
||||||
"//chrome/browser/spellchecker/spell_check_host_chrome_impl.cc",
|
deps = []
|
||||||
"//chrome/browser/spellchecker/spell_check_host_chrome_impl.h",
|
libs = []
|
||||||
"//chrome/browser/spellchecker/spellcheck_custom_dictionary.cc",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_custom_dictionary.h",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_factory.cc",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_factory.h",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_language_blacklist_policy_handler.cc",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_language_blacklist_policy_handler.h",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_language_policy_handler.cc",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_language_policy_handler.h",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_service.cc",
|
|
||||||
"//chrome/browser/spellchecker/spellcheck_service.h",
|
|
||||||
"//chrome/common/pref_names.h",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (has_spellcheck_panel) {
|
if (enable_builtin_spellchecker) {
|
||||||
sources += [
|
sources += [
|
||||||
"//chrome/browser/spellchecker/spell_check_panel_host_impl.cc",
|
"//chrome/browser/spellchecker/spell_check_host_chrome_impl.cc",
|
||||||
"//chrome/browser/spellchecker/spell_check_panel_host_impl.h",
|
"//chrome/browser/spellchecker/spell_check_host_chrome_impl.h",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_custom_dictionary.cc",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_custom_dictionary.h",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_factory.cc",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_factory.h",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_language_blacklist_policy_handler.cc",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_language_blacklist_policy_handler.h",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_language_policy_handler.cc",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_language_policy_handler.h",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_service.cc",
|
||||||
|
"//chrome/browser/spellchecker/spellcheck_service.h",
|
||||||
|
"//chrome/common/pref_names.h",
|
||||||
|
]
|
||||||
|
|
||||||
|
if (has_spellcheck_panel) {
|
||||||
|
sources += [
|
||||||
|
"//chrome/browser/spellchecker/spell_check_panel_host_impl.cc",
|
||||||
|
"//chrome/browser/spellchecker/spell_check_panel_host_impl.h",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
if (use_browser_spellchecker) {
|
||||||
|
sources += [
|
||||||
|
"//chrome/browser/spellchecker/spelling_request.cc",
|
||||||
|
"//chrome/browser/spellchecker/spelling_request.h",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
deps += [
|
||||||
|
"//base:base_static",
|
||||||
|
"//components/language/core/browser",
|
||||||
|
"//components/spellcheck:buildflags",
|
||||||
|
"//components/sync",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (use_browser_spellchecker) {
|
|
||||||
sources += [
|
|
||||||
"//chrome/browser/spellchecker/spelling_request.cc",
|
|
||||||
"//chrome/browser/spellchecker/spelling_request.h",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
"//base:base_static",
|
|
||||||
"//components/language/core/browser",
|
|
||||||
"//components/spellcheck:buildflags",
|
|
||||||
"//components/sync",
|
|
||||||
]
|
|
||||||
|
|
||||||
public_deps = [
|
public_deps = [
|
||||||
"//components/spellcheck/browser",
|
"//components/spellcheck/browser",
|
||||||
"//components/spellcheck/common",
|
"//components/spellcheck/common",
|
||||||
|
|
|
@ -69,9 +69,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BUILDFLAG(ENABLE_BUILTIN_SPELLCHECKER)
|
#if BUILDFLAG(ENABLE_BUILTIN_SPELLCHECKER)
|
||||||
#include "chrome/browser/spellchecker/spellcheck_factory.h"
|
#include "chrome/browser/spellchecker/spellcheck_factory.h" // nogncheck
|
||||||
#include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h"
|
#include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h" // nogncheck
|
||||||
#include "chrome/browser/spellchecker/spellcheck_service.h"
|
#include "chrome/browser/spellchecker/spellcheck_service.h" // nogncheck
|
||||||
#include "components/spellcheck/browser/pref_names.h"
|
#include "components/spellcheck/browser/pref_names.h"
|
||||||
#include "components/spellcheck/common/spellcheck_common.h"
|
#include "components/spellcheck/common/spellcheck_common.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue