| 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 = [ "src" ] |
| 7 } | 7 } |
| 8 | 8 |
| 9 static_library("re2") { | 9 static_library("re2") { |
| 10 sources = [ | 10 sources = [ |
| 11 "re2/bitstate.cc", | 11 "src/re2/bitstate.cc", |
| 12 "re2/compile.cc", | 12 "src/re2/compile.cc", |
| 13 "re2/dfa.cc", | 13 "src/re2/dfa.cc", |
| 14 "re2/filtered_re2.cc", | 14 "src/re2/filtered_re2.cc", |
| 15 "re2/filtered_re2.h", | 15 "src/re2/filtered_re2.h", |
| 16 "re2/mimics_pcre.cc", | 16 "src/re2/mimics_pcre.cc", |
| 17 "re2/nfa.cc", | 17 "src/re2/nfa.cc", |
| 18 "re2/onepass.cc", | 18 "src/re2/onepass.cc", |
| 19 "re2/parse.cc", | 19 "src/re2/parse.cc", |
| 20 "re2/perl_groups.cc", | 20 "src/re2/perl_groups.cc", |
| 21 "re2/prefilter.cc", | 21 "src/re2/prefilter.cc", |
| 22 "re2/prefilter.h", | 22 "src/re2/prefilter.h", |
| 23 "re2/prefilter_tree.cc", | 23 "src/re2/prefilter_tree.cc", |
| 24 "re2/prefilter_tree.h", | 24 "src/re2/prefilter_tree.h", |
| 25 "re2/prog.cc", | 25 "src/re2/prog.cc", |
| 26 "re2/prog.h", | 26 "src/re2/prog.h", |
| 27 "re2/re2.cc", | 27 "src/re2/re2.cc", |
| 28 "re2/re2.h", | 28 "src/re2/re2.h", |
| 29 "re2/regexp.cc", | 29 "src/re2/regexp.cc", |
| 30 "re2/regexp.h", | 30 "src/re2/regexp.h", |
| 31 "re2/set.cc", | 31 "src/re2/set.cc", |
| 32 "re2/set.h", | 32 "src/re2/set.h", |
| 33 "re2/simplify.cc", | 33 "src/re2/simplify.cc", |
| 34 "re2/stringpiece.cc", | 34 "src/re2/stringpiece.cc", |
| 35 "re2/stringpiece.h", | 35 "src/re2/stringpiece.h", |
| 36 "re2/tostring.cc", | 36 "src/re2/tostring.cc", |
| 37 "re2/unicode_casefold.cc", | 37 "src/re2/unicode_casefold.cc", |
| 38 "re2/unicode_casefold.h", | 38 "src/re2/unicode_casefold.h", |
| 39 "re2/unicode_groups.cc", | 39 "src/re2/unicode_groups.cc", |
| 40 "re2/unicode_groups.h", | 40 "src/re2/unicode_groups.h", |
| 41 "re2/variadic_function.h", | 41 "src/re2/variadic_function.h", |
| 42 "re2/walker-inl.h", | 42 "src/re2/walker-inl.h", |
| 43 "util/atomicops.h", | 43 "src/util/atomicops.h", |
| 44 "util/flags.h", | 44 "src/util/flags.h", |
| 45 "util/hash.cc", | 45 "src/util/hash.cc", |
| 46 "util/logging.cc", | 46 "src/util/logging.cc", |
| 47 "util/logging.h", | 47 "src/util/logging.h", |
| 48 "util/mutex.h", | 48 "src/util/mutex.h", |
| 49 "util/rune.cc", | 49 "src/util/rune.cc", |
| 50 "util/sparse_array.h", | 50 "src/util/sparse_array.h", |
| 51 "util/sparse_set.h", | 51 "src/util/sparse_set.h", |
| 52 "util/stringprintf.cc", | 52 "src/util/stringprintf.cc", |
| 53 "util/strutil.cc", | 53 "src/util/strutil.cc", |
| 54 "util/utf.h", | 54 "src/util/utf.h", |
| 55 "util/util.h", | 55 "src/util/util.h", |
| 56 "util/valgrind.cc", | 56 "src/util/valgrind.cc", |
| 57 "util/valgrind.h", | 57 "src/util/valgrind.h", |
| 58 ] | 58 ] |
| 59 | 59 |
| 60 configs -= [ "//build/config/compiler:chromium_code" ] | 60 configs -= [ "//build/config/compiler:chromium_code" ] |
| 61 configs += [ "//build/config/compiler:no_chromium_code" ] | 61 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 62 public_configs = [ ":re2_config" ] | 62 public_configs = [ ":re2_config" ] |
| 63 | 63 |
| 64 deps = [ | 64 deps = [ |
| 65 "//base/third_party/dynamic_annotations", | 65 "//base/third_party/dynamic_annotations", |
| 66 ] | 66 ] |
| 67 | 67 |
| 68 if (is_win) { | 68 if (is_win) { |
| 69 cflags = [ | 69 cflags = [ |
| 70 "/wd4018", # Signed/unsigned mismatch in comparison. | 70 "/wd4018", # Signed/unsigned mismatch in comparison. |
| 71 "/wd4722", # Destructor never terminates. | 71 "/wd4722", # Destructor never terminates. |
| 72 ] | 72 ] |
| 73 } | 73 } |
| 74 | 74 |
| 75 # TODO(battre) If Dr. Memory is ever migrated to GN, a flag needs to be | 75 # TODO(battre) If Dr. Memory is ever migrated to GN, a flag needs to be |
| 76 # added for this that adds a MEMORY_SANITIZER define. See re2.gyp. | 76 # added for this that adds a MEMORY_SANITIZER define. See re2.gyp. |
| 77 # if (is_drmemory) { | 77 # if (is_drmemory) { |
| 78 # defines += [ "MEMORY_SANITIZER" ] | 78 # defines += [ "MEMORY_SANITIZER" ] |
| 79 # } | 79 # } |
| 80 } | 80 } |
| OLD | NEW |