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 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 | 6 |
7 # GYP: //components/bookmarks.gyp:bookmarks_browser (android part) | 7 # GYP: //components/bookmarks.gyp:bookmarks_browser (android part) |
8 source_set("android") { | 8 source_set("android") { |
9 sources = [ | 9 sources = [ |
10 "bookmark_id.cc", | 10 "bookmark_id.cc", |
11 "bookmark_id.h", | 11 "bookmark_id.h", |
12 "bookmark_type_list.h", | 12 "bookmark_type.h", |
13 "component_jni_registrar.cc", | 13 "component_jni_registrar.cc", |
14 "component_jni_registrar.h", | 14 "component_jni_registrar.h", |
15 ] | 15 ] |
16 deps = [ | 16 deps = [ |
17 ":bookmarks_jni_headers", | 17 ":bookmarks_jni_headers", |
| 18 "//base:base", |
18 ] | 19 ] |
19 } | 20 } |
20 | 21 |
21 # GYP: //components/bookmarks.gyp:bookmarks_java | 22 # GYP: //components/bookmarks.gyp:bookmarks_java |
22 android_library("bookmarks_java") { | 23 android_library("bookmarks_java") { |
23 deps = [ | 24 deps = [ |
24 "//base:base_java", | 25 "//base:base_java", |
25 ] | 26 ] |
26 srcjar_deps = [ ":bookmark_type_javagen" ] | 27 srcjar_deps = [ ":bookmark_type_javagen" ] |
27 DEPRECATED_java_in_dir = "java/src" | 28 DEPRECATED_java_in_dir = "java/src" |
28 } | 29 } |
29 | 30 |
30 # GYP: //components/bookmarks.gyp:bookmarks_jni_headers | 31 # GYP: //components/bookmarks.gyp:bookmarks_jni_headers |
31 generate_jni("bookmarks_jni_headers") { | 32 generate_jni("bookmarks_jni_headers") { |
32 jni_package = "components/bookmarks" | 33 jni_package = "components/bookmarks" |
33 sources = [ | 34 sources = [ |
34 "java/src/org/chromium/components/bookmarks/BookmarkId.java", | 35 "java/src/org/chromium/components/bookmarks/BookmarkId.java", |
35 ] | 36 ] |
36 } | 37 } |
37 | 38 |
38 # GYP: //components/bookmarks.gyp:bookmarks_type_java | 39 # GYP: //components/bookmarks.gyp:bookmarks_type_java |
39 java_cpp_enum("bookmark_type_javagen") { | 40 java_cpp_enum("bookmark_type_javagen") { |
40 sources = [ | 41 sources = [ |
41 "bookmark_type.h", | 42 "bookmark_type.h", |
42 ] | 43 ] |
43 outputs = [ | 44 outputs = [ |
44 "org/chromium/components/bookmarks/BookmarkType.java", | 45 "org/chromium/components/bookmarks/BookmarkType.java", |
45 ] | 46 ] |
46 } | 47 } |
OLD | NEW |