| 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 component("url_matcher") { | 5 component("url_matcher") { |
| 6 sources = [ | 6 sources = [ |
| 7 "regex_set_matcher.cc", | 7 "regex_set_matcher.cc", |
| 8 "regex_set_matcher.h", | 8 "regex_set_matcher.h", |
| 9 "string_pattern.cc", | 9 "string_pattern.cc", |
| 10 "string_pattern.h", | 10 "string_pattern.h", |
| 11 "substring_set_matcher.cc", | 11 "substring_set_matcher.cc", |
| 12 "substring_set_matcher.h", | 12 "substring_set_matcher.h", |
| 13 "url_matcher.cc", | 13 "url_matcher.cc", |
| 14 "url_matcher.h", | 14 "url_matcher.h", |
| 15 "url_matcher_constants.cc", | 15 "url_matcher_constants.cc", |
| 16 "url_matcher_constants.h", | 16 "url_matcher_constants.h", |
| 17 "url_matcher_export.h", | 17 "url_matcher_export.h", |
| 18 "url_matcher_factory.cc", | 18 "url_matcher_factory.cc", |
| 19 "url_matcher_factory.h", | 19 "url_matcher_factory.h", |
| 20 "url_matcher_helpers.cc", | 20 "url_matcher_helpers.cc", |
| 21 "url_matcher_helpers.h", | 21 "url_matcher_helpers.h", |
| 22 ] | 22 ] |
| 23 | 23 |
| 24 defines = [ "URL_MATCHER_IMPLEMENTATION" ] | 24 defines = [ "URL_MATCHER_IMPLEMENTATION" ] |
| 25 | 25 |
| 26 deps = [ | 26 public_deps = [ |
| 27 "//base", | 27 "//base", |
| 28 "//base/third_party/dynamic_annotations", | 28 "//base/third_party/dynamic_annotations", |
| 29 "//third_party/re2", | 29 "//third_party/re2", |
| 30 "//url", | 30 "//url", |
| 31 ] | 31 ] |
| 32 | 32 |
| 33 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 33 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 34 } | 34 } |
| 35 |
| 36 source_set("unit_tests") { |
| 37 testonly = true |
| 38 sources = [ |
| 39 "regex_set_matcher_unittest.cc", |
| 40 "string_pattern_unittest.cc", |
| 41 "substring_set_matcher_unittest.cc", |
| 42 "url_matcher_factory_unittest.cc", |
| 43 "url_matcher_unittest.cc", |
| 44 ] |
| 45 deps = [ |
| 46 ":url_matcher", |
| 47 "//testing/gtest", |
| 48 ] |
| 49 } |
| OLD | NEW |