blob: 44cf848b475f28d30456498899305090317c105a [file] [log] [blame]
Joel Galensone1f1e792021-07-20 12:49:59 -07001rust_bindgen {
2 name: "libsystem_properties_bindgen",
3 wrapper_src: "system_properties_bindgen.hpp",
4 crate_name: "system_properties_bindgen",
5 source_stem: "bindings",
6
7 bindgen_flags: [
8 "--size_t-is-usize",
9 "--allowlist-function=__system_property_find",
10 "--allowlist-function=__system_property_read_callback",
11 "--allowlist-function=__system_property_set",
12 "--allowlist-function=__system_property_wait",
13 ],
14}
15
16rust_library {
17 name: "libsystem_properties-rust",
18 crate_name: "system_properties",
19 srcs: [
20 "system_properties.rs",
21 ],
22 rustlibs: [
23 "libanyhow",
24 "libsystem_properties_bindgen",
25 "libthiserror",
26 ],
27 shared_libs: [
28 "libbase",
29 ],
30}