blob: 526e7f2790777a2349248abaa6fb3cc682de7234 [file] [log] [blame]
Dan Willemsen9f022b42018-05-09 16:26:42 -07001cc_binary_host {
2 name: "generate_verity_key",
3 srcs: ["generate_verity_key.c"],
4 cflags: [
5 "-Wall",
6 "-Werror",
7 ],
8
9 shared_libs: [
10 "libcrypto_utils",
11 "libcrypto",
12 ],
13}
14
15java_library_host {
16 name: "VeritySigner",
17 srcs: [
18 "VeritySigner.java",
19 "Utils.java",
20 ],
21 manifest: "VeritySigner.mf",
22
23 static_libs: ["bouncycastle"],
24}
25
26java_library_host {
27 name: "BootSignature",
28 srcs: [
29 "BootSignature.java",
30 "VeritySigner.java",
31 "Utils.java",
32 ],
33 manifest: "BootSignature.mf",
34
35 static_libs: ["bouncycastle"],
36}
37
38cc_binary_host {
39 name: "verity_verifier",
40 srcs: ["verity_verifier.cpp"],
41
42 target: {
43 darwin: {
44 enabled: false,
45 },
46 },
47
48 sanitize: {
49 misc_undefined: ["integer"],
50 },
51 static_libs: [
52 "libfec",
53 "libfec_rs",
54 "libcrypto_utils",
55 "libcrypto",
56 "libext4_utils",
57 "libsparse",
58 "libsquashfs_utils",
59 "libbase",
60 "libz",
61 ],
62
63 cflags: [
64 "-Wall",
65 "-Werror",
66 ],
67}
68
Tianjie Xua30e0082018-06-26 14:29:13 -070069cc_defaults {
70 name: "verity_tree_defaults",
71 cflags: [
72 "-D_FILE_OFFSET_BITS=64",
73 "-Wall",
74 "-Werror",
75 ],
76
77 static_libs: [
78 "libsparse",
79 "libz",
80 ],
81 shared_libs: [
82 "libcrypto",
83 "libbase",
84 ],
85
86 host_supported: true,
87}
88
Tianjie Xub72fdb52018-06-25 12:41:27 -070089cc_library_static {
90 name: "libverity_tree",
Tianjie Xua30e0082018-06-26 14:29:13 -070091 defaults: [
92 "verity_tree_defaults",
93 ],
94
Tianjie Xu64edcd82018-07-23 15:11:23 -070095 export_include_dirs: ["include"],
Tianjie Xu3817ebe2018-06-21 16:25:23 -070096 srcs: [
Tianjie Xub72fdb52018-06-25 12:41:27 -070097 "build_verity_tree.cpp",
98 "build_verity_tree_utils.cpp",
Tianjie Xu3817ebe2018-06-21 16:25:23 -070099 "hash_tree_builder.cpp",
Tianjie Xu3817ebe2018-06-21 16:25:23 -0700100 ],
Tianjie Xub72fdb52018-06-25 12:41:27 -0700101}
102
103cc_binary_host {
104 name: "build_verity_tree",
Tianjie Xua30e0082018-06-26 14:29:13 -0700105 defaults: [
106 "verity_tree_defaults",
107 ],
108
Tianjie Xub72fdb52018-06-25 12:41:27 -0700109 srcs: [
Tianjie Xua30e0082018-06-26 14:29:13 -0700110 "build_verity_tree_main.cpp",
Tianjie Xub72fdb52018-06-25 12:41:27 -0700111 ],
112
113 static_libs: [
114 "libverity_tree",
Tianjie Xub72fdb52018-06-25 12:41:27 -0700115 ],
Tianjie Xua30e0082018-06-26 14:29:13 -0700116}
117
118cc_test {
119 name: "build_verity_tree_test",
120 defaults: [
121 "verity_tree_defaults",
Tianjie Xub72fdb52018-06-25 12:41:27 -0700122 ],
Tianjie Xua30e0082018-06-26 14:29:13 -0700123
124 srcs: [
125 "build_verity_tree_test.cpp",
126 ],
127
128 static_libs: [
129 "libverity_tree",
Dan Willemsen9f022b42018-05-09 16:26:42 -0700130 ],
131}