Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Side by Side Diff: components/spellcheck/renderer/BUILD.gn

Issue 2495193003: Convert spellcheck to a buildflag header. (Closed)
Patch Set: Comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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("//components/spellcheck/spellcheck_build_features.gni")
6 6
7 source_set("renderer") { 7 source_set("renderer") {
8 sources = [ 8 sources = [
9 "custom_dictionary_engine.cc", 9 "custom_dictionary_engine.cc",
10 "custom_dictionary_engine.h", 10 "custom_dictionary_engine.h",
11 "hunspell_engine.cc", 11 "hunspell_engine.cc",
12 "hunspell_engine.h", 12 "hunspell_engine.h",
13 "platform_spelling_engine.cc", 13 "platform_spelling_engine.cc",
14 "platform_spelling_engine.h", 14 "platform_spelling_engine.h",
15 "spellcheck.cc", 15 "spellcheck.cc",
(...skipping 14 matching lines...) Expand all
30 ] 30 ]
31 } 31 }
32 32
33 if (is_android) { 33 if (is_android) {
34 sources -= [ 34 sources -= [
35 "hunspell_engine.cc", 35 "hunspell_engine.cc",
36 "hunspell_engine.h", 36 "hunspell_engine.h",
37 ] 37 ]
38 } 38 }
39 39
40 public_deps = [
41 "//components/spellcheck:build_features",
42 ]
40 deps = [ 43 deps = [
41 "//base:i18n", 44 "//base:i18n",
42 "//components/spellcheck/common", 45 "//components/spellcheck/common",
43 "//content/public/renderer", 46 "//content/public/renderer",
44 "//ipc", 47 "//ipc",
45 "//third_party/WebKit/public:blink", 48 "//third_party/WebKit/public:blink",
46 "//third_party/icu", 49 "//third_party/icu",
47 ] 50 ]
48 51
49 if (!is_android) { 52 if (!is_android) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 ] 101 ]
99 102
100 if (is_mac && !is_ios) { 103 if (is_mac && !is_ios) {
101 deps += [ "//third_party/hunspell" ] 104 deps += [ "//third_party/hunspell" ]
102 } 105 }
103 106
104 if (is_win) { 107 if (is_win) {
105 cflags = [ "/wd4267" ] # conversion from 'size_t' to 'int' on x64 (crbug.co m/633312) 108 cflags = [ "/wd4267" ] # conversion from 'size_t' to 'int' on x64 (crbug.co m/633312)
106 } 109 }
107 } 110 }
OLDNEW
« no previous file with comments | « components/spellcheck/common/spellcheck_switches.cc ('k') | components/spellcheck/renderer/hunspell_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698