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