chromium/components/facilitated_payments/android/java/BUILD.gn

# Copyright 2024 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")
import("//third_party/jni_zero/jni_zero.gni")

android_library("java") {
  sources = [
    "src/org/chromium/components/facilitated_payments/FacilitatedPaymentsApiClient.java",
    "src/org/chromium/components/facilitated_payments/FacilitatedPaymentsApiClientBridge.java",
  ]
  deps = [
    "//base:base_java",
    "//build/android:build_java",
    "//components/signin/public/android:java",
    "//content/public/android:content_full_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//third_party/jni_zero:jni_zero_java",
  ]
  srcjar_deps = [
    ":java_enums",
    ":jni_headers",
  ]
}

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

java_cpp_enum("java_enums") {
  sources = [
    "../../core/browser/facilitated_payments_api_client.h"
  ]
}