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") |
| 6 |
5 config("re2_config") { | 7 config("re2_config") { |
6 include_dirs = [ "src" ] | 8 include_dirs = [ "src" ] |
7 } | 9 } |
8 | 10 |
9 static_library("re2") { | 11 static_library("re2") { |
10 sources = [ | 12 sources = [ |
11 "src/re2/bitmap256.h", | 13 "src/re2/bitmap256.h", |
12 "src/re2/bitstate.cc", | 14 "src/re2/bitstate.cc", |
13 "src/re2/compile.cc", | 15 "src/re2/compile.cc", |
14 "src/re2/dfa.cc", | 16 "src/re2/dfa.cc", |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 "src/util/strutil.cc", | 52 "src/util/strutil.cc", |
51 "src/util/strutil.h", | 53 "src/util/strutil.h", |
52 "src/util/utf.h", | 54 "src/util/utf.h", |
53 "src/util/util.h", | 55 "src/util/util.h", |
54 ] | 56 ] |
55 | 57 |
56 configs -= [ "//build/config/compiler:chromium_code" ] | 58 configs -= [ "//build/config/compiler:chromium_code" ] |
57 configs += [ "//build/config/compiler:no_chromium_code" ] | 59 configs += [ "//build/config/compiler:no_chromium_code" ] |
58 public_configs = [ ":re2_config" ] | 60 public_configs = [ ":re2_config" ] |
59 } | 61 } |
| 62 |
| 63 fuzzer_test("third_party_re2_fuzzer") { |
| 64 sources = [ |
| 65 "src/re2/fuzzing/re2_fuzzer.cc", |
| 66 ] |
| 67 deps = [ |
| 68 ":re2", |
| 69 ] |
| 70 } |
OLD | NEW |