re2.gyp revision 5821806d5e7f356e8fa4b058a389a808ea183019
135922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran# Copyright (c) 2012 The Chromium Authors. All rights reserved.
235922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran# Use of this source code is governed by a BSD-style license that can be
335922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran# found in the LICENSE file.
447c7c1f526f1038abe7df350d02231220b3eecb9Bruce Cran
535922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran{
635922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran  'variables': {
735922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran  },
8f16b7405fff7c3fc1da421b6bdf8552cc99c3156Bruce Cran  'targets': [
9f16b7405fff7c3fc1da421b6bdf8552cc99c3156Bruce Cran    {
1047c7c1f526f1038abe7df350d02231220b3eecb9Bruce Cran      'target_name': 're2',
1147c7c1f526f1038abe7df350d02231220b3eecb9Bruce Cran      'type': 'static_library',
12f16b7405fff7c3fc1da421b6bdf8552cc99c3156Bruce Cran      'include_dirs': [
13f16b7405fff7c3fc1da421b6bdf8552cc99c3156Bruce Cran        '.',
1435922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran        '<(DEPTH)',
1535922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran      ],
1635922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran      'direct_dependent_settings': {
1735922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran        'include_dirs': [
1835922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran          '.',
1935922a2138c5adc91a2b4b185b5d756900bde87dBruce Cran          '<(DEPTH)',
20        ],
21      },
22      'dependencies': [
23        '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
24      ],
25      'sources': [
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  ],
86}
87