Revert of ui: Clean up damaged rects and clear them after painting. (patchset #2...
[chromium-blink-merge.git] / components / enhanced_bookmarks / BUILD.gn
blobbe2322b662f543a4c0158869ce4a3570cc496d9a
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     "//skia",
48     "//sql",
49     "//ui/gfx",
50     "//url",
51   ]
53   if (is_ios) {
54     sources -= [ "image_store_util.cc" ]
55   }
58 if (is_android) {
59   # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_launch_location_srcjar
60   java_cpp_enum("enhanced_bookmarks_launch_location_srcjar") {
61     sources = [
62       "enhanced_bookmark_utils.h",
63     ]
64     outputs = [
65       "org/chromium/chrome/browser/enhanced_bookmarks/LaunchLocation.java",
66     ]
67   }
70 # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_test_support
71 source_set("test_support") {
72   testonly = true
73   sources = [
74     "test_image_store.cc",
75     "test_image_store.h",
76   ]
78   deps = [
79     ":enhanced_bookmarks",
80     "//skia",
81     "//testing/gtest",
82   ]