Enhance the material design ripple API so the ripple's state can be controlled by...
[chromium-blink-merge.git] / third_party / hunspell / BUILD.gn
blob9e9f249e5b31b59ee0ca12a8768d4e9db942da67
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.
5 config("hunspell_config") {
6   defines = [
7     "HUNSPELL_STATIC",
8     "HUNSPELL_CHROME_CLIENT",
9     "USE_HUNSPELL",
10   ]
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   ]
54   config("hunspell_warnings") {
55     if (is_clang) {
56       cflags = [ "-Wno-unused-private-field" ]
57     }
58   }
60   configs -= [ "//build/config/compiler:chromium_code" ]
61   configs += [
62     "//build/config/compiler:no_chromium_code",
63     ":hunspell_warnings",
64   ]
65   public_configs = [ ":hunspell_config" ]
67   defines = [ "OPENOFFICEORG" ]
69   deps = [
70     "//base",
71     "//third_party/icu",
72   ]
74   cflags = []
76   if (is_win) {
77     cflags += [
78       # TODO(jschuh): http://crbug.com/167187 size_t -> int
79       "/wd4267",
80     ]
81   }
83   if (is_posix && !is_mac) {
84     cflags += [
85       "-Wno-unused-value",
86       "-Wno-unused-variable",
87       "-Wno-write-strings",
88     ]
89   }
91   if (is_posix && !is_mac && !is_ios) {
92     cflags += [
93       # affentry.hxx has NULL as default parameter for a FLAG in two
94       # places.
95       "-Wno-conversion-null",
96     ]
97   }
99   if (is_clang) {
100     cflags += [
101       # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop.
102       "-Wno-empty-body",
104       # affentry.hxx has NULL as default parameter for a FLAG in two
105       # places.
106       "-Wno-null-conversion",
107     ]
108   }