chromium/components/gcm_driver/instance_id/android/BUILD.gn

# Copyright 2016 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")

generate_jni("jni_headers") {
  sources = [ "java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java" ]
}

generate_jni("test_support_jni_headers") {
  testonly = true
  sources = [ "javatests/src/org/chromium/components/gcm_driver/instance_id/FakeInstanceIDWithSubtype.java" ]
}

android_library("instance_id_driver_java") {
  deps = [
    "$google_play_services_package:google_play_services_iid_java",
    "//base:base_java",
    "//build/android:build_java",
    "//components/gcm_driver/android:gcm_driver_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//third_party/jni_zero:jni_zero_java",
  ]

  srcjar_deps = [
    ":jni_headers",
    "//components/gcm_driver/instance_id:instance_id_java_enums_srcjar",
  ]

  sources = [
    "java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java",
    "java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java",
  ]
}

android_library("instance_id_driver_test_support_java") {
  deps = [
    ":instance_id_driver_java",
    "$google_play_services_package:google_play_services_iid_java",
    "//third_party/jni_zero:jni_zero_java",
  ]

  sources = [ "javatests/src/org/chromium/components/gcm_driver/instance_id/FakeInstanceIDWithSubtype.java" ]
}