Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / bookmarks / browser / BUILD.gn
blob5c9ca4edbe931b1db55171fc95df56b98ba2bb4b
1 # Copyright 2014 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.
5 import("//build/config/ui.gni")
7 source_set("browser") {
8   sources = [
9     "base_bookmark_model_observer.cc",
10     "base_bookmark_model_observer.h",
11     "bookmark_client.cc",
12     "bookmark_client.h",
13     "bookmark_codec.cc",
14     "bookmark_codec.h",
15     "bookmark_expanded_state_tracker.cc",
16     "bookmark_expanded_state_tracker.h",
17     "bookmark_index.cc",
18     "bookmark_index.h",
19     "bookmark_match.cc",
20     "bookmark_match.h",
21     "bookmark_model.cc",
22     "bookmark_model.h",
23     "bookmark_model_observer.h",
24     "bookmark_node.cc",
25     "bookmark_node.h",
26     "bookmark_node_data.cc",
27     "bookmark_node_data.h",
28     "bookmark_node_data_ios.cc",
29     "bookmark_node_data_mac.cc",
30     "bookmark_pasteboard_helper_mac.h",
31     "bookmark_pasteboard_helper_mac.mm",
32     "bookmark_storage.cc",
33     "bookmark_storage.h",
34     "bookmark_utils.cc",
35     "bookmark_utils.h",
36     "scoped_group_bookmark_actions.cc",
37     "scoped_group_bookmark_actions.h",
38     "startup_task_runner_service.cc",
39     "startup_task_runner_service.h",
40   ]
42   deps = [
43     "//base",
44     "//base:i18n",
45     "//base:prefs",
46     "//components/bookmarks/common",
47     "//components/favicon_base",
48     "//components/keyed_service/core",
49     "//components/pref_registry",
50     "//components/query_parser",
51     "//components/startup_metric_utils",
52     "//components/strings",
53     "//components/url_formatter",
54     "//net",
55     "//third_party/icu",
56     "//ui/base",
57     "//ui/gfx",
58     "//url",
59   ]
61   if (toolkit_views) {
62     sources += [ "bookmark_node_data_views.cc" ]
63     deps += [ "//ui/views" ]
64   }
67 source_set("unit_tests") {
68   testonly = true
69   sources = [
70     "bookmark_codec_unittest.cc",
71     "bookmark_expanded_state_tracker_unittest.cc",
72     "bookmark_index_unittest.cc",
73     "bookmark_model_unittest.cc",
74     "bookmark_utils_unittest.cc",
75   ]
77   if (toolkit_views) {
78     sources += [ "bookmark_node_data_unittest.cc" ]
79   }
81   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
83   deps = [
84     ":browser",
85     "//base:prefs",
86     "//base:prefs_test_support",
87     "//components/bookmarks/common",
88     "//components/bookmarks/test",
89     "//components/favicon_base",
90     "//components/pref_registry",
91     "//testing/gtest",
92     "//ui/base",
93     "//url",
94   ]