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

Side by Side Diff: BUILD.gn

Issue 348183002: Add GN build file for third_party hunspell library. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/hunspell
Patch Set: REBASE on top of origin/master Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 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 = [
59 "OPENOFFICEORG",
60 ]
61
62 deps = [
63 "//base",
64 "//third_party/icu"
65 ]
66
67 cflags = []
68
69 if (is_win) {
70 cflags += [
71 # TODO(jschuh): http://crbug.com/167187 size_t -> int
72 "/wd4267",
73 ]
74 }
75
76 if (is_posix && !is_mac) {
77 cflags += [
78 "-Wno-unused-value",
79 "-Wno-unused-variable",
80 "-Wno-write-strings",
81 ]
82 }
83
84 if (is_linux) {
85 cflags += [
86 # affentry.hxx has NULL as default parameter for a FLAG in two
87 # places.
88 "-Wno-conversion-null",
89 ]
90 }
91
92 if (is_clang) {
93 cflags += [
94 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop.
95 "-Wno-empty-body",
96 # affentry.hxx has NULL as default parameter for a FLAG in two
97 # places.
98 "-Wno-null-conversion",
99 ]
100 }
101 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698