BUILD.gn 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. import("//testing/libfuzzer/fuzzer_test.gni")
  5. config("re2_config") {
  6. include_dirs = [ "src" ]
  7. }
  8. static_library("re2") {
  9. sources = [
  10. "src/re2/bitmap256.h",
  11. "src/re2/bitstate.cc",
  12. "src/re2/compile.cc",
  13. "src/re2/dfa.cc",
  14. "src/re2/filtered_re2.cc",
  15. "src/re2/filtered_re2.h",
  16. "src/re2/mimics_pcre.cc",
  17. "src/re2/nfa.cc",
  18. "src/re2/onepass.cc",
  19. "src/re2/parse.cc",
  20. "src/re2/perl_groups.cc",
  21. "src/re2/prefilter.cc",
  22. "src/re2/prefilter.h",
  23. "src/re2/prefilter_tree.cc",
  24. "src/re2/prefilter_tree.h",
  25. "src/re2/prog.cc",
  26. "src/re2/prog.h",
  27. "src/re2/re2.cc",
  28. "src/re2/re2.h",
  29. "src/re2/regexp.cc",
  30. "src/re2/regexp.h",
  31. "src/re2/set.cc",
  32. "src/re2/set.h",
  33. "src/re2/simplify.cc",
  34. "src/re2/sparse_array.h",
  35. "src/re2/sparse_set.h",
  36. "src/re2/stringpiece.cc",
  37. "src/re2/stringpiece.h",
  38. "src/re2/tostring.cc",
  39. "src/re2/unicode_casefold.cc",
  40. "src/re2/unicode_casefold.h",
  41. "src/re2/unicode_groups.cc",
  42. "src/re2/unicode_groups.h",
  43. "src/re2/walker-inl.h",
  44. "src/util/flags.h",
  45. "src/util/logging.h",
  46. "src/util/mix.h",
  47. "src/util/mutex.h",
  48. "src/util/rune.cc",
  49. "src/util/strutil.cc",
  50. "src/util/strutil.h",
  51. "src/util/utf.h",
  52. "src/util/util.h",
  53. ]
  54. configs -= [ "//build/config/compiler:chromium_code" ]
  55. configs += [ "//build/config/compiler:no_chromium_code" ]
  56. public_configs = [ ":re2_config" ]
  57. }
  58. fuzzer_test("third_party_re2_fuzzer") {
  59. sources = [ "src/re2/fuzzing/re2_fuzzer.cc" ]
  60. deps = [ ":re2" ]
  61. }