Upstream Enhanced Bookmark Model
[chromium-blink-merge.git] / components / enhanced_bookmarks / BUILD.gn
blob924b570f19a1abae334060c53425adc9a82cf761
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.h",
27     "image_store.cc",
28     "image_store.h",
29     "image_store_util.cc",
30     "image_store_util.h",
31     "image_store_util_ios.mm",
32     "item_position.cc",
33     "item_position.h",
34     "metadata_accessor.cc",
35     "metadata_accessor.h",
36     "persistent_image_store.cc",
37     "persistent_image_store.h",
38     "pref_names.cc",
39     "pref_names.h",
40   ]
42   deps = [
43     "//base",
44     "//components/bookmarks/browser",
45     "//components/enhanced_bookmarks/proto",
46     "//skia",
47     "//sql",
48     "//ui/gfx",
49     "//url",
50   ]
52   if (is_ios) {
53     sources -= [ "image_store_util.cc" ]
54   }
57 if (is_android) {
58   # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_launch_location_srcjar
59   java_cpp_enum("enhanced_bookmarks_launch_location_srcjar") {
60     sources = [
61       "enhanced_bookmark_utils.h",
62     ]
63     outputs = [
64       "org/chromium/chrome/browser/enhanced_bookmarks/LaunchLocation.java",
65     ]
66   }
69 # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_test_support
70 source_set("test_support") {
71   testonly = true
72   sources = [
73     "test_image_store.cc",
74     "test_image_store.h",
75   ]
77   deps = [
78     ":enhanced_bookmarks",
79     "//skia",
80     "//testing/gtest",
81   ]