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

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

Issue 2198143002: Componentize spellcheck [3]: move renderer/ files to component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « components/spellcheck/common/BUILD.gn ('k') | components/spellcheck/renderer/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6
7 source_set("renderer") {
8 sources = [
9 "custom_dictionary_engine.cc",
10 "custom_dictionary_engine.h",
11 "hunspell_engine.cc",
12 "hunspell_engine.h",
13 "platform_spelling_engine.cc",
14 "platform_spelling_engine.h",
15 "spellcheck.cc",
16 "spellcheck.h",
17 "spellcheck_language.cc",
18 "spellcheck_language.h",
19 "spellcheck_provider.cc",
20 "spellcheck_provider.h",
21 "spellcheck_worditerator.cc",
22 "spellcheck_worditerator.h",
23 "spelling_engine.h",
24 ]
25
26 if (!use_browser_spellchecker) {
27 sources -= [
28 "platform_spelling_engine.cc",
29 "platform_spelling_engine.h",
30 ]
31 }
32
33 if (is_android) {
34 sources -= [
35 "hunspell_engine.cc",
36 "hunspell_engine.h",
37 ]
38 }
39
40 deps = [
41 "//base:i18n",
42 "//components/spellcheck/common",
43 "//content/public/renderer",
44 "//ipc",
45 "//third_party/WebKit/public:blink",
46 "//third_party/icu",
47 ]
48
49 if (!is_android) {
50 deps += [ "//third_party/hunspell" ]
51 }
52
53 if (is_win) {
54 cflags = [ "/wd4267" ] # conversion from 'size_t' to 'int' on x64 (crbug.co m/633312)
55 }
56 }
57
58 source_set("unit_tests") {
59 testonly = true
60 sources = [
61 "custom_dictionary_engine_unittest.cc",
62 "spellcheck_multilingual_unittest.cc",
63 "spellcheck_provider_hunspell_unittest.cc",
64 "spellcheck_provider_mac_unittest.cc",
65 "spellcheck_provider_test.cc",
66 "spellcheck_provider_test.h",
67 "spellcheck_unittest.cc",
68 "spellcheck_worditerator_unittest.cc",
69 ]
70 data = [
71 "//third_party/hunspell_dictionaries/",
72 ]
73
74 if (is_mac) {
75 sources -= [
76 # This tests Chrome's spellchecker which Mac doesn't use.
77 "spellcheck_multilingual_unittest.cc",
78 "spellcheck_provider_hunspell_unittest.cc",
79 ]
80 }
81
82 if (is_android) {
83 sources -= [
84 "spellcheck_multilingual_unittest.cc",
85 "spellcheck_provider_hunspell_unittest.cc",
86 "spellcheck_unittest.cc",
87 ]
88 }
89
90 deps = [
91 ":renderer",
92 "//base:i18n",
93 "//components/spellcheck/common",
94 "//ipc:ipc",
95 "//testing/gtest",
96 "//third_party/WebKit/public:blink",
97 "//third_party/icu",
98 ]
99
100 if (is_mac && !is_ios) {
101 deps += [ "//third_party/hunspell" ]
102 }
103
104 if (is_win) {
105 cflags = [ "/wd4267" ] # conversion from 'size_t' to 'int' on x64 (crbug.co m/633312)
106 }
107 }
OLDNEW
« no previous file with comments | « components/spellcheck/common/BUILD.gn ('k') | components/spellcheck/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698