summaryrefslogtreecommitdiff
path: root/chromium/components/favicon/android/BUILD.gn
blob: 6da8dd4ce7d6ba0618a3518ea56bd0279e545eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 2020 The Chromium Authors. All rights reserved.
# 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")

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

  deps = [
    "//base:base_java",
    "//base:jni_java",
    "//components/browser_ui/util/android:java",
    "//components/embedder_support/android:browser_context_java",
    "//third_party/android_deps:androidx_annotation_annotation_java",
    "//url:gurl_java",
  ]

  srcjar_deps = [ "//components/favicon_base:favicon_base_enums_java" ]

  annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
}

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/embedder_support/android:browser_context",
    "//components/favicon/content",
    "//components/favicon/core",
    "//components/favicon_base",
    "//skia",
    "//ui/gfx",
    "//url",
    "//url:gurl_android",
  ]
}