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 source_set("re2") { |
10 sources = [ | 10 sources = [ |
11 "mswin/stdint.h", | 11 "mswin/stdint.h", |
12 "re2/bitstate.cc", | 12 "re2/bitstate.cc", |
13 "re2/compile.cc", | 13 "re2/compile.cc", |
14 "re2/dfa.cc", | 14 "re2/dfa.cc", |
15 "re2/filtered_re2.cc", | 15 "re2/filtered_re2.cc", |
16 "re2/filtered_re2.h", | 16 "re2/filtered_re2.h", |
17 "re2/mimics_pcre.cc", | 17 "re2/mimics_pcre.cc", |
18 "re2/nfa.cc", | 18 "re2/nfa.cc", |
19 "re2/onepass.cc", | 19 "re2/onepass.cc", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 if (is_win) { | 68 if (is_win) { |
69 include_dirs = [ "mswin" ] | 69 include_dirs = [ "mswin" ] |
70 cflags = [ | 70 cflags = [ |
71 "/wd4267", # Conversion from size_t. | 71 "/wd4267", # Conversion from size_t. |
72 "/wd4722", # Destructor never terminates. | 72 "/wd4722", # Destructor never terminates. |
73 ] | 73 ] |
74 } else { | 74 } else { |
75 sources -= [ "mswin/stdint.h" ] | 75 sources -= [ "mswin/stdint.h" ] |
76 } | 76 } |
77 } | 77 } |
OLD | NEW |