Include all dupe types (event when value is zero) in scan stats.
[chromium-blink-merge.git] / components / enhanced_bookmarks / BUILD.gn
blob7395daa8c67f801568c9d3713ae59b15e45d32a7
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 if (is_android) {
6   import("//build/config/android/config.gni")
7   import("//build/config/android/rules.gni")
10 # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks
11 source_set("enhanced_bookmarks") {
12   sources = [
13     "bookmark_image_service.cc",
14     "bookmark_image_service.h",
15     "bookmark_server_cluster_service.cc",
16     "bookmark_server_cluster_service.h",
17     "bookmark_server_search_service.cc",
18     "bookmark_server_search_service.h",
19     "bookmark_server_service.cc",
20     "bookmark_server_service.h",
21     "enhanced_bookmark_model.cc",
22     "enhanced_bookmark_model.h",
23     "enhanced_bookmark_model_observer.h",
24     "enhanced_bookmark_utils.cc",
25     "enhanced_bookmark_utils.h",
26     "image_record.cc",
27     "image_record.h",
28     "image_store.cc",
29     "image_store.h",
30     "image_store_util.cc",
31     "image_store_util.h",
32     "image_store_util_ios.mm",
33     "item_position.cc",
34     "item_position.h",
35     "metadata_accessor.cc",
36     "metadata_accessor.h",
37     "persistent_image_store.cc",
38     "persistent_image_store.h",
39     "pref_names.cc",
40     "pref_names.h",
41   ]
43   deps = [
44     "//base",
45     "//components/bookmarks/browser",
46     "//components/enhanced_bookmarks/proto",
47     "//components/keyed_service/core",
48     "//components/signin/core/browser",
49     "//components/sync_driver",
50     "//skia",
51     "//sql",
52     "//ui/gfx",
53     "//url",
54   ]
56   if (is_ios) {
57     sources -= [ "image_store_util.cc" ]
58   }
61 if (is_android) {
62   # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_launch_location_srcjar
63   java_cpp_enum("enhanced_bookmarks_launch_location_srcjar") {
64     sources = [
65       "enhanced_bookmark_utils.h",
66     ]
67     outputs = [
68       "org/chromium/chrome/browser/enhanced_bookmarks/LaunchLocation.java",
69     ]
70   }
73 # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_test_support
74 source_set("test_support") {
75   testonly = true
76   sources = [
77     "test_image_store.cc",
78     "test_image_store.h",
79   ]
81   deps = [
82     ":enhanced_bookmarks",
83     "//skia",
84     "//testing/gtest",
85   ]