BUILD.gn 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 2018 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/buildflag_header.gni")
  5. import("//components/feed/features.gni")
  6. # This file is in a separate target so all targets in the build can refer to the
  7. # buildflag header to get the necessary preprocessor defines without bringing in
  8. # any of the feed targets.
  9. buildflag_header("buildflags") {
  10. header = "buildflags.h"
  11. flags = [ "ENABLE_FEED_V2=$enable_feed_v2" ]
  12. }
  13. static_library("feature_list") {
  14. sources = [
  15. "feed_feature_list.cc",
  16. "feed_feature_list.h",
  17. ]
  18. deps = [
  19. ":buildflags",
  20. "//base",
  21. "//components/signin/public/base",
  22. "//components/sync/base",
  23. ]
  24. }
  25. source_set("unit_tests") {
  26. testonly = true
  27. sources = [ "feed_feature_list_unittest.cc" ]
  28. deps = [
  29. ":feature_list",
  30. "core/v2:core_unit_tests",
  31. "//base",
  32. "//base/test:test_support",
  33. "//components/signin/public/base",
  34. "//components/sync/base",
  35. "//testing/gtest",
  36. ]
  37. }