BUILD.gn 1010 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. component("constants") {
  6. output_name = "chromeos_constants"
  7. defines = [ "IS_CHROMEOS_CONSTANTS_IMPL" ]
  8. sources = [
  9. "chromeos_features.cc",
  10. "chromeos_features.h",
  11. "devicetype.cc",
  12. "devicetype.h",
  13. ]
  14. deps = [
  15. "//base",
  16. "//build:chromeos_buildflags",
  17. ]
  18. if (is_chromeos_lacros) {
  19. deps += [
  20. "//chromeos/crosapi/mojom",
  21. "//chromeos/startup",
  22. ]
  23. }
  24. }
  25. source_set("unit_tests") {
  26. testonly = true
  27. sources = [ "devicetype_unittest.cc" ]
  28. deps = [
  29. ":constants",
  30. "//base/test:test_support",
  31. "//build:chromeos_buildflags",
  32. "//chromeos/crosapi/mojom",
  33. "//testing/gtest",
  34. ]
  35. if (is_chromeos_lacros) {
  36. deps += [
  37. "//chromeos/lacros:lacros",
  38. "//chromeos/lacros:test_support",
  39. "//chromeos/startup",
  40. ]
  41. }
  42. }