OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'targets': [ |
7 'use_system_re2%': 0, | 7 { |
8 }, | 8 'target_name': 're2', |
9 'conditions': [ | 9 'type': 'static_library', |
10 ['use_system_re2==0', { | 10 'include_dirs': [ |
11 'targets': [ | 11 '.', |
12 { | 12 '<(DEPTH)', |
13 'target_name': 're2', | 13 ], |
14 'type': 'static_library', | 14 'direct_dependent_settings': { |
| 15 'include_dirs': [ |
| 16 '.', |
| 17 '<(DEPTH)', |
| 18 ], |
| 19 }, |
| 20 'dependencies': [ |
| 21 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', |
| 22 ], |
| 23 'sources': [ |
| 24 're2/bitstate.cc', |
| 25 're2/compile.cc', |
| 26 're2/dfa.cc', |
| 27 're2/filtered_re2.cc', |
| 28 're2/filtered_re2.h', |
| 29 're2/mimics_pcre.cc', |
| 30 're2/nfa.cc', |
| 31 're2/onepass.cc', |
| 32 're2/parse.cc', |
| 33 're2/perl_groups.cc', |
| 34 're2/prefilter.cc', |
| 35 're2/prefilter.h', |
| 36 're2/prefilter_tree.cc', |
| 37 're2/prefilter_tree.h', |
| 38 're2/prog.cc', |
| 39 're2/prog.h', |
| 40 're2/re2.cc', |
| 41 're2/re2.h', |
| 42 're2/regexp.cc', |
| 43 're2/regexp.h', |
| 44 're2/set.cc', |
| 45 're2/set.h', |
| 46 're2/simplify.cc', |
| 47 're2/stringpiece.h', |
| 48 're2/tostring.cc', |
| 49 're2/unicode_casefold.cc', |
| 50 're2/unicode_casefold.h', |
| 51 're2/unicode_groups.cc', |
| 52 're2/unicode_groups.h', |
| 53 're2/variadic_function.h', |
| 54 're2/walker-inl.h', |
| 55 'util/arena.cc', |
| 56 'util/arena.h', |
| 57 'util/atomicops.h', |
| 58 'util/flags.h', |
| 59 'util/hash.cc', |
| 60 'util/logging.h', |
| 61 'util/mutex.h', |
| 62 'util/rune.cc', |
| 63 'util/sparse_array.h', |
| 64 'util/sparse_set.h', |
| 65 'util/stringpiece.cc', |
| 66 'util/stringprintf.cc', |
| 67 'util/strutil.cc', |
| 68 'util/utf.h', |
| 69 'util/util.h', |
| 70 ], |
| 71 'conditions': [ |
| 72 ['OS=="win"', { |
| 73 'sources': [ |
| 74 'mswin/stdint.h' |
| 75 ], |
15 'include_dirs': [ | 76 'include_dirs': [ |
16 '.', | 77 'mswin' |
17 '<(DEPTH)', | |
18 ], | 78 ], |
19 'direct_dependent_settings': { | 79 'msvs_disabled_warnings': [ 4018, 4722, 4267 ], |
20 'include_dirs': [ | 80 }] |
21 '.', | 81 ] |
22 '<(DEPTH)', | 82 }, |
23 ], | |
24 }, | |
25 'dependencies': [ | |
26 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.g
yp:dynamic_annotations', | |
27 ], | |
28 'sources': [ | |
29 're2/bitstate.cc', | |
30 're2/compile.cc', | |
31 're2/dfa.cc', | |
32 're2/filtered_re2.cc', | |
33 're2/filtered_re2.h', | |
34 're2/mimics_pcre.cc', | |
35 're2/nfa.cc', | |
36 're2/onepass.cc', | |
37 're2/parse.cc', | |
38 're2/perl_groups.cc', | |
39 're2/prefilter.cc', | |
40 're2/prefilter.h', | |
41 're2/prefilter_tree.cc', | |
42 're2/prefilter_tree.h', | |
43 're2/prog.cc', | |
44 're2/prog.h', | |
45 're2/re2.cc', | |
46 're2/re2.h', | |
47 're2/regexp.cc', | |
48 're2/regexp.h', | |
49 're2/set.cc', | |
50 're2/set.h', | |
51 're2/simplify.cc', | |
52 're2/stringpiece.h', | |
53 're2/tostring.cc', | |
54 're2/unicode_casefold.cc', | |
55 're2/unicode_casefold.h', | |
56 're2/unicode_groups.cc', | |
57 're2/unicode_groups.h', | |
58 're2/variadic_function.h', | |
59 're2/walker-inl.h', | |
60 'util/arena.cc', | |
61 'util/arena.h', | |
62 'util/atomicops.h', | |
63 'util/flags.h', | |
64 'util/hash.cc', | |
65 'util/logging.h', | |
66 'util/mutex.h', | |
67 'util/rune.cc', | |
68 'util/sparse_array.h', | |
69 'util/sparse_set.h', | |
70 'util/stringpiece.cc', | |
71 'util/stringprintf.cc', | |
72 'util/strutil.cc', | |
73 'util/utf.h', | |
74 'util/util.h', | |
75 ], | |
76 'conditions': [ | |
77 ['OS=="win"', { | |
78 'sources': [ | |
79 'mswin/stdint.h' | |
80 ], | |
81 'include_dirs': [ | |
82 'mswin' | |
83 ], | |
84 'msvs_disabled_warnings': [ 4018, 4722, 4267 ], | |
85 }] | |
86 ] | |
87 }, | |
88 ], | |
89 }, { # use_system_re2==1 | |
90 'targets': [ | |
91 { | |
92 'target_name': 're2', | |
93 'type': 'none', | |
94 'variables': { | |
95 'headers_root_path': '.', | |
96 'header_filenames': [ | |
97 're2/filtered_re2.h', | |
98 're2/re2.h', | |
99 're2/set.h', | |
100 're2/stringpiece.h', | |
101 're2/variadic_function.h', | |
102 ], | |
103 'shim_generator_additional_args': [ | |
104 # Chromium copy of re2 is patched to rename POSIX to POSIX_SYNTAX | |
105 # because of collision issues that break the build. | |
106 # Upstream refuses to make changes: | |
107 # http://code.google.com/p/re2/issues/detail?id=73 . | |
108 '--define', 'POSIX=POSIX_SYNTAX', | |
109 ], | |
110 }, | |
111 'includes': [ | |
112 '../../build/shim_headers.gypi', | |
113 ], | |
114 'link_settings': { | |
115 'libraries': [ | |
116 '-lre2', | |
117 ], | |
118 }, | |
119 } | |
120 ], | |
121 }], | |
122 ], | 83 ], |
123 } | 84 } |
OLD | NEW |