chromium/components/favicon/android/BUILD.gn

# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/android/rules.gni")
import("//third_party/jni_zero/jni_zero.gni")

android_library("java") {
  sources = [ "java/src/org/chromium/components/favicon/LargeIconBridge.java" ]

  deps = [
    "//build/android:build_java",
    "//components/browser_ui/util/android:java",
    "//content/public/android:content_full_java",
    "//net/android:net_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//third_party/jni_zero:jni_zero_java",
    "//url:gurl_java",
  ]

  srcjar_deps = [
    ":jni_headers",
    "//components/favicon_base:favicon_base_enums_java",
  ]
}

generate_jni("jni_headers") {
  sources = [ "java/src/org/chromium/components/favicon/LargeIconBridge.java" ]
}

source_set("android") {
  sources = [
    "large_icon_bridge.cc",
    "large_icon_bridge.h",
  ]

  deps = [
    ":jni_headers",
    "//base",
    "//components/favicon/content",
    "//components/favicon/core",
    "//components/favicon_base",
    "//content/public/browser",
    "//skia",
    "//ui/gfx",
    "//url",
  ]
}