1 # Copyright (c) 2009 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.
8 'target_name': 'hunspell',
9 'type': 'static_library',
10 'msvs_guid': 'D5E8DCB2-9C61-446F-8BEE-B18CA0E0936E',
12 '../../base/base.gyp:base',
13 '../icu/icu.gyp:icuuc',
17 'HUNSPELL_CHROME_CLIENT',
23 'google/bdict_reader.cc',
24 'google/bdict_reader.h',
25 'google/bdict_writer.cc',
26 'google/bdict_writer.h',
27 'src/hunspell/affentry.cxx',
28 'src/hunspell/affentry.hxx',
29 'src/hunspell/affixmgr.cxx',
30 'src/hunspell/affixmgr.hxx',
31 'src/hunspell/atypes.hxx',
32 'src/hunspell/baseaffix.hxx',
33 'src/hunspell/csutil.cxx',
34 'src/hunspell/csutil.hxx',
35 'src/hunspell/dictmgr.cxx',
36 'src/hunspell/dictmgr.hxx',
37 'src/hunspell/filemgr.cxx',
38 'src/hunspell/filemgr.hxx',
39 'src/hunspell/hashmgr.cxx',
40 'src/hunspell/hashmgr.hxx',
41 'src/hunspell/htypes.hxx',
42 'src/hunspell/hunspell.cxx',
43 'src/hunspell/hunspell.h',
44 'src/hunspell/hunspell.hxx',
45 'src/hunspell/hunzip.cxx',
46 'src/hunspell/hunzip.hxx',
47 'src/hunspell/langnum.hxx',
48 'src/hunspell/phonet.cxx',
49 'src/hunspell/phonet.hxx',
50 'src/hunspell/replist.cxx',
51 'src/hunspell/replist.hxx',
52 'src/hunspell/suggestmgr.cxx',
53 'src/hunspell/suggestmgr.hxx',
54 'src/hunspell/utf_info.hxx',
55 'src/hunspell/w_char.hxx',
56 'src/parsers/textparser.cxx',
57 'src/parsers/textparser.hxx',
59 'direct_dependent_settings': {
62 'HUNSPELL_CHROME_CLIENT',
67 'clang_warning_flags': [
68 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop.
70 # affentry.hxx has NULL as default parameter for a FLAG in two
72 '-Wno-null-conversion',
73 # hunspell has unused private fields.
74 '-Wno-unused-private-field',
77 # TODO(jschuh): http://crbug.com/167187 size_t -> int
78 'msvs_disabled_warnings': [ 4267 ],
80 ['os_posix == 1 and OS != "mac"', {
83 '-Wno-unused-variable',
87 ['gcc_version >= 48', {
89 # affentry.hxx has NULL as default parameter for a FLAG in two
91 '-Wno-conversion-null',