-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathAndroid.bp
62 lines (61 loc) · 1.83 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
53
54
55
56
57
58
59
60
61
62
android_app {
name: "BootControl",
srcs: [
"app/src/main/java/**/*.kt",
// TODO: fix setActiveBootSlot
"app/src/main/java/**/*.java",
"app/src/main/aidl/**/*.aidl",
],
jni_libs: ["libbootcontrol"],
resource_dirs: ["app/src/main/res"],
manifest: "app/src/main/AndroidManifest.xml",
static_libs: [
"androidx.activity_activity-compose",
"androidx.activity_activity-ktx",
"androidx.appcompat_appcompat",
"androidx.compose.foundation_foundation-layout",
"androidx.compose.material3_material3",
"androidx.compose.material_material-icons-extended",
"androidx.compose.material_material",
"androidx.compose.runtime_runtime",
"androidx.compose.ui_ui",
"androidx.core_core-ktx",
"androidx.core_core-splashscreen",
"androidx.lifecycle_lifecycle-runtime-ktx",
"androidx.lifecycle_lifecycle-viewmodel-compose",
"androidx.navigation_navigation-compose",
"com.google.android.material_material",
"com.github.topjohnwu.libsu_service",
"com.github.topjohnwu.libsu_core",
],
aidl: {
local_include_dirs: ["app/src/main/aidl"],
},
// TODO: build for api 29
platform_apis: true,
use_embedded_native_libs: true,
}
cc_library_shared {
name: "libbootcontrol",
srcs: ["app/src/main/cpp/libbootcontrol.cpp"],
static_libs: [
"android.hardware.boot-V1-ndk",
"android.hardware.boot@1.0",
"android.hardware.boot@1.1",
"android.hardware.boot@1.2",
"libboot_control_client",
],
shared_libs: [
"libhidlbase",
"libbinder_ndk",
"libbase",
"libcutils",
"libutils",
"liblog",
],
cflags: [
"-Wall",
"-Werror",
],
header_libs: ["jni_headers"],
}