OLD | NEW |
---|---|
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("//components/spellcheck/spellcheck_build_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", |
16 "spellcheck.h", | 16 "spellcheck.h", |
17 "spellcheck_language.cc", | 17 "spellcheck_language.cc", |
18 "spellcheck_language.h", | 18 "spellcheck_language.h", |
19 "spellcheck_panel.cc", | 19 "spellcheck_panel.cc", |
20 "spellcheck_panel.h", | 20 "spellcheck_panel.h", |
21 "spellcheck_provider.cc", | 21 "spellcheck_provider.cc", |
22 "spellcheck_provider.h", | 22 "spellcheck_provider.h", |
23 "spellcheck_worditerator.cc", | 23 "spellcheck_worditerator.cc", |
24 "spellcheck_worditerator.h", | 24 "spellcheck_worditerator.h", |
25 "spelling_engine.h", | 25 "spelling_engine.h", |
26 ] | 26 ] |
27 | 27 |
28 #TODO(xiaochengh): Negate these checks so that each file is listed only once. | |
Lei Zhang
2017/04/14 01:24:39
nit: space after '#'
Xiaocheng
2017/04/14 01:29:59
Whoops. Done.
| |
28 if (!use_browser_spellchecker) { | 29 if (!use_browser_spellchecker) { |
29 sources -= [ | 30 sources -= [ |
30 "platform_spelling_engine.cc", | 31 "platform_spelling_engine.cc", |
31 "platform_spelling_engine.h", | 32 "platform_spelling_engine.h", |
32 ] | 33 ] |
33 } | 34 } |
34 | 35 |
36 if (!has_spellcheck_panel) { | |
37 sources -= [ | |
38 "spellcheck_panel.cc", | |
39 "spellcheck_panel.h", | |
40 ] | |
41 } | |
42 | |
35 if (is_android) { | 43 if (is_android) { |
36 sources -= [ | 44 sources -= [ |
37 "hunspell_engine.cc", | 45 "hunspell_engine.cc", |
38 "hunspell_engine.h", | 46 "hunspell_engine.h", |
39 ] | 47 ] |
40 } | 48 } |
41 | 49 |
42 public_deps = [ | 50 public_deps = [ |
43 "//components/spellcheck:build_features", | 51 "//components/spellcheck:build_features", |
44 ] | 52 ] |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 ] | 112 ] |
105 | 113 |
106 if (is_mac && !is_ios) { | 114 if (is_mac && !is_ios) { |
107 deps += [ "//third_party/hunspell" ] | 115 deps += [ "//third_party/hunspell" ] |
108 } | 116 } |
109 | 117 |
110 if (is_win) { | 118 if (is_win) { |
111 cflags = [ "/wd4267" ] # conversion from 'size_t' to 'int' on x64 (crbug.co m/633312) | 119 cflags = [ "/wd4267" ] # conversion from 'size_t' to 'int' on x64 (crbug.co m/633312) |
112 } | 120 } |
113 } | 121 } |
OLD | NEW |