BUILD.gn 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.
  4. component("url_matcher") {
  5. sources = [
  6. "regex_set_matcher.cc",
  7. "regex_set_matcher.h",
  8. "url_matcher.cc",
  9. "url_matcher.h",
  10. "url_matcher_constants.cc",
  11. "url_matcher_constants.h",
  12. "url_matcher_export.h",
  13. "url_matcher_factory.cc",
  14. "url_matcher_factory.h",
  15. "url_util.cc",
  16. "url_util.h",
  17. ]
  18. defines = [ "URL_MATCHER_IMPLEMENTATION" ]
  19. public_deps = [
  20. "//base",
  21. "//base/third_party/dynamic_annotations",
  22. "//components/google/core/common",
  23. "//components/url_formatter",
  24. "//net",
  25. "//third_party/re2",
  26. "//url",
  27. ]
  28. }
  29. source_set("unit_tests") {
  30. testonly = true
  31. sources = [
  32. "regex_set_matcher_unittest.cc",
  33. "url_matcher_factory_unittest.cc",
  34. "url_matcher_unittest.cc",
  35. "url_util_unittest.cc",
  36. ]
  37. deps = [
  38. ":url_matcher",
  39. "//testing/gmock",
  40. "//testing/gtest",
  41. ]
  42. }