1// Copyright 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 15package { 16 default_team: "trendy_team_android_hardware_backed_security", 17 default_applicable_licenses: ["system_authgraph_license"], 18} 19 20rust_library { 21 name: "libauthgraph_core", 22 crate_name: "authgraph_core", 23 srcs: ["src/lib.rs"], 24 host_supported: true, 25 vendor_available: true, 26 rustlibs: [ 27 "libauthgraph_wire", 28 "libcoset", 29 "liblog_rust", 30 "libzeroize", 31 ], 32} 33 34rust_library_rlib { 35 name: "libauthgraph_core_nostd", 36 crate_name: "authgraph_core", 37 srcs: ["src/lib.rs"], 38 vendor_available: true, 39 prefer_rlib: true, 40 no_stdlibs: true, 41 rustlibs: [ 42 "libauthgraph_wire_nostd", 43 "libcoset_nostd", 44 "liblog_rust_nostd", 45 "libzeroize_nostd", 46 ], 47 stdlibs: [ 48 "liballoc.rust_sysroot", 49 "libcompiler_builtins.rust_sysroot", 50 "libcore.rust_sysroot", 51 ], 52} 53 54rust_test { 55 name: "libauthgraph_core_unit_test", 56 crate_name: "authgraph_core_unit_test", 57 srcs: ["src/lib.rs"], 58 host_supported: true, 59 rustlibs: [ 60 "libauthgraph_wire", 61 "libcoset", 62 "libhex", 63 "liblog_rust", 64 "libzeroize", 65 ], 66 test_suites: ["general-tests"], 67} 68