blob: 32b35439ef11521e786ba22bff382a17fa59ae32 [file] [log] [blame]
Bob Badourb224b362021-02-12 20:13:01 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "hardware_interfaces_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
David Zeuthen630de2a2020-05-11 14:04:54 -040010cc_library_static {
11 name: "android.hardware.identity-libeic-hal-common",
12 vendor_available: true,
13 srcs: [
14 "common/IdentityCredential.cpp",
15 "common/IdentityCredentialStore.cpp",
David Zeuthen1eb12b22021-09-11 13:59:43 -040016 "common/PresentationSession.cpp",
David Zeuthen630de2a2020-05-11 14:04:54 -040017 "common/WritableIdentityCredential.cpp",
18 ],
19 export_include_dirs: [
20 "common",
21 ],
22 cflags: [
23 "-Wall",
24 "-Wextra",
David Zeuthen49f2d252020-10-16 11:27:24 -040025 "-Wno-deprecated-declarations",
David Zeuthen630de2a2020-05-11 14:04:54 -040026 ],
27 shared_libs: [
28 "liblog",
29 "libcrypto",
30 "libbinder_ndk",
31 "libkeymaster_messages",
32 ],
33 static_libs: [
34 "libbase",
Max Biresa3c7f4c2021-04-09 08:56:40 -070035 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -070036 "libcppcose_rkp",
David Zeuthen630de2a2020-05-11 14:04:54 -040037 "libutils",
38 "libsoft_attestation_cert",
39 "libkeymaster_portable",
40 "libsoft_attestation_cert",
41 "libpuresoftkeymasterdevice",
42 "android.hardware.identity-support-lib",
David Zeuthen1eb12b22021-09-11 13:59:43 -040043 "android.hardware.identity-V4-ndk",
44 "android.hardware.keymaster-V4-ndk",
Seth Moore1bf823c2022-01-25 23:04:37 +000045 "android.hardware.security.keymint-V2-ndk",
David Zeuthen630de2a2020-05-11 14:04:54 -040046 ],
47}
48
49cc_library_static {
50 name: "android.hardware.identity-libeic-library",
51 vendor_available: true,
52 srcs: [
53 "libeic/EicCbor.c",
David Zeuthen1eb12b22021-09-11 13:59:43 -040054 "libeic/EicSession.c",
David Zeuthen630de2a2020-05-11 14:04:54 -040055 "libeic/EicPresentation.c",
56 "libeic/EicProvisioning.c",
57 "EicOpsImpl.cc",
58 ],
59 export_include_dirs: [
60 "libeic",
61 ],
62 cflags: [
63 "-DEIC_COMPILATION",
64 "-Wall",
65 "-Wextra",
66 "-DEIC_DEBUG",
67 // Allow using C2x extensions such as omitting parameter names
68 "-Wno-c2x-extensions",
69 ],
70 shared_libs: [
71 "libbase",
72 "libcrypto",
73 ],
74 static_libs: [
75 "android.hardware.identity-support-lib",
76 ],
77}
78
David Zeuthen81603152020-02-11 22:04:24 -050079cc_binary {
80 name: "android.hardware.identity-service.example",
81 relative_install_path: "hw",
82 init_rc: ["identity-default.rc"],
83 vintf_fragments: ["identity-default.xml"],
84 vendor: true,
Seth Moore1bf823c2022-01-25 23:04:37 +000085 defaults: [
86 "keymint_use_latest_hal_aidl_ndk_static",
87 ],
David Zeuthen81603152020-02-11 22:04:24 -050088 cflags: [
89 "-Wall",
90 "-Wextra",
David Zeuthen630de2a2020-05-11 14:04:54 -040091 "-g",
David Zeuthen81603152020-02-11 22:04:24 -050092 ],
93 shared_libs: [
David Zeuthen81603152020-02-11 22:04:24 -050094 "liblog",
David Zeuthen630de2a2020-05-11 14:04:54 -040095 "libcrypto",
96 "libbinder_ndk",
97 "libkeymaster_messages",
98 ],
99 static_libs: [
100 "libbase",
Max Biresa3c7f4c2021-04-09 08:56:40 -0700101 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -0700102 "libcppcose_rkp",
David Zeuthen81603152020-02-11 22:04:24 -0500103 "libutils",
David Zeuthen630de2a2020-05-11 14:04:54 -0400104 "libsoft_attestation_cert",
105 "libkeymaster_portable",
106 "libsoft_attestation_cert",
107 "libpuresoftkeymasterdevice",
David Zeuthen81603152020-02-11 22:04:24 -0500108 "android.hardware.identity-support-lib",
David Zeuthen1eb12b22021-09-11 13:59:43 -0400109 "android.hardware.identity-V4-ndk",
110 "android.hardware.keymaster-V4-ndk",
David Zeuthen630de2a2020-05-11 14:04:54 -0400111 "android.hardware.identity-libeic-hal-common",
112 "android.hardware.identity-libeic-library",
David Zeuthen81603152020-02-11 22:04:24 -0500113 ],
114 srcs: [
David Zeuthen81603152020-02-11 22:04:24 -0500115 "service.cpp",
David Zeuthen630de2a2020-05-11 14:04:54 -0400116 "FakeSecureHardwareProxy.cpp",
David Zeuthen81603152020-02-11 22:04:24 -0500117 ],
David Zeuthen49f2d252020-10-16 11:27:24 -0400118 required: [
119 "android.hardware.identity_credential.xml",
120 ],
121}
122
David Zeuthenaf7e9cf2021-06-10 18:34:24 -0400123cc_test {
124 name: "libeic_test",
125 srcs: [
126 "EicTests.cpp",
127 "FakeSecureHardwareProxy.cpp",
128 ],
129 cflags: [
130 "-Wall",
131 "-Wextra",
132 "-g",
133 "-DEIC_DEBUG",
134 ],
135 local_include_dirs: [
Jiyong Park27f77fe2021-07-27 12:16:52 +0900136 "common",
David Zeuthenaf7e9cf2021-06-10 18:34:24 -0400137 ],
138 shared_libs: [
139 "liblog",
140 "libcrypto",
141 "libkeymaster_messages",
142 ],
143 static_libs: [
144 "libbase",
145 "libcppbor_external",
146 "libcppcose_rkp",
147 "libutils",
148 "libsoft_attestation_cert",
149 "libkeymaster_portable",
150 "libsoft_attestation_cert",
151 "libpuresoftkeymasterdevice",
152 "android.hardware.identity-support-lib",
153 "android.hardware.identity-libeic-library",
154 ],
155 test_suites: [
156 "general-tests",
157 ],
158}
159
David Zeuthen49f2d252020-10-16 11:27:24 -0400160prebuilt_etc {
161 name: "android.hardware.identity_credential.xml",
162 sub_dir: "permissions",
163 vendor: true,
164 src: "android.hardware.identity_credential.xml",
David Zeuthen81603152020-02-11 22:04:24 -0500165}