Rename GetIconID to GetIconId
[chromium-blink-merge.git] / components / enhanced_bookmarks / BUILD.gn
blobb762ae795a6cf7eb6e4a7426177231050a02ab43
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_server_cluster_service.cc",
14     "bookmark_server_cluster_service.h",
15     "bookmark_server_service.cc",
16     "bookmark_server_service.h",
17     "enhanced_bookmark_features.cc",
18     "enhanced_bookmark_features.h",
19     "enhanced_bookmark_model.cc",
20     "enhanced_bookmark_model.h",
21     "enhanced_bookmark_model_observer.h",
22     "enhanced_bookmark_switches.cc",
23     "enhanced_bookmark_switches.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     "//components/variations",
51     "//skia",
52     "//sql",
53     "//ui/gfx",
54     "//url",
55   ]
57   if (is_ios) {
58     sources -= [ "image_store_util.cc" ]
59   }
62 if (is_android) {
63   # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_java_enums_srcjar
64   java_cpp_enum("enhanced_bookmarks_java_enums_srcjar") {
65     sources = [
66       "enhanced_bookmark_utils.h",
67     ]
68     outputs = [
69       "org/chromium/chrome/browser/enhancedbookmarks/LaunchLocation.java",
70     ]
71   }
74 # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_test_support
75 source_set("test_support") {
76   testonly = true
77   sources = [
78     "test_image_store.cc",
79     "test_image_store.h",
80   ]
82   public_deps = [
83     ":enhanced_bookmarks",
84     "//skia",
85     "//testing/gtest",
86   ]
89 source_set("unit_tests") {
90   testonly = true
91   sources = [
92     "enhanced_bookmark_model_unittest.cc",
93     "image_store_ios_unittest.mm",
94     "image_store_unittest.cc",
95     "item_position_unittest.cc",
96   ]
97   deps = [
98     ":test_support",
99     "//components/enhanced_bookmarks/proto",
100   ]