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

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

Issue 2818043002: Make SpellCheckPanel compiled and used only on Mac (Closed)
Patch Set: Created 3 years, 8 months 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("//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 if (!use_browser_spellchecker) { 28 if (!use_browser_spellchecker) {
Lei Zhang 2017/04/14 00:55:38 You may want to negate all of these and change to
Xiaocheng 2017/04/14 01:20:18 Sure. I'll do that in another patch. This patch f
29 sources -= [ 29 sources -= [
30 "platform_spelling_engine.cc", 30 "platform_spelling_engine.cc",
31 "platform_spelling_engine.h", 31 "platform_spelling_engine.h",
32 ] 32 ]
33 } 33 }
34 34
35 if (!has_spellcheck_panel) {
36 sources -= [
37 "spellcheck_panel.cc",
38 "spellcheck_panel.h",
39 ]
40 }
41
35 if (is_android) { 42 if (is_android) {
36 sources -= [ 43 sources -= [
37 "hunspell_engine.cc", 44 "hunspell_engine.cc",
38 "hunspell_engine.h", 45 "hunspell_engine.h",
39 ] 46 ]
40 } 47 }
41 48
42 public_deps = [ 49 public_deps = [
43 "//components/spellcheck:build_features", 50 "//components/spellcheck:build_features",
44 ] 51 ]
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 ] 111 ]
105 112
106 if (is_mac && !is_ios) { 113 if (is_mac && !is_ios) {
107 deps += [ "//third_party/hunspell" ] 114 deps += [ "//third_party/hunspell" ]
108 } 115 }
109 116
110 if (is_win) { 117 if (is_win) {
111 cflags = [ "/wd4267" ] # conversion from 'size_t' to 'int' on x64 (crbug.co m/633312) 118 cflags = [ "/wd4267" ] # conversion from 'size_t' to 'int' on x64 (crbug.co m/633312)
112 } 119 }
113 } 120 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698