forked from Gnurou/v4l2r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.bp
52 lines (48 loc) · 1.3 KB
/
Android.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// This file is generated by cargo2android.py --device --run --dependencies --no-host --onefile.
// acourbot: added 'vendor_available: true' to libv4l2r and libv4l2r_ffi_static.
// acourbot: added 'ffi' to the 'include_dirs' of libv4l2r_ffi_static.
rust_library {
name: "libv4l2r",
crate_name: "v4l2r",
vendor_available: true,
srcs: ["lib/src/lib.rs"],
edition: "2018",
rustlibs: [
"libanyhow",
"libbitflags",
"liblibc",
"liblog_rust",
"libnix",
"libthiserror",
],
}
rust_ffi_static {
name: "libv4l2r_ffi_static",
crate_name: "v4l2r_ffi",
vendor_available: true,
srcs: ["ffi/src/lib.rs"],
edition: "2018",
features: ["android"],
rustlibs: [
"libandroid_logger",
"libanyhow",
"liblog_rust",
"libnix",
"libv4l2r",
],
include_dirs: [
"ffi"
],
}
// dependent_library ["feature_list"]
// anyhow-1.0.38 "default,std"
// bitflags-1.2.1 "default"
// cfg-if-1.0.0
// libc-0.2.86 "default,extra_traits,std"
// nix-0.19.1
// proc-macro2-1.0.24 "default,proc-macro"
// quote-1.0.8 "default,proc-macro"
// syn-1.0.60 "clone-impls,default,derive,parsing,printing,proc-macro,quote"
// thiserror-1.0.23
// thiserror-impl-1.0.23
// unicode-xid-0.2.1 "default"