OLD | NEW |
| (Empty) |
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. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 'target_name': 'hunspell', | |
9 'type': 'static_library', | |
10 'msvs_guid': 'D5E8DCB2-9C61-446F-8BEE-B18CA0E0936E', | |
11 'dependencies': [ | |
12 '../../base/base.gyp:base', | |
13 '../icu/icu.gyp:icuuc', | |
14 ], | |
15 'defines': [ | |
16 'HUNSPELL_STATIC', | |
17 'HUNSPELL_CHROME_CLIENT', | |
18 'OPENOFFICEORG', | |
19 ], | |
20 'sources': [ | |
21 'google/bdict.cc', | |
22 'google/bdict.h', | |
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', | |
58 ], | |
59 'direct_dependent_settings': { | |
60 'defines': [ | |
61 'HUNSPELL_STATIC', | |
62 'HUNSPELL_CHROME_CLIENT', | |
63 'USE_HUNSPELL', | |
64 ], | |
65 }, | |
66 'variables': { | |
67 'clang_warning_flags': [ | |
68 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop. | |
69 '-Wno-empty-body', | |
70 # affentry.hxx has NULL as default parameter for a FLAG in two | |
71 # places. | |
72 '-Wno-null-conversion', | |
73 # hunspell has unused private fields. | |
74 '-Wno-unused-private-field', | |
75 ], | |
76 }, | |
77 # TODO(jschuh): http://crbug.com/167187 size_t -> int | |
78 'msvs_disabled_warnings': [ 4267 ], | |
79 'conditions': [ | |
80 ['os_posix == 1 and OS != "mac" and clang==0', { | |
81 'cflags': [ | |
82 '-Wno-unused-value', | |
83 '-Wno-unused-variable', | |
84 '-Wno-write-strings', | |
85 # affentry.hxx has NULL as default parameter for a FLAG in two | |
86 # places. | |
87 '-Wno-conversion-null', | |
88 ], | |
89 }], | |
90 ], | |
91 }, | |
92 ], | |
93 } | |
OLD | NEW |