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

Unified Diff: third_party/re2/BUILD

Issue 1516543002: Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated update instructions Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/re2/AUTHORS ('k') | third_party/re2/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/BUILD
diff --git a/third_party/re2/BUILD b/third_party/re2/BUILD
new file mode 100644
index 0000000000000000000000000000000000000000..9ab54b3fc313b09486d2479db4a9037d0d857cd0
--- /dev/null
+++ b/third_party/re2/BUILD
@@ -0,0 +1,121 @@
+# Copyright 2009 The RE2 Authors. All Rights Reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+# Bazel (http://bazel.io/) BUILD file for RE2.
+
+licenses(["notice"])
+
+cc_library(
+ name = "re2",
+ srcs = [
+ "re2/bitstate.cc",
+ "re2/compile.cc",
+ "re2/dfa.cc",
+ "re2/filtered_re2.cc",
+ "re2/mimics_pcre.cc",
+ "re2/nfa.cc",
+ "re2/onepass.cc",
+ "re2/parse.cc",
+ "re2/perl_groups.cc",
+ "re2/prefilter.cc",
+ "re2/prefilter.h",
+ "re2/prefilter_tree.cc",
+ "re2/prefilter_tree.h",
+ "re2/prog.cc",
+ "re2/prog.h",
+ "re2/re2.cc",
+ "re2/regexp.cc",
+ "re2/regexp.h",
+ "re2/set.cc",
+ "re2/simplify.cc",
+ "re2/stringpiece.cc",
+ "re2/tostring.cc",
+ "re2/unicode_casefold.cc",
+ "re2/unicode_casefold.h",
+ "re2/unicode_groups.cc",
+ "re2/unicode_groups.h",
+ "re2/walker-inl.h",
+ "util/atomicops.h",
+ "util/flags.h",
+ "util/hash.cc",
+ "util/logging.cc",
+ "util/logging.h",
+ "util/mutex.h",
+ "util/rune.cc",
+ "util/sparse_array.h",
+ "util/sparse_set.h",
+ "util/stringprintf.cc",
+ "util/strutil.cc",
+ "util/utf.h",
+ "util/util.h",
+ "util/valgrind.cc",
+ "util/valgrind.h",
+ ],
+ hdrs = [
+ "re2/filtered_re2.h",
+ "re2/re2.h",
+ "re2/set.h",
+ "re2/stringpiece.h",
+ "re2/variadic_function.h",
+ ],
+ includes = ["."],
+ linkopts = ["-pthread"],
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "test",
+ testonly = 1,
+ srcs = [
+ "re2/testing/backtrack.cc",
+ "re2/testing/dump.cc",
+ "re2/testing/exhaustive_tester.cc",
+ "re2/testing/null_walker.cc",
+ "re2/testing/regexp_generator.cc",
+ "re2/testing/string_generator.cc",
+ "re2/testing/tester.cc",
+ "util/pcre.cc",
+ "util/random.cc",
+ "util/test.cc",
+ "util/thread.cc",
+ ],
+ hdrs = [
+ "re2/testing/exhaustive_tester.h",
+ "re2/testing/regexp_generator.h",
+ "re2/testing/string_generator.h",
+ "re2/testing/tester.h",
+ "util/pcre.h",
+ "util/random.h",
+ "util/test.h",
+ "util/thread.h",
+ ],
+ includes = ["."],
+ deps = [":re2"],
+)
+
+load("re2_test", "re2_test")
+
+re2_test("charclass_test")
+re2_test("compile_test")
+re2_test("filtered_re2_test")
+re2_test("mimics_pcre_test")
+re2_test("parse_test")
+re2_test("possible_match_test")
+re2_test("re2_test")
+re2_test("re2_arg_test")
+re2_test("regexp_test")
+re2_test("required_prefix_test")
+re2_test("search_test")
+re2_test("set_test")
+re2_test("simplify_test")
+re2_test("string_generator_test")
+
+re2_test("dfa_test")
+re2_test("exhaustive1_test")
+re2_test("exhaustive2_test")
+re2_test("exhaustive3_test")
+re2_test("exhaustive_test")
+re2_test("random_test")
+
+# TODO: Add support for regexp_benchmark.
« no previous file with comments | « third_party/re2/AUTHORS ('k') | third_party/re2/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698