Home | History | Annotate | Download | only in re2
      1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 config("re2_config") {
      6   include_dirs = [ "." ]
      7 }
      8 
      9 gyp_file = "re2.gyp"
     10 external = true
     11 
     12 static_library("re2") {
     13   sources = [
     14     "mswin/stdint.h",
     15     "re2/bitstate.cc",
     16     "re2/compile.cc",
     17     "re2/dfa.cc",
     18     "re2/filtered_re2.cc",
     19     "re2/filtered_re2.h",
     20     "re2/mimics_pcre.cc",
     21     "re2/nfa.cc",
     22     "re2/onepass.cc",
     23     "re2/parse.cc",
     24     "re2/perl_groups.cc",
     25     "re2/prefilter.cc",
     26     "re2/prefilter.h",
     27     "re2/prefilter_tree.cc",
     28     "re2/prefilter_tree.h",
     29     "re2/prog.cc",
     30     "re2/prog.h",
     31     "re2/re2.cc",
     32     "re2/re2.h",
     33     "re2/regexp.cc",
     34     "re2/regexp.h",
     35     "re2/set.cc",
     36     "re2/set.h",
     37     "re2/simplify.cc",
     38     "re2/stringpiece.h",
     39     "re2/tostring.cc",
     40     "re2/unicode_casefold.cc",
     41     "re2/unicode_casefold.h",
     42     "re2/unicode_groups.cc",
     43     "re2/unicode_groups.h",
     44     "re2/variadic_function.h",
     45     "re2/walker-inl.h",
     46     "util/arena.cc",
     47     "util/arena.h",
     48     "util/atomicops.h",
     49     "util/flags.h",
     50     "util/hash.cc",
     51     "util/logging.h",
     52     "util/mutex.h",
     53     "util/rune.cc",
     54     "util/sparse_array.h",
     55     "util/sparse_set.h",
     56     "util/stringpiece.cc",
     57     "util/stringprintf.cc",
     58     "util/strutil.cc",
     59     "util/utf.h",
     60     "util/util.h",
     61   ]
     62 
     63   configs -= "//build/config/compiler:chromium_code"
     64   configs += "//build/config/compiler:no_chromium_code"
     65   direct_dependent_configs = [ ":re2_config" ]
     66 
     67   deps = [
     68     "//base/third_party/dynamic_annotations",
     69   ]
     70 
     71   if (is_win) {
     72     include_dirs = [ "mswin" ]
     73     # TODO(brettw) 'msvs_disabled_warnings': [ 4018, 4722, 4267 ],
     74   } else {
     75     sources -= "mswin/stdint.h"
     76   }
     77 }
     78