chromium/services/media_session/public/cpp/android/BUILD.gn

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

_jni_sources = [
  "java/src/org/chromium/services/media_session/MediaImage.java",
  "java/src/org/chromium/services/media_session/MediaMetadata.java",
  "java/src/org/chromium/services/media_session/MediaPosition.java",
]

generate_jni("media_session_jni_headers") {
  sources = _jni_sources
}

if (current_toolchain == default_toolchain) {
  android_library("media_session_java") {
    deps = [
      "//third_party/androidx:androidx_annotation_annotation_java",
      "//third_party/jni_zero:jni_zero_java",
      "//url:gurl_java",
    ]
    sources = _jni_sources
  }
}