1// Copyright (C) 2022 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14// 15// package { 16// default_applicable_licenses: ["Android-Apache-2.0"], 17// } 18// 19// rust_defaults { 20// name: "libuwb_adaptation_jni_defaults", 21// crate_name: "uwb_adaptation_jni", 22// lints: "android", 23// clippy_lints: "android", 24// min_sdk_version: "Tiramisu", 25// srcs: ["jni/src/lib.rs"], 26// rustlibs: [ 27// "libjni", 28// "liblog_rust", 29// "liblogger", 30// "libnum_traits", 31// "libthiserror", 32// "libtokio", 33// "libuci_hal_android", 34// "libuwb_core", 35// "libuwb_uci_packets", 36// ], 37// prefer_rlib: true, 38// host_supported: true, 39// } 40// 41// rust_ffi_shared { 42// name: "libuwb_adaptation_jni", 43// defaults: ["libuwb_adaptation_jni_defaults"], 44// // workaround for hwasan issue until aosp/2201940 is merged 45// sanitize: { 46// never: true, 47// }, 48// } 49// 50// rust_test { 51// name: "libuwb_adaptation_jni_tests", 52// defaults: ["libuwb_adaptation_jni_defaults"], 53// target: { 54// android: { 55// test_suites: [ 56// "general-tests", 57// ], 58// test_config_template: "jni/uwb_rust_test_config_template.xml", 59// }, 60// host: { 61// test_suites: [ 62// "general-tests", 63// ], 64// data_libs: [ 65// "libandroid_runtime_lazy", 66// "libbase", 67// "libbinder_ndk", 68// "libbinder", 69// "libcutils", 70// "liblog", 71// "libutils", 72// ], 73// }, 74// }, 75// auto_gen_config: true, 76// } 77// 78// java_defaults { 79// name: "libuwb_adaptation_service_defaults", 80// defaults: ["uwb-module-sdk-version-defaults"], 81// srcs: ["java/**/*.java"] 82// } 83// 84// java_library { 85// name: "libuwb_adaptation_service", 86// required: ["libuwb_adaptation_jni"], 87// libs: ["service-uwb"], 88// static_libs: [ 89// "com.uwb.support.base", 90// "com.uwb.support.ccc", 91// "com.uwb.support.fira", 92// "com.uwb.support.generic", 93// "com.uwb.support.multichip", 94// "com.uwb.support.profile", 95// ], 96// defaults: ["libuwb_adaptation_service_defaults"], 97// } 98