OLD | NEW |
(Empty) | |
| 1 # Copyright 2009 The RE2 Authors. All Rights Reserved. |
| 2 # Use of this source code is governed by a BSD-style |
| 3 # license that can be found in the LICENSE file. |
| 4 |
| 5 # Bazel (http://bazel.io/) BUILD file for RE2. |
| 6 |
| 7 licenses(["notice"]) |
| 8 |
| 9 cc_library( |
| 10 name = "re2", |
| 11 srcs = [ |
| 12 "re2/bitstate.cc", |
| 13 "re2/compile.cc", |
| 14 "re2/dfa.cc", |
| 15 "re2/filtered_re2.cc", |
| 16 "re2/mimics_pcre.cc", |
| 17 "re2/nfa.cc", |
| 18 "re2/onepass.cc", |
| 19 "re2/parse.cc", |
| 20 "re2/perl_groups.cc", |
| 21 "re2/prefilter.cc", |
| 22 "re2/prefilter.h", |
| 23 "re2/prefilter_tree.cc", |
| 24 "re2/prefilter_tree.h", |
| 25 "re2/prog.cc", |
| 26 "re2/prog.h", |
| 27 "re2/re2.cc", |
| 28 "re2/regexp.cc", |
| 29 "re2/regexp.h", |
| 30 "re2/set.cc", |
| 31 "re2/simplify.cc", |
| 32 "re2/stringpiece.cc", |
| 33 "re2/tostring.cc", |
| 34 "re2/unicode_casefold.cc", |
| 35 "re2/unicode_casefold.h", |
| 36 "re2/unicode_groups.cc", |
| 37 "re2/unicode_groups.h", |
| 38 "re2/walker-inl.h", |
| 39 "util/atomicops.h", |
| 40 "util/flags.h", |
| 41 "util/hash.cc", |
| 42 "util/logging.cc", |
| 43 "util/logging.h", |
| 44 "util/mutex.h", |
| 45 "util/rune.cc", |
| 46 "util/sparse_array.h", |
| 47 "util/sparse_set.h", |
| 48 "util/stringprintf.cc", |
| 49 "util/strutil.cc", |
| 50 "util/utf.h", |
| 51 "util/util.h", |
| 52 "util/valgrind.cc", |
| 53 "util/valgrind.h", |
| 54 ], |
| 55 hdrs = [ |
| 56 "re2/filtered_re2.h", |
| 57 "re2/re2.h", |
| 58 "re2/set.h", |
| 59 "re2/stringpiece.h", |
| 60 "re2/variadic_function.h", |
| 61 ], |
| 62 includes = ["."], |
| 63 linkopts = ["-pthread"], |
| 64 visibility = ["//visibility:public"], |
| 65 ) |
| 66 |
| 67 cc_library( |
| 68 name = "test", |
| 69 testonly = 1, |
| 70 srcs = [ |
| 71 "re2/testing/backtrack.cc", |
| 72 "re2/testing/dump.cc", |
| 73 "re2/testing/exhaustive_tester.cc", |
| 74 "re2/testing/null_walker.cc", |
| 75 "re2/testing/regexp_generator.cc", |
| 76 "re2/testing/string_generator.cc", |
| 77 "re2/testing/tester.cc", |
| 78 "util/pcre.cc", |
| 79 "util/random.cc", |
| 80 "util/test.cc", |
| 81 "util/thread.cc", |
| 82 ], |
| 83 hdrs = [ |
| 84 "re2/testing/exhaustive_tester.h", |
| 85 "re2/testing/regexp_generator.h", |
| 86 "re2/testing/string_generator.h", |
| 87 "re2/testing/tester.h", |
| 88 "util/pcre.h", |
| 89 "util/random.h", |
| 90 "util/test.h", |
| 91 "util/thread.h", |
| 92 ], |
| 93 includes = ["."], |
| 94 deps = [":re2"], |
| 95 ) |
| 96 |
| 97 load("re2_test", "re2_test") |
| 98 |
| 99 re2_test("charclass_test") |
| 100 re2_test("compile_test") |
| 101 re2_test("filtered_re2_test") |
| 102 re2_test("mimics_pcre_test") |
| 103 re2_test("parse_test") |
| 104 re2_test("possible_match_test") |
| 105 re2_test("re2_test") |
| 106 re2_test("re2_arg_test") |
| 107 re2_test("regexp_test") |
| 108 re2_test("required_prefix_test") |
| 109 re2_test("search_test") |
| 110 re2_test("set_test") |
| 111 re2_test("simplify_test") |
| 112 re2_test("string_generator_test") |
| 113 |
| 114 re2_test("dfa_test") |
| 115 re2_test("exhaustive1_test") |
| 116 re2_test("exhaustive2_test") |
| 117 re2_test("exhaustive3_test") |
| 118 re2_test("exhaustive_test") |
| 119 re2_test("random_test") |
| 120 |
| 121 # TODO: Add support for regexp_benchmark. |
OLD | NEW |