OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks |
5 source_set("enhanced_bookmarks") { | 6 source_set("enhanced_bookmarks") { |
6 sources = [ | 7 sources = [ |
7 "image_store.cc", | 8 "image_store.cc", |
8 "image_store.h", | 9 "image_store.h", |
9 "image_store_util.cc", | 10 "image_store_util.cc", |
10 "image_store_util.h", | 11 "image_store_util.h", |
11 "image_store_util_ios.mm", | 12 "image_store_util_ios.mm", |
12 "metadata_accessor.cc", | 13 "metadata_accessor.cc", |
13 "metadata_accessor.h", | 14 "metadata_accessor.h", |
14 "persistent_image_store.cc", | 15 "persistent_image_store.cc", |
15 "persistent_image_store.h", | 16 "persistent_image_store.h", |
16 ] | 17 ] |
17 | 18 |
18 deps = [ | 19 deps = [ |
19 "//base", | 20 "//base", |
20 "//components/bookmarks/browser", | 21 "//components/bookmarks/browser", |
21 "//components/enhanced_bookmarks/proto", | 22 "//components/enhanced_bookmarks/proto", |
22 "//sql", | 23 "//sql", |
23 "//ui/gfx", | 24 "//ui/gfx", |
24 "//url", | 25 "//url", |
25 ] | 26 ] |
26 | 27 |
| 28 if (is_android) { |
| 29 sources += [ |
| 30 "android/component_jni_registrar.cc", |
| 31 "android/component_jni_registrar.h", |
| 32 "android/enhanced_bookmarks_bridge.cc", |
| 33 "android/enhanced_bookmarks_bridge.h", |
| 34 ] |
| 35 |
| 36 deps += [ ":jni_headers" ] |
| 37 } |
| 38 |
27 if (is_ios) { | 39 if (is_ios) { |
28 sources -= [ | 40 sources -= [ |
29 "image_store_util.cc", | 41 "image_store_util.cc", |
30 ] | 42 ] |
31 } | 43 } |
32 } | 44 } |
33 | 45 |
| 46 # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_test_support |
34 source_set("test_support") { | 47 source_set("test_support") { |
35 testonly = true | 48 testonly = true |
36 sources = [ | 49 sources = [ |
37 "test_image_store.cc", | 50 "test_image_store.cc", |
38 "test_image_store.h", | 51 "test_image_store.h", |
39 ] | 52 ] |
40 | 53 |
41 deps = [ | 54 deps = [ |
42 ":enhanced_bookmarks", | 55 ":enhanced_bookmarks", |
43 "//skia", | 56 "//skia", |
44 "//testing/gtest", | 57 "//testing/gtest", |
45 ] | 58 ] |
46 } | 59 } |
| 60 |
| 61 if (is_android) { |
| 62 import("//build/config/android/rules.gni") |
| 63 |
| 64 # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_jni_headers |
| 65 generate_jni("jni_headers") { |
| 66 visibility = [ ":*" ] |
| 67 jni_package = "enhanced_bookmarks" |
| 68 sources = [ |
| 69 "android/java/src/org/chromium/components/enhancedbookmarks/EnhancedBookma
rksBridge.java", |
| 70 ] |
| 71 } |
| 72 } |
OLD | NEW |