Alan Stokes | 38221fa | 2022-02-09 14:36:00 +0000 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | cc_defaults { |
| 6 | name: "compos_key_defaults", |
| 7 | apex_available: ["com.android.compos"], |
| 8 | |
| 9 | shared_libs: [ |
| 10 | "libbase", |
| 11 | "libbinder_ndk", |
| 12 | "libcrypto", |
| 13 | ], |
| 14 | } |
| 15 | |
| 16 | cc_library { |
| 17 | name: "libcompos_key", |
| 18 | defaults: ["compos_key_defaults"], |
| 19 | srcs: ["compos_key.cpp"], |
| 20 | |
| 21 | shared_libs: [ |
| 22 | "android.hardware.security.dice-V1-ndk", |
| 23 | "android.security.dice-ndk", |
| 24 | ], |
| 25 | } |
| 26 | |
| 27 | cc_binary { |
| 28 | name: "compos_key_helper", |
| 29 | defaults: ["compos_key_defaults"], |
| 30 | srcs: ["compos_key_main.cpp"], |
| 31 | |
| 32 | static_libs: ["libcompos_key"], |
| 33 | shared_libs: [ |
| 34 | "android.security.dice-ndk", |
| 35 | ], |
| 36 | } |
| 37 | |
| 38 | cc_test { |
| 39 | name: "compos_key_tests", |
| 40 | defaults: ["compos_key_defaults"], |
| 41 | test_suites: [ |
| 42 | "general-tests", |
| 43 | ], |
| 44 | |
| 45 | srcs: ["compos_key_test.cpp"], |
| 46 | static_libs: ["libcompos_key"], |
| 47 | } |