| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//testing/libfuzzer/fuzzer_test.gni") | 5 import("//testing/libfuzzer/fuzzer_test.gni") |
| 6 | 6 |
| 7 config("hunspell_config") { | 7 config("hunspell_config") { |
| 8 defines = [ | 8 defines = [ |
| 9 "HUNSPELL_STATIC", | 9 "HUNSPELL_STATIC", |
| 10 "HUNSPELL_CHROME_CLIENT", | 10 "HUNSPELL_CHROME_CLIENT", |
| 11 "USE_HUNSPELL", | 11 "USE_HUNSPELL", |
| 12 ] | 12 ] |
| 13 } | 13 } |
| 14 | 14 |
| 15 config("hunspell_warnings") { | 15 config("hunspell_warnings") { |
| 16 if (is_clang) { | 16 if (is_clang) { |
| 17 cflags = [ "-Wno-unused-private-field" ] | 17 cflags = [ "-Wno-unused-private-field" ] |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 source_set("hunspell") { | 21 static_library("hunspell") { |
| 22 sources = [ | 22 sources = [ |
| 23 "google/bdict.cc", | 23 "google/bdict.cc", |
| 24 "google/bdict.h", | 24 "google/bdict.h", |
| 25 "google/bdict_reader.cc", | 25 "google/bdict_reader.cc", |
| 26 "google/bdict_reader.h", | 26 "google/bdict_reader.h", |
| 27 "google/bdict_writer.cc", | 27 "google/bdict_writer.cc", |
| 28 "google/bdict_writer.h", | 28 "google/bdict_writer.h", |
| 29 "src/hunspell/affentry.cxx", | 29 "src/hunspell/affentry.cxx", |
| 30 "src/hunspell/affentry.hxx", | 30 "src/hunspell/affentry.hxx", |
| 31 "src/hunspell/affixmgr.cxx", | 31 "src/hunspell/affixmgr.cxx", |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 "fuzz/hunspell_fuzzer.cc", | 117 "fuzz/hunspell_fuzzer.cc", |
| 118 "fuzz/hunspell_fuzzer_hunspell_dictionary.h", | 118 "fuzz/hunspell_fuzzer_hunspell_dictionary.h", |
| 119 ] | 119 ] |
| 120 deps = [ | 120 deps = [ |
| 121 ":hunspell", | 121 ":hunspell", |
| 122 ] | 122 ] |
| 123 | 123 |
| 124 # This is a dictionary for the fuzzer, not a spellcheck dictionary. | 124 # This is a dictionary for the fuzzer, not a spellcheck dictionary. |
| 125 dict = "fuzz/hunspell.dict" | 125 dict = "fuzz/hunspell.dict" |
| 126 } | 126 } |
| OLD | NEW |