blob: f6a810bedea1d23aff82e782d579b7b3d896ab90 [file] [log] [blame]
Paul Crowley7c57bf12021-02-02 16:26:57 -08001// Copyright 2021, 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
15rust_bindgen {
16 name: "libkeystore2_system_property_bindgen",
17 wrapper_src: "system_property_bindgen.hpp",
18 crate_name: "keystore2_system_property_bindgen",
19 source_stem: "bindings",
20
21 bindgen_flags: [
22 "--size_t-is-usize",
23 "--whitelist-function=__system_property_find",
24 "--whitelist-function=__system_property_read_callback",
25 "--whitelist-function=__system_property_wait",
26 ],
27}
28
29rust_library {
30 name: "libkeystore2_system_property-rust",
31 crate_name: "keystore2_system_property",
32 srcs: [
33 "lib.rs",
34 ],
35 rustlibs: [
36 "libanyhow",
37 "libkeystore2_system_property_bindgen",
38 "libthiserror",
39 ],
40 shared_libs: [
41 "libbase",
42 ],
43}