1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5cc_defaults {
6    name: "compos_key_defaults",
7    defaults: ["avf_build_flags_cc"],
8    apex_available: ["com.android.compos"],
9
10    shared_libs: [
11        "libbase",
12        "libcrypto",
13    ],
14}
15
16cc_library {
17    name: "libcompos_key",
18    defaults: ["compos_key_defaults"],
19    srcs: ["compos_key.cpp"],
20    export_include_dirs: ["."],
21}
22
23cc_binary {
24    name: "compos_key_helper",
25    defaults: ["compos_key_defaults"],
26    srcs: ["compos_key_main.cpp"],
27
28    header_libs: ["vm_payload_restricted_headers"],
29    static_libs: [
30        "libcompos_key",
31    ],
32    shared_libs: [
33        "libvm_payload#current",
34        "libbinder_ndk",
35    ],
36}
37
38cc_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}
48