-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAndroid.bp
108 lines (98 loc) · 1.99 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
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
101
102
103
104
105
106
107
108
// Copyright 2012 The Android Open Source Project
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "libmkbootimg_abi_headers",
vendor_available: true,
export_include_dirs: ["include"],
}
cc_library_headers {
name: "bootimg_headers",
vendor_available: true,
recovery_available: true,
export_include_dirs: ["include/bootimg"],
host_supported: true,
target: {
windows: {
enabled: true,
},
},
apex_available: [
"//apex_available:platform",
"com.android.virt",
],
}
cc_library {
name: "libmkbootimg_abi_check",
vendor_available: true,
vndk: {
enabled: true,
},
srcs: [
"mkbootimg_dummy.cpp",
],
header_libs: ["libmkbootimg_abi_headers"],
export_header_lib_headers: ["libmkbootimg_abi_headers"],
}
python_defaults {
name: "mkbootimg_defaults",
version: {
py2: {
enabled: false,
},
py3: {
enabled: true,
embedded_launcher: true,
},
},
}
python_binary_host {
name: "mkbootimg",
defaults: ["mkbootimg_defaults"],
srcs: [
"mkbootimg.py",
],
required: [
"avbtool",
],
}
python_binary_host {
name: "unpack_bootimg",
defaults: ["mkbootimg_defaults"],
srcs: [
"unpack_bootimg.py",
],
}
python_binary_host {
name: "repack_bootimg",
defaults: ["mkbootimg_defaults"],
srcs: [
"repack_bootimg.py",
],
required: [
"lz4",
"minigzip",
"mkbootfs",
"mkbootimg",
"toybox",
"unpack_bootimg",
],
}
python_test_host {
name: "mkbootimg_test",
defaults: ["mkbootimg_defaults"],
main: "tests/mkbootimg_test.py",
srcs: [
"tests/mkbootimg_test.py",
],
data: [
":avbtool",
":mkbootimg",
":unpack_bootimg",
"tests/data/*",
],
test_options: {
unit_test: true,
},
}