# Copyright 2017 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("device_feature_list_jni") {
sources = [ "src/org/chromium/device/DeviceFeatureMap.java" ]
}
android_library("device_feature_list_java") {
sources = [
"src/org/chromium/device/DeviceFeatureList.java",
"src/org/chromium/device/DeviceFeatureMap.java",
]
srcjar_deps = [ ":device_feature_list_jni" ]
deps = [
"//base:base_java",
"//build/android:build_java",
"//third_party/jni_zero:jni_zero_java",
]
}
android_library("nfc_java") {
sources = [ "src/org/chromium/device/nfc/NfcDelegate.java" ]
deps = [ "//base:base_java" ]
}
android_library("geolocation_java") {
sources = [ "src/org/chromium/device/geolocation/LocationProvider.java" ]
}
android_library("geolocation_java_test_support") {
testonly = true
sources = [
"src/org/chromium/device/geolocation/LocationProviderOverrider.java",
"src/org/chromium/device/geolocation/MockLocationProvider.java",
]
deps = [
":geolocation_java",
# Ideally this dependency should be removed. http://crbug.com/850357
"//services/device/geolocation:geolocation_java",
]
}