Dan Willemsen | 9f022b4 | 2018-05-09 16:26:42 -0700 | [diff] [blame] | 1 | cc_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 | |
| 15 | java_library_host { |
| 16 | name: "VeritySigner", |
| 17 | srcs: [ |
| 18 | "VeritySigner.java", |
| 19 | "Utils.java", |
| 20 | ], |
| 21 | manifest: "VeritySigner.mf", |
| 22 | |
Neil Fuller | 8bf1b54 | 2018-07-12 19:44:10 +0100 | [diff] [blame] | 23 | static_libs: ["bouncycastle-unbundled"], |
Dan Willemsen | 9f022b4 | 2018-05-09 16:26:42 -0700 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | java_library_host { |
| 27 | name: "BootSignature", |
| 28 | srcs: [ |
| 29 | "BootSignature.java", |
| 30 | "VeritySigner.java", |
| 31 | "Utils.java", |
| 32 | ], |
| 33 | manifest: "BootSignature.mf", |
| 34 | |
Neil Fuller | 8bf1b54 | 2018-07-12 19:44:10 +0100 | [diff] [blame] | 35 | static_libs: ["bouncycastle-unbundled"], |
Dan Willemsen | 9f022b4 | 2018-05-09 16:26:42 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | cc_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 Xu | a30e008 | 2018-06-26 14:29:13 -0700 | [diff] [blame] | 69 | cc_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 Xu | b72fdb5 | 2018-06-25 12:41:27 -0700 | [diff] [blame] | 89 | cc_library_static { |
| 90 | name: "libverity_tree", |
Tianjie Xu | a30e008 | 2018-06-26 14:29:13 -0700 | [diff] [blame] | 91 | defaults: [ |
| 92 | "verity_tree_defaults", |
| 93 | ], |
Dan Willemsen | cecb941 | 2018-10-23 14:15:23 -0700 | [diff] [blame] | 94 | recovery_available: true, |
Tianjie Xu | a30e008 | 2018-06-26 14:29:13 -0700 | [diff] [blame] | 95 | |
Tianjie Xu | 64edcd8 | 2018-07-23 15:11:23 -0700 | [diff] [blame] | 96 | export_include_dirs: ["include"], |
Tianjie Xu | 3817ebe | 2018-06-21 16:25:23 -0700 | [diff] [blame] | 97 | srcs: [ |
Tianjie Xu | b72fdb5 | 2018-06-25 12:41:27 -0700 | [diff] [blame] | 98 | "build_verity_tree.cpp", |
| 99 | "build_verity_tree_utils.cpp", |
Tianjie Xu | 3817ebe | 2018-06-21 16:25:23 -0700 | [diff] [blame] | 100 | "hash_tree_builder.cpp", |
Tianjie Xu | 3817ebe | 2018-06-21 16:25:23 -0700 | [diff] [blame] | 101 | ], |
Tianjie Xu | b72fdb5 | 2018-06-25 12:41:27 -0700 | [diff] [blame] | 102 | } |
| 103 | |
| 104 | cc_binary_host { |
| 105 | name: "build_verity_tree", |
Tianjie Xu | a30e008 | 2018-06-26 14:29:13 -0700 | [diff] [blame] | 106 | defaults: [ |
| 107 | "verity_tree_defaults", |
| 108 | ], |
| 109 | |
Tianjie Xu | b72fdb5 | 2018-06-25 12:41:27 -0700 | [diff] [blame] | 110 | srcs: [ |
Tianjie Xu | a30e008 | 2018-06-26 14:29:13 -0700 | [diff] [blame] | 111 | "build_verity_tree_main.cpp", |
Tianjie Xu | b72fdb5 | 2018-06-25 12:41:27 -0700 | [diff] [blame] | 112 | ], |
| 113 | |
| 114 | static_libs: [ |
| 115 | "libverity_tree", |
Tianjie Xu | b72fdb5 | 2018-06-25 12:41:27 -0700 | [diff] [blame] | 116 | ], |
Tianjie Xu | a30e008 | 2018-06-26 14:29:13 -0700 | [diff] [blame] | 117 | } |
| 118 | |
| 119 | cc_test { |
| 120 | name: "build_verity_tree_test", |
| 121 | defaults: [ |
| 122 | "verity_tree_defaults", |
Tianjie Xu | b72fdb5 | 2018-06-25 12:41:27 -0700 | [diff] [blame] | 123 | ], |
Tianjie Xu | a30e008 | 2018-06-26 14:29:13 -0700 | [diff] [blame] | 124 | |
| 125 | srcs: [ |
| 126 | "build_verity_tree_test.cpp", |
| 127 | ], |
| 128 | |
| 129 | static_libs: [ |
| 130 | "libverity_tree", |
Dan Willemsen | 9f022b4 | 2018-05-09 16:26:42 -0700 | [diff] [blame] | 131 | ], |
| 132 | } |