diff options
Diffstat (limited to 'chromium/chrome/browser/share/BUILD.gn')
-rw-r--r-- | chromium/chrome/browser/share/BUILD.gn | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chromium/chrome/browser/share/BUILD.gn b/chromium/chrome/browser/share/BUILD.gn index f203366f307..6b3ab347a6a 100644 --- a/chromium/chrome/browser/share/BUILD.gn +++ b/chromium/chrome/browser/share/BUILD.gn @@ -9,14 +9,24 @@ import("//chrome/browser/buildflags.gni") source_set("share") { sources = [ "bitmap_download_request.cc", + "default_ranking.cc", + "default_ranking.h", "editor_screenshot_task.cc", "link_to_text_bridge.cc", "qr_code_generation_request.cc", "qr_code_generation_request.h", "share_history.cc", "share_history.h", + "share_ranking.cc", + "share_ranking.h", ] + + if (is_android) { + sources += [ "default_ranking_android.cc" ] + } + deps = [ + ":jni_headers", "//base", "//chrome/browser/profiles:profile", "//chrome/browser/share/android:jni_headers", @@ -38,13 +48,29 @@ android_library("java") { sources = [ "android/java/src/org/chromium/chrome/browser/share/ChromeShareExtras.java", "android/java/src/org/chromium/chrome/browser/share/ShareDelegate.java", + "android/java/src/org/chromium/chrome/browser/share/ShareHistoryBridge.java", + "android/java/src/org/chromium/chrome/browser/share/ShareRankingBridge.java", "android/java/src/org/chromium/chrome/browser/share/share_sheet/ChromeOptionShareCallback.java", ] + annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ] + deps = [ + ":jni_headers", + "//base:base_java", + "//chrome/browser/preferences:java", + "//chrome/browser/profiles/android:java", "//chrome/browser/tab:java", "//components/browser_ui/share/android:java", + "//content/public/android:content_java", "//third_party/androidx:androidx_annotation_annotation_java", "//url:gurl_java", ] } + +generate_jni("jni_headers") { + sources = [ + "android/java/src/org/chromium/chrome/browser/share/ShareHistoryBridge.java", + "android/java/src/org/chromium/chrome/browser/share/ShareRankingBridge.java", + ] +} |