OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2014 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 config("hunspell_config") { | |
6 defines = [ | |
7 "HUNSPELL_STATIC", | |
8 "HUNSPELL_CHROME_CLIENT", | |
9 "USE_HUNSPELL", | |
10 ] | |
11 } | |
12 | |
13 source_set("hunspell") { | |
14 sources = [ | |
15 "google/bdict.cc", | |
16 "google/bdict.h", | |
17 "google/bdict_reader.cc", | |
18 "google/bdict_reader.h", | |
19 "google/bdict_writer.cc", | |
20 "google/bdict_writer.h", | |
21 "src/hunspell/affentry.cxx", | |
22 "src/hunspell/affentry.hxx", | |
23 "src/hunspell/affixmgr.cxx", | |
24 "src/hunspell/affixmgr.hxx", | |
25 "src/hunspell/atypes.hxx", | |
26 "src/hunspell/baseaffix.hxx", | |
27 "src/hunspell/csutil.cxx", | |
28 "src/hunspell/csutil.hxx", | |
29 "src/hunspell/dictmgr.cxx", | |
30 "src/hunspell/dictmgr.hxx", | |
31 "src/hunspell/filemgr.cxx", | |
32 "src/hunspell/filemgr.hxx", | |
33 "src/hunspell/hashmgr.cxx", | |
34 "src/hunspell/hashmgr.hxx", | |
35 "src/hunspell/htypes.hxx", | |
36 "src/hunspell/hunspell.cxx", | |
37 "src/hunspell/hunspell.h", | |
38 "src/hunspell/hunspell.hxx", | |
39 "src/hunspell/hunzip.cxx", | |
40 "src/hunspell/hunzip.hxx", | |
41 "src/hunspell/langnum.hxx", | |
42 "src/hunspell/phonet.cxx", | |
43 "src/hunspell/phonet.hxx", | |
44 "src/hunspell/replist.cxx", | |
45 "src/hunspell/replist.hxx", | |
46 "src/hunspell/suggestmgr.cxx", | |
47 "src/hunspell/suggestmgr.hxx", | |
48 "src/hunspell/utf_info.hxx", | |
49 "src/hunspell/w_char.hxx", | |
50 "src/parsers/textparser.cxx", | |
51 "src/parsers/textparser.hxx", | |
52 ] | |
53 | |
54 direct_dependent_configs = [ | |
55 ":hunspell_config", | |
56 ] | |
57 | |
58 defines = [ | |
brettw
2014/06/21 00:45:34
You can delete this, direct_dependent_configs also
tfarina
2014/06/21 00:53:51
I kept for OPENOFFICEORG
| |
59 "HUNSPELL_STATIC", | |
60 "HUNSPELL_CHROME_CLIENT", | |
61 "OPENOFFICEORG", | |
62 ] | |
63 | |
64 deps = [ | |
65 "//base", | |
66 "//third_party/icu" | |
67 ] | |
68 | |
69 cflags = [] | |
70 | |
71 if (is_win) { | |
72 cflags += [ | |
73 # TODO(jschuh): http://crbug.com/167187 size_t -> int | |
74 "/wd4267", | |
75 ] | |
76 } | |
77 | |
78 if (is_posix && !is_mac) { | |
79 cflags += [ | |
80 "-Wno-unused-value", | |
81 "-Wno-unused-variable", | |
82 "-Wno-write-strings", | |
83 ] | |
84 } | |
85 | |
86 if (is_posix && !is_mac && !is_ios) { # gcc_version >= 48 | |
brettw
2014/06/21 00:45:34
I'd do is_linux for this (I think this is what thi
tfarina
2014/06/21 00:53:51
Done.
tfarina
2014/06/21 01:56:43
Looks like it would have been better if we had wen
| |
87 cflags += [ | |
88 # affentry.hxx has NULL as default parameter for a FLAG in two | |
89 # places. | |
90 "-Wno-conversion-null", | |
91 ] | |
92 } | |
93 | |
94 if (is_clang) { | |
95 #"xcode_settings": { | |
brettw
2014/06/21 00:45:34
Just delete this. In GYP this was duplicated for t
tfarina
2014/06/21 00:53:51
Done.
| |
96 #"WARNING_CFLAGS": [ | |
97 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop. | |
98 #"-Wno-empty-body", | |
99 # affentry.hxx has NULL as default parameter for a FLAG in two | |
100 # places. | |
101 #"-Wno-null-conversion", | |
102 #] | |
103 #} | |
104 cflags += [ | |
105 "-Wno-empty-body", | |
106 "-Wno-null-conversion", | |
107 ] | |
108 } | |
109 } | |
OLD | NEW |