blob: ca24afa6ccb343e5ba83d241e174d36e570ef8ea [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",
David Zeuthen630de2a2020-05-11 14:04:54 -040045 ],
46}
47
48cc_library_static {
49 name: "android.hardware.identity-libeic-library",
50 vendor_available: true,
51 srcs: [
52 "libeic/EicCbor.c",
David Zeuthen1eb12b22021-09-11 13:59:43 -040053 "libeic/EicSession.c",
David Zeuthen630de2a2020-05-11 14:04:54 -040054 "libeic/EicPresentation.c",
55 "libeic/EicProvisioning.c",
56 "EicOpsImpl.cc",
57 ],
58 export_include_dirs: [
59 "libeic",
60 ],
61 cflags: [
62 "-DEIC_COMPILATION",
63 "-Wall",
64 "-Wextra",
65 "-DEIC_DEBUG",
66 // Allow using C2x extensions such as omitting parameter names
67 "-Wno-c2x-extensions",
68 ],
69 shared_libs: [
70 "libbase",
71 "libcrypto",
72 ],
73 static_libs: [
74 "android.hardware.identity-support-lib",
75 ],
76}
77
David Zeuthen81603152020-02-11 22:04:24 -050078cc_binary {
79 name: "android.hardware.identity-service.example",
80 relative_install_path: "hw",
81 init_rc: ["identity-default.rc"],
82 vintf_fragments: ["identity-default.xml"],
83 vendor: true,
84 cflags: [
85 "-Wall",
86 "-Wextra",
David Zeuthen630de2a2020-05-11 14:04:54 -040087 "-g",
David Zeuthen81603152020-02-11 22:04:24 -050088 ],
89 shared_libs: [
David Zeuthen81603152020-02-11 22:04:24 -050090 "liblog",
David Zeuthen630de2a2020-05-11 14:04:54 -040091 "libcrypto",
92 "libbinder_ndk",
93 "libkeymaster_messages",
94 ],
95 static_libs: [
96 "libbase",
Max Biresa3c7f4c2021-04-09 08:56:40 -070097 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -070098 "libcppcose_rkp",
David Zeuthen81603152020-02-11 22:04:24 -050099 "libutils",
David Zeuthen630de2a2020-05-11 14:04:54 -0400100 "libsoft_attestation_cert",
101 "libkeymaster_portable",
102 "libsoft_attestation_cert",
103 "libpuresoftkeymasterdevice",
David Zeuthen81603152020-02-11 22:04:24 -0500104 "android.hardware.identity-support-lib",
David Zeuthen1eb12b22021-09-11 13:59:43 -0400105 "android.hardware.identity-V4-ndk",
106 "android.hardware.keymaster-V4-ndk",
David Zeuthen630de2a2020-05-11 14:04:54 -0400107 "android.hardware.identity-libeic-hal-common",
108 "android.hardware.identity-libeic-library",
David Zeuthen81603152020-02-11 22:04:24 -0500109 ],
110 srcs: [
David Zeuthen81603152020-02-11 22:04:24 -0500111 "service.cpp",
David Zeuthen630de2a2020-05-11 14:04:54 -0400112 "FakeSecureHardwareProxy.cpp",
David Zeuthen81603152020-02-11 22:04:24 -0500113 ],
David Zeuthen49f2d252020-10-16 11:27:24 -0400114 required: [
115 "android.hardware.identity_credential.xml",
116 ],
117}
118
David Zeuthenaf7e9cf2021-06-10 18:34:24 -0400119cc_test {
120 name: "libeic_test",
121 srcs: [
122 "EicTests.cpp",
123 "FakeSecureHardwareProxy.cpp",
124 ],
125 cflags: [
126 "-Wall",
127 "-Wextra",
128 "-g",
129 "-DEIC_DEBUG",
130 ],
131 local_include_dirs: [
Jiyong Park27f77fe2021-07-27 12:16:52 +0900132 "common",
David Zeuthenaf7e9cf2021-06-10 18:34:24 -0400133 ],
134 shared_libs: [
135 "liblog",
136 "libcrypto",
137 "libkeymaster_messages",
138 ],
139 static_libs: [
140 "libbase",
141 "libcppbor_external",
142 "libcppcose_rkp",
143 "libutils",
144 "libsoft_attestation_cert",
145 "libkeymaster_portable",
146 "libsoft_attestation_cert",
147 "libpuresoftkeymasterdevice",
148 "android.hardware.identity-support-lib",
149 "android.hardware.identity-libeic-library",
150 ],
151 test_suites: [
152 "general-tests",
153 ],
154}
155
David Zeuthen49f2d252020-10-16 11:27:24 -0400156prebuilt_etc {
157 name: "android.hardware.identity_credential.xml",
158 sub_dir: "permissions",
159 vendor: true,
160 src: "android.hardware.identity_credential.xml",
David Zeuthen81603152020-02-11 22:04:24 -0500161}