Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: components/enhanced_bookmarks/BUILD.gn

Issue 570203002: Make chrome_shell_apk build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-chrome-jamesr
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/enhanced_bookmarks/BUILD.gn
diff --git a/components/enhanced_bookmarks/BUILD.gn b/components/enhanced_bookmarks/BUILD.gn
index 5ff23d6e0b2eeaf47702abc839b7af7faa70bf21..d5e569e4900ab8f4bb04f155809352b08b12dc1f 100644
--- a/components/enhanced_bookmarks/BUILD.gn
+++ b/components/enhanced_bookmarks/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks
source_set("enhanced_bookmarks") {
sources = [
"image_store.cc",
@@ -24,6 +25,17 @@ source_set("enhanced_bookmarks") {
"//url",
]
+ if (is_android) {
+ sources += [
+ "android/component_jni_registrar.cc",
+ "android/component_jni_registrar.h",
+ "android/enhanced_bookmarks_bridge.cc",
+ "android/enhanced_bookmarks_bridge.h",
+ ]
+
+ deps += [ ":jni_headers" ]
+ }
+
if (is_ios) {
sources -= [
"image_store_util.cc",
@@ -31,6 +43,7 @@ source_set("enhanced_bookmarks") {
}
}
+# GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_test_support
source_set("test_support") {
testonly = true
sources = [
@@ -44,3 +57,16 @@ source_set("test_support") {
"//testing/gtest",
]
}
+
+if (is_android) {
+ import("//build/config/android/rules.gni")
+
+ # GYP: //components/enhanced_bookmarks.gypi:enhanced_bookmarks_jni_headers
+ generate_jni("jni_headers") {
+ visibility = [ ":*" ]
+ jni_package = "enhanced_bookmarks"
+ sources = [
+ "android/java/src/org/chromium/components/enhancedbookmarks/EnhancedBookmarksBridge.java",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698