chromium/components/thin_webview/BUILD.gn

# Copyright 2019 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/config.gni")
import("//build/config/android/rules.gni")

source_set("thin_webview") {
  sources = [
    "compositor_view.h",
    "thin_webview_initializer.cc",
    "thin_webview_initializer.h",
  ]
  public_deps = [ "//base" ]
}

android_library("java") {
  sources = [
    "java/src/org/chromium/components/thinwebview/CompositorView.java",
    "java/src/org/chromium/components/thinwebview/ThinWebView.java",
    "java/src/org/chromium/components/thinwebview/ThinWebViewConstraints.java",
  ]

  deps = [
    "//components/embedder_support/android:web_contents_delegate_java",
    "//content/public/android:content_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//ui/android:ui_java",
  ]
}

android_library("factory_java") {
  sources = [
    "java/src/org/chromium/components/thinwebview/CompositorViewFactory.java",
    "java/src/org/chromium/components/thinwebview/ThinWebViewFactory.java",
  ]

  deps = [
    ":java",
    "internal:internal_java",
    "//content/public/android:content_java",
    "//ui/android:ui_java",
  ]
}