BUILD.gn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Copyright 2015 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. static_library("flags_ui") {
  5. sources = [
  6. "feature_entry.cc",
  7. "feature_entry.h",
  8. "feature_entry_macros.h",
  9. "flags_state.cc",
  10. "flags_state.h",
  11. "flags_storage.h",
  12. "flags_ui_constants.cc",
  13. "flags_ui_constants.h",
  14. "flags_ui_metrics.cc",
  15. "flags_ui_metrics.h",
  16. "flags_ui_pref_names.cc",
  17. "flags_ui_pref_names.h",
  18. "pref_service_flags_storage.cc",
  19. "pref_service_flags_storage.h",
  20. ]
  21. deps = [
  22. ":switches",
  23. "//base",
  24. "//build:chromeos_buildflags",
  25. "//components/pref_registry",
  26. "//components/prefs",
  27. "//components/strings",
  28. "//components/variations",
  29. "//components/variations/field_trial_config",
  30. "//ui/base",
  31. "//url",
  32. ]
  33. }
  34. # This is a separate target so that the dependencies of
  35. # //chrome/common can be kept minimal.
  36. static_library("switches") {
  37. sources = [
  38. "flags_ui_switches.cc",
  39. "flags_ui_switches.h",
  40. ]
  41. }
  42. static_library("test_support") {
  43. testonly = true
  44. sources = [
  45. "flags_test_helpers.cc",
  46. "flags_test_helpers.h",
  47. ]
  48. deps = [
  49. ":flags_ui",
  50. "//base",
  51. "//testing/gtest",
  52. ]
  53. }
  54. source_set("unit_tests") {
  55. testonly = true
  56. sources = [ "flags_state_unittest.cc" ]
  57. deps = [
  58. ":flags_ui",
  59. ":switches",
  60. "//base",
  61. "//base/test:test_support",
  62. "//components/prefs:test_support",
  63. "//components/strings",
  64. "//components/variations",
  65. "//testing/gtest",
  66. ]
  67. }