blob: 23294005b96208841e88e8fae684469ce1b30163 [file] [log] [blame]
Janis Danisevskis212c68b2021-01-14 22:29:28 -08001// Copyright 2020, 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
15cc_library {
16 name: "libkeystore2_aaid",
17 srcs: [
18 "aaid.cpp",
19 ],
20 shared_libs: [
21 "libkeystore-attestation-application-id"
22 ],
23}
24
25rust_bindgen {
26 name: "libkeystore2_aaid_bindgen",
27 wrapper_src: "aaid.hpp",
28 crate_name: "keystore2_aaid_bindgen",
29 source_stem: "bindings",
30
31 bindgen_flags: [
32 "--size_t-is-usize",
33 "--whitelist-function=aaid_keystore_attestation_id",
34 "--whitelist-var=KEY_ATTESTATION_APPLICATION_ID_MAX_SIZE",
35 ],
36}
37
38rust_library {
39 name: "libkeystore2_aaid-rust",
40 crate_name: "keystore2_aaid",
41 srcs: [
42 "lib.rs",
43 ],
44 rustlibs: [
45 "libkeystore2_aaid_bindgen",
46 ],
47 shared_libs: [
48 "libkeystore2_aaid",
49 ],
50}