1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 2016 The Chromium Authors. All rights reserved.
# 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/reading_list/core/reading_list.gni")
source_set("core") {
sources = [
"offline_url_utils.cc",
"offline_url_utils.h",
"reading_list_entry.cc",
"reading_list_entry.h",
"reading_list_model.cc",
"reading_list_model.h",
"reading_list_model_impl.cc",
"reading_list_model_impl.h",
"reading_list_model_observer.h",
"reading_list_model_storage.cc",
"reading_list_model_storage.h",
"reading_list_pref_names.cc",
"reading_list_pref_names.h",
"reading_list_store.cc",
"reading_list_store.h",
"reading_list_store_delegate.h",
]
deps = [
":flags",
"//base",
"//components/keyed_service/core",
"//components/prefs",
"//components/sync",
"//net",
"//url",
]
public_deps = [
"//components/reading_list/core/proto",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"offline_url_utils_unittest.cc",
"reading_list_entry_unittest.cc",
"reading_list_model_unittest.cc",
"reading_list_store_unittest.cc",
]
deps = [
":core",
"//base",
"//base/test:test_support",
"//components/sync",
"//components/sync:test_support_model",
"//testing/gtest",
"//url",
]
}
source_set("flags") {
sources = [
"reading_list_switches.cc",
"reading_list_switches.h",
]
deps = [
"//base",
]
public_deps = [
":reading_list_enable_flags",
]
}
buildflag_header("reading_list_enable_flags") {
header = "reading_list_enable_flags.h"
_enabled = is_ios && enable_reading_list
flags = [ "ENABLE_READING_LIST=$_enabled" ]
}
|