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 'variables': { |
7 'use_system_re2%': 0, | |
7 }, | 8 }, |
8 'targets': [ | 9 'conditions': [ |
9 { | 10 ['use_system_re2==0', { |
10 'target_name': 're2', | 11 'targets': [ |
11 'type': 'static_library', | 12 { |
12 'include_dirs': [ | 13 'target_name': 're2', |
13 '.', | 14 'type': 'static_library', |
14 '<(DEPTH)', | 15 'include_dirs': [ |
16 '.', | |
17 '<(DEPTH)', | |
18 ], | |
19 'direct_dependent_settings': { | |
20 'include_dirs': [ | |
21 '.', | |
22 '<(DEPTH)', | |
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 ], | |
85 }] | |
86 ] | |
87 }, | |
15 ], | 88 ], |
16 'direct_dependent_settings': { | 89 }, { # use_system_re2==1 |
17 'include_dirs': [ | 90 'targets': [ |
18 '.', | 91 { |
19 '<(DEPTH)', | 92 'target_name': 're2', |
20 ], | 93 'type': 'none', |
21 }, | 94 'variables': { |
22 'dependencies': [ | 95 'headers_root_path': '.', |
23 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d ynamic_annotations', | 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', | |
Ryan Sleevi
2013/01/03 00:38:35
Can you explain why you do not need to handle prog
Paweł Hajdan Jr.
2013/01/03 01:05:43
This is what re2 snapshot I have installed into /u
| |
102 ], | |
103 }, | |
104 'includes': [ | |
105 '../../build/shim_headers.gypi', | |
106 ], | |
107 'link_settings': { | |
108 'libraries': [ | |
109 '-lre2', | |
110 ], | |
111 }, | |
112 } | |
24 ], | 113 ], |
25 'sources': [ | 114 }], |
26 're2/bitstate.cc', | |
27 're2/compile.cc', | |
28 're2/dfa.cc', | |
29 're2/filtered_re2.cc', | |
30 're2/filtered_re2.h', | |
31 're2/mimics_pcre.cc', | |
32 're2/nfa.cc', | |
33 're2/onepass.cc', | |
34 're2/parse.cc', | |
35 're2/perl_groups.cc', | |
36 're2/prefilter.cc', | |
37 're2/prefilter.h', | |
38 're2/prefilter_tree.cc', | |
39 're2/prefilter_tree.h', | |
40 're2/prog.cc', | |
41 're2/prog.h', | |
42 're2/re2.cc', | |
43 're2/re2.h', | |
44 're2/regexp.cc', | |
45 're2/regexp.h', | |
46 're2/set.cc', | |
47 're2/set.h', | |
48 're2/simplify.cc', | |
49 're2/stringpiece.h', | |
50 're2/tostring.cc', | |
51 're2/unicode_casefold.cc', | |
52 're2/unicode_casefold.h', | |
53 're2/unicode_groups.cc', | |
54 're2/unicode_groups.h', | |
55 're2/variadic_function.h', | |
56 're2/walker-inl.h', | |
57 'util/arena.cc', | |
58 'util/arena.h', | |
59 'util/atomicops.h', | |
60 'util/flags.h', | |
61 'util/hash.cc', | |
62 'util/logging.h', | |
63 'util/mutex.h', | |
64 'util/rune.cc', | |
65 'util/sparse_array.h', | |
66 'util/sparse_set.h', | |
67 'util/stringpiece.cc', | |
68 'util/stringprintf.cc', | |
69 'util/strutil.cc', | |
70 'util/utf.h', | |
71 'util/util.h', | |
72 ], | |
73 'conditions': [ | |
74 ['OS=="win"', { | |
75 'sources': [ | |
76 'mswin/stdint.h' | |
77 ], | |
78 'include_dirs': [ | |
79 'mswin' | |
80 ], | |
81 'msvs_disabled_warnings': [ 4018, 4722 ], | |
82 }] | |
83 ] | |
84 }, | |
85 ], | 115 ], |
86 } | 116 } |
OLD | NEW |