BUILD.gn 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright 2021 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, "Non-Chrome-OS builds must not depend on //ash")
  6. component("fwupd") {
  7. defines = [ "IS_ASH_FIRMWARE_UPDATE_MANAGER_IMPL" ]
  8. deps = [
  9. "//ash/public/cpp",
  10. "//ash/public/mojom",
  11. "//ash/webui/firmware_update_ui/mojom",
  12. "//base:base",
  13. "//chromeos/ash/components/dbus/fwupd",
  14. "//crypto",
  15. "//dbus",
  16. ]
  17. sources = [
  18. "firmware_update_manager.cc",
  19. "firmware_update_manager.h",
  20. "histogram_util.cc",
  21. "histogram_util.h",
  22. ]
  23. }
  24. source_set("unit_tests") {
  25. testonly = true
  26. deps = [
  27. ":fwupd",
  28. "//ash",
  29. "//ash:test_support",
  30. "//ash/constants",
  31. "//ash/public/cpp",
  32. "//ash/public/mojom",
  33. "//ash/webui/firmware_update_ui/mojom",
  34. "//base/test:test_support",
  35. "//chromeos/ash/components/dbus/fwupd",
  36. "//dbus:test_support",
  37. "//services/network:test_support",
  38. "//services/network/public/cpp",
  39. "//testing/gmock",
  40. "//testing/gtest",
  41. "//ui/message_center:test_support",
  42. ]
  43. sources = [
  44. "fake_fwupd_download_client.cc",
  45. "fake_fwupd_download_client.h",
  46. "firmware_update_manager_unittest.cc",
  47. ]
  48. }