OLD | NEW |
| (Empty) |
1 # Copyright (c) 2013 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 | |
5 gyp_file = "//out/gn_gyp/third_party/re2/re2.gyp" | |
6 | |
7 config("re2_config") { | |
8 include_dirs = [ "." ] | |
9 } | |
10 | |
11 static_library("re2") { | |
12 sources = [ | |
13 "mswin/stdint.h", | |
14 "re2/bitstate.cc", | |
15 "re2/compile.cc", | |
16 "re2/dfa.cc", | |
17 "re2/filtered_re2.cc", | |
18 "re2/filtered_re2.h", | |
19 "re2/mimics_pcre.cc", | |
20 "re2/nfa.cc", | |
21 "re2/onepass.cc", | |
22 "re2/parse.cc", | |
23 "re2/perl_groups.cc", | |
24 "re2/prefilter.cc", | |
25 "re2/prefilter.h", | |
26 "re2/prefilter_tree.cc", | |
27 "re2/prefilter_tree.h", | |
28 "re2/prog.cc", | |
29 "re2/prog.h", | |
30 "re2/re2.cc", | |
31 "re2/re2.h", | |
32 "re2/regexp.cc", | |
33 "re2/regexp.h", | |
34 "re2/set.cc", | |
35 "re2/set.h", | |
36 "re2/simplify.cc", | |
37 "re2/stringpiece.h", | |
38 "re2/tostring.cc", | |
39 "re2/unicode_casefold.cc", | |
40 "re2/unicode_casefold.h", | |
41 "re2/unicode_groups.cc", | |
42 "re2/unicode_groups.h", | |
43 "re2/variadic_function.h", | |
44 "re2/walker-inl.h", | |
45 "util/arena.cc", | |
46 "util/arena.h", | |
47 "util/atomicops.h", | |
48 "util/flags.h", | |
49 "util/hash.cc", | |
50 "util/logging.h", | |
51 "util/mutex.h", | |
52 "util/rune.cc", | |
53 "util/sparse_array.h", | |
54 "util/sparse_set.h", | |
55 "util/stringpiece.cc", | |
56 "util/stringprintf.cc", | |
57 "util/strutil.cc", | |
58 "util/utf.h", | |
59 "util/util.h", | |
60 ] | |
61 | |
62 configs -= "//build/config/compiler:chromium_code" | |
63 configs += "//build/config/compiler:no_chromium_code" | |
64 direct_dependent_configs = [ ":re2_config" ] | |
65 | |
66 deps = [ | |
67 "//base/third_party/dynamic_annotations", | |
68 ] | |
69 | |
70 if (is_win) { | |
71 include_dirs = [ "mswin" ] | |
72 } else { | |
73 sources -= "mswin/stdint.h" | |
74 } | |
75 } | |
OLD | NEW |