[AndroidWebViewShell] Replace rebaseline script with a new version using test_runner.py
[chromium-blink-merge.git] / components / enhanced_bookmarks / BUILD.gn
blob7702fbd64f1d7c25b573fa0c020f547036fad6b7
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_service.cc",
18     "bookmark_server_service.h",
19     "enhanced_bookmark_model.cc",
20     "enhanced_bookmark_model.h",
21     "enhanced_bookmark_model_observer.h",
22     "enhanced_bookmark_utils.cc",
23     "enhanced_bookmark_utils.h",
24     "image_record.cc",
25     "image_record.h",
26     "image_store.cc",
27     "image_store.h",
28     "image_store_util.cc",
29     "image_store_util.h",
30     "image_store_util_ios.mm",
31     "item_position.cc",
32     "item_position.h",
33     "metadata_accessor.cc",
34     "metadata_accessor.h",
35     "persistent_image_store.cc",
36     "persistent_image_store.h",
37     "pref_names.cc",
38     "pref_names.h",
39   ]
41   deps = [
42     "//base",
43     "//components/bookmarks/browser",
44     "//components/enhanced_bookmarks/proto",
45     "//components/keyed_service/core",
46     "//components/signin/core/browser",
47     "//components/sync_driver",
48     "//skia",
49     "//sql",
50     "//ui/gfx",
51     "//url",
52   ]
54   if (is_ios) {
55     sources -= [ "image_store_util.cc" ]
56   }
59 if (is_android) {
60   # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_java_enums_srcjar
61   java_cpp_enum("enhanced_bookmarks_java_enums_srcjar") {
62     sources = [
63       "enhanced_bookmark_utils.h",
64     ]
65     outputs = [
66       "org/chromium/chrome/browser/enhanced_bookmarks/LaunchLocation.java",
67     ]
68   }
71 # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_test_support
72 source_set("test_support") {
73   testonly = true
74   sources = [
75     "test_image_store.cc",
76     "test_image_store.h",
77   ]
79   deps = [
80     ":enhanced_bookmarks",
81     "//skia",
82     "//testing/gtest",
83   ]