-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAndroid.bp
More file actions
100 lines (94 loc) · 2.14 KB
/
Copy pathAndroid.bp
File metadata and controls
100 lines (94 loc) · 2.14 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
rust_defaults {
name: "hbm_defaults",
edition: "2021",
vendor: true,
}
rust_library {
name: "libhbm",
crate_name: "hbm",
crate_root: "hbm/src/lib.rs",
defaults: [
"hbm_defaults",
],
rustlibs: [
"libash_latest_rust",
"libbitflags",
"libdrm_rust",
"liblibc",
"liblog_rust",
"libnix",
"libthiserror",
],
features: [
"ash",
],
}
rust_binary {
name: "android.hardware.graphics.allocator-service.hbm",
crate_name: "hbm_gralloc",
crate_root: "hbm-gralloc/src/main.rs",
defaults: [
"hbm_defaults",
],
// TODO update hardware/interfaces/graphics/allocator/aidl/Android.bp
rustlibs: [
"libhbm",
],
relative_install_path: "hw",
init_rc: ["hbm-gralloc/data/android.hardware.graphics.allocator-service.hbm.rc"],
vintf_fragments: ["hbm-gralloc/data/android.hardware.graphics.allocator-service.hbm.xml"],
enabled: false,
}
rust_ffi_static {
name: "libhbm_minigbm_rust",
crate_name: "hbm_minigbm",
crate_root: "hbm-minigbm/src/lib.rs",
defaults: [
"hbm_defaults",
],
rustlibs: [
"libhbm",
"liblibc",
"liblog_rust",
],
}
rust_ffi_static {
name: "libhbm_gralloc_mapper",
crate_name: "hbm_gralloc",
crate_root: "hbm-gralloc/src/lib.rs",
defaults: [
"hbm_defaults",
],
rustlibs: [
"libhbm",
"libimapper_stablec_bindgen",
],
enabled: false,
}
cc_library_shared {
name: "libhbm_minigbm",
whole_static_libs: ["libhbm_minigbm_rust"],
vendor: true,
shared_libs: ["liblog"],
export_include_dirs: ["hbm-minigbm/include"],
enabled: false,
arch: {
x86: {
enabled: true,
},
x86_64: {
enabled: true,
},
}
}
cc_library_shared {
name: "mapper.hbm",
static_libs: ["libhbm_gralloc_mapper"],
vendor: true,
vintf_fragments: ["hbm-gralloc/data/android.hardware.graphics.mapper.hbm.xml"],
// pull in AIMapper_loadIMapper
ldflags: [
"-Wl,--undefined=AIMapper_loadIMapper",
],
enabled: false,
}