Roll src/third_party/WebKit 605a979:06cb9e9 (svn 202556:202558)
[chromium-blink-merge.git] / components / url_matcher / BUILD.gn
blob9ba616fb81276bc4d7e93325188c8b45f8214bb6
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
3 # found in the LICENSE file.
5 component("url_matcher") {
6   sources = [
7     "regex_set_matcher.cc",
8     "regex_set_matcher.h",
9     "string_pattern.cc",
10     "string_pattern.h",
11     "substring_set_matcher.cc",
12     "substring_set_matcher.h",
13     "url_matcher.cc",
14     "url_matcher.h",
15     "url_matcher_constants.cc",
16     "url_matcher_constants.h",
17     "url_matcher_export.h",
18     "url_matcher_factory.cc",
19     "url_matcher_factory.h",
20     "url_matcher_helpers.cc",
21     "url_matcher_helpers.h",
22   ]
24   defines = [ "URL_MATCHER_IMPLEMENTATION" ]
26   public_deps = [
27     "//base",
28     "//base/third_party/dynamic_annotations",
29     "//third_party/re2",
30     "//url",
31   ]
33   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
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   ]