blob: 62db2adb7a6b81101c07359b9884a002d0969286 [file] [log] [blame]
# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/buildflag_header.gni")
import("//components/feed/features.gni")
# This file is in a separate target so all targets in the build can refer to the
# buildflag header to get the necessary preprocessor defines without bringing in
# any of the feed targets.
buildflag_header("buildflags") {
header = "buildflags.h"
flags = [ "ENABLE_FEED_V2=$enable_feed_v2" ]
}
static_library("feature_list") {
sources = [
"feed_feature_list.cc",
"feed_feature_list.h",
]
deps = [
":buildflags",
"//base",
"//components/signin/public/base",
"//components/sync/base",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "feed_feature_list_unittest.cc" ]
deps = [
":feature_list",
"core/common:feed_core_common_unit_tests",
"core/v2:core_unit_tests",
"//base",
"//base/test:test_support",
"//components/signin/public/base",
"//components/sync/base",
"//testing/gtest",
]
}