BUILD.gn 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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("web_dialogs") {
  5. sources = [
  6. "web_dialog_delegate.cc",
  7. "web_dialog_delegate.h",
  8. "web_dialog_ui.cc",
  9. "web_dialog_ui.h",
  10. "web_dialog_web_contents_delegate.cc",
  11. "web_dialog_web_contents_delegate.h",
  12. "web_dialogs_export.h",
  13. ]
  14. defines = [ "WEB_DIALOGS_IMPLEMENTATION" ]
  15. deps = [
  16. "//base",
  17. "//base/third_party/dynamic_annotations",
  18. "//content/public/browser",
  19. "//content/public/common",
  20. "//skia",
  21. "//ui/base",
  22. "//ui/webui",
  23. "//url",
  24. ]
  25. if (!is_ios) {
  26. deps += [ "//third_party/blink/public:blink_headers" ]
  27. }
  28. }
  29. static_library("test_support") {
  30. sources = [
  31. "test/test_web_contents_handler.cc",
  32. "test/test_web_contents_handler.h",
  33. "test/test_web_dialog_delegate.cc",
  34. "test/test_web_dialog_delegate.h",
  35. ]
  36. public_deps = [ ":web_dialogs" ]
  37. deps = [
  38. "//base",
  39. "//content/public/browser",
  40. "//skia",
  41. "//ui/gfx/geometry",
  42. "//url",
  43. ]
  44. }
  45. source_set("web_dialogs_unittests") {
  46. testonly = true
  47. sources = [ "web_dialog_ui_unittest.cc" ]
  48. deps = [
  49. ":web_dialogs",
  50. "//base",
  51. "//base/test:test_support",
  52. "//content/test:test_support",
  53. "//skia",
  54. "//testing/gtest",
  55. "//third_party/boringssl",
  56. ]
  57. }