BUILD.gn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Copyright 2020 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. import("//build/config/chromeos/ui_mode.gni")
  5. assert(is_chromeos_ash, "File Manager is ash-chrome only")
  6. static_library("constants") {
  7. sources = [
  8. "url_constants.cc",
  9. "url_constants.h",
  10. ]
  11. }
  12. static_library("file_manager_untrusted_ui") {
  13. sources = [
  14. "file_manager_untrusted_ui.cc",
  15. "file_manager_untrusted_ui.h",
  16. "url_constants.cc",
  17. "url_constants.h",
  18. ]
  19. deps = [
  20. "//ash/webui/file_manager/untrusted_resources:file_manager_untrusted_resources",
  21. "//base",
  22. "//content/public/browser",
  23. "//content/public/common",
  24. "//ui/webui",
  25. "//url",
  26. ]
  27. }
  28. static_library("file_manager_ui") {
  29. sources = [
  30. "file_manager_page_handler.cc",
  31. "file_manager_page_handler.h",
  32. "file_manager_ui.cc",
  33. "file_manager_ui.h",
  34. "file_manager_ui_delegate.h",
  35. "resource_loader.cc",
  36. "resource_loader.h",
  37. "url_constants.cc",
  38. "url_constants.h",
  39. ]
  40. deps = [
  41. ":constants",
  42. ":file_manager_untrusted_ui",
  43. "//ash/webui/file_manager/mojom",
  44. "//ash/webui/file_manager/resources:file_manager_swa_resources",
  45. "//base",
  46. "//content/public/browser",
  47. "//ui/file_manager:file_manager_gen_resources",
  48. "//ui/file_manager:resources",
  49. "//ui/web_dialogs",
  50. ]
  51. }
  52. source_set("unit_tests") {
  53. testonly = true
  54. sources = [ "resource_loader_unittest.cc" ]
  55. deps = [
  56. ":file_manager_ui",
  57. "//content/test:test_support",
  58. ]
  59. }