1cc_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_binary_host { 16 name: "verity_signer", 17 srcs: [ 18 "VeritySigner.java", 19 "Utils.java", 20 ], 21 manifest: "VeritySigner.mf", 22 23 static_libs: ["bouncycastle-unbundled"], 24} 25 26java_binary_host { 27 name: "boot_signer", 28 srcs: [ 29 "BootSignature.java", 30 "VeritySigner.java", 31 "Utils.java", 32 ], 33 manifest: "BootSignature.mf", 34 35 static_libs: ["bouncycastle-unbundled"], 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 "libavb", 55 "libcrypto_utils", 56 "libcrypto", 57 "libext4_utils", 58 "liblog", 59 "libsparse", 60 "libsquashfs_utils", 61 "libbase", 62 "libz", 63 ], 64 65 cflags: [ 66 "-Wall", 67 "-Werror", 68 ], 69} 70 71cc_defaults { 72 name: "verity_tree_defaults", 73 cflags: [ 74 "-D_FILE_OFFSET_BITS=64", 75 "-Wall", 76 "-Werror", 77 ], 78 79 static_libs: [ 80 "libsparse", 81 "libz", 82 ], 83 shared_libs: [ 84 "libcrypto", 85 "libbase", 86 ], 87 88 host_supported: true, 89} 90 91cc_library_static { 92 name: "libverity_tree", 93 defaults: [ 94 "verity_tree_defaults", 95 ], 96 recovery_available: true, 97 98 export_include_dirs: ["include"], 99 srcs: [ 100 "build_verity_tree.cpp", 101 "build_verity_tree_utils.cpp", 102 "hash_tree_builder.cpp", 103 ], 104} 105 106cc_binary_host { 107 name: "build_verity_tree", 108 defaults: [ 109 "verity_tree_defaults", 110 ], 111 112 srcs: [ 113 "build_verity_tree_main.cpp", 114 ], 115 116 static_libs: [ 117 "libverity_tree", 118 ], 119} 120 121cc_test { 122 name: "build_verity_tree_test", 123 defaults: [ 124 "verity_tree_defaults", 125 ], 126 127 srcs: [ 128 "build_verity_tree_test.cpp", 129 ], 130 131 static_libs: [ 132 "libverity_tree", 133 ], 134} 135 136python_binary_host { 137 name: "build_verity_metadata", 138 srcs: ["build_verity_metadata.py"], 139 version: { 140 py2: { 141 enabled: true, 142 embedded_launcher: true, 143 }, 144 py3: { 145 enabled: false, 146 embedded_launcher: false, 147 }, 148 }, 149} 150