Jooyung Han | 54b88d4 | 2021-04-14 18:46:14 +0900 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | cc_defaults { |
| 6 | name: "microdroid_signature_default", |
| 7 | host_supported: true, |
| 8 | srcs: [ |
| 9 | "microdroid_signature.proto", |
| 10 | "signature.cc", |
| 11 | ], |
| 12 | shared_libs: [ |
| 13 | "libbase", |
| 14 | "liblog", |
| 15 | ], |
| 16 | export_include_dirs: ["include"], |
| 17 | } |
| 18 | |
| 19 | cc_library_static { |
Jooyung Han | 9195c7d | 2021-04-20 04:42:00 +0900 | [diff] [blame] | 20 | name: "lib_microdroid_signature_proto", |
| 21 | proto: { |
| 22 | export_proto_headers: true, |
| 23 | type: "full", |
| 24 | }, |
| 25 | defaults: ["microdroid_signature_default"], |
| 26 | } |
| 27 | |
| 28 | cc_library_static { |
Jooyung Han | 54b88d4 | 2021-04-14 18:46:14 +0900 | [diff] [blame] | 29 | name: "lib_microdroid_signature_proto_lite", |
| 30 | recovery_available: true, |
| 31 | proto: { |
| 32 | export_proto_headers: true, |
| 33 | type: "lite", |
| 34 | }, |
| 35 | defaults: ["microdroid_signature_default"], |
| 36 | apex_available: [ |
| 37 | "com.android.virt", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | cc_binary { |
Jooyung Han | 017916b | 2021-04-20 03:57:19 +0900 | [diff] [blame] | 42 | name: "mk_payload", |
| 43 | srcs: [ |
| 44 | "mk_payload.cc", |
| 45 | ], |
| 46 | shared_libs: [ |
| 47 | "libbase", |
| 48 | "libcuttlefish_fs", |
| 49 | "libcuttlefish_utils", |
| 50 | "liblog", |
| 51 | "libz", |
| 52 | ], |
| 53 | static_libs: [ |
| 54 | "lib_microdroid_signature_proto_lite", |
| 55 | "libcdisk_spec", |
| 56 | "libext2_uuid", |
| 57 | "libimage_aggregator", |
| 58 | "libjsoncpp", |
| 59 | "libprotobuf-cpp-lite", |
| 60 | "libsparse", |
| 61 | "libxml2", |
| 62 | ], |
| 63 | generated_sources: ["apex-info-list"], |
| 64 | apex_available: [ |
| 65 | "com.android.virt", |
| 66 | ], |
| 67 | } |