blob: a124b1e9dec44eff427a62c4e1a7192700f5cf83 [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",
16 "common/WritableIdentityCredential.cpp",
17 ],
18 export_include_dirs: [
19 "common",
20 ],
21 cflags: [
22 "-Wall",
23 "-Wextra",
David Zeuthen49f2d252020-10-16 11:27:24 -040024 "-Wno-deprecated-declarations",
David Zeuthen630de2a2020-05-11 14:04:54 -040025 ],
26 shared_libs: [
27 "liblog",
28 "libcrypto",
29 "libbinder_ndk",
30 "libkeymaster_messages",
31 ],
32 static_libs: [
33 "libbase",
Max Biresa3c7f4c2021-04-09 08:56:40 -070034 "libcppbor_external",
David Zeuthen630de2a2020-05-11 14:04:54 -040035 "libutils",
36 "libsoft_attestation_cert",
37 "libkeymaster_portable",
38 "libsoft_attestation_cert",
39 "libpuresoftkeymasterdevice",
40 "android.hardware.identity-support-lib",
Jeongik Cha1674c132021-01-26 22:34:55 +090041 "android.hardware.identity-V3-ndk_platform",
42 "android.hardware.keymaster-V3-ndk_platform",
David Zeuthen630de2a2020-05-11 14:04:54 -040043 ],
44}
45
46cc_library_static {
47 name: "android.hardware.identity-libeic-library",
48 vendor_available: true,
49 srcs: [
50 "libeic/EicCbor.c",
51 "libeic/EicPresentation.c",
52 "libeic/EicProvisioning.c",
53 "EicOpsImpl.cc",
54 ],
55 export_include_dirs: [
56 "libeic",
57 ],
58 cflags: [
59 "-DEIC_COMPILATION",
60 "-Wall",
61 "-Wextra",
62 "-DEIC_DEBUG",
63 // Allow using C2x extensions such as omitting parameter names
64 "-Wno-c2x-extensions",
65 ],
66 shared_libs: [
67 "libbase",
68 "libcrypto",
69 ],
70 static_libs: [
71 "android.hardware.identity-support-lib",
72 ],
73}
74
David Zeuthen81603152020-02-11 22:04:24 -050075cc_binary {
76 name: "android.hardware.identity-service.example",
77 relative_install_path: "hw",
78 init_rc: ["identity-default.rc"],
79 vintf_fragments: ["identity-default.xml"],
80 vendor: true,
81 cflags: [
82 "-Wall",
83 "-Wextra",
David Zeuthen630de2a2020-05-11 14:04:54 -040084 "-g",
David Zeuthen81603152020-02-11 22:04:24 -050085 ],
86 shared_libs: [
David Zeuthen81603152020-02-11 22:04:24 -050087 "liblog",
David Zeuthen630de2a2020-05-11 14:04:54 -040088 "libcrypto",
89 "libbinder_ndk",
90 "libkeymaster_messages",
91 ],
92 static_libs: [
93 "libbase",
Max Biresa3c7f4c2021-04-09 08:56:40 -070094 "libcppbor_external",
David Zeuthen81603152020-02-11 22:04:24 -050095 "libutils",
David Zeuthen630de2a2020-05-11 14:04:54 -040096 "libsoft_attestation_cert",
97 "libkeymaster_portable",
98 "libsoft_attestation_cert",
99 "libpuresoftkeymasterdevice",
David Zeuthen81603152020-02-11 22:04:24 -0500100 "android.hardware.identity-support-lib",
Jeongik Cha1674c132021-01-26 22:34:55 +0900101 "android.hardware.identity-V3-ndk_platform",
102 "android.hardware.keymaster-V3-ndk_platform",
David Zeuthen630de2a2020-05-11 14:04:54 -0400103 "android.hardware.identity-libeic-hal-common",
104 "android.hardware.identity-libeic-library",
David Zeuthen81603152020-02-11 22:04:24 -0500105 ],
106 srcs: [
David Zeuthen81603152020-02-11 22:04:24 -0500107 "service.cpp",
David Zeuthen630de2a2020-05-11 14:04:54 -0400108 "FakeSecureHardwareProxy.cpp",
David Zeuthen81603152020-02-11 22:04:24 -0500109 ],
David Zeuthen49f2d252020-10-16 11:27:24 -0400110 required: [
111 "android.hardware.identity_credential.xml",
112 ],
113}
114
115prebuilt_etc {
116 name: "android.hardware.identity_credential.xml",
117 sub_dir: "permissions",
118 vendor: true,
119 src: "android.hardware.identity_credential.xml",
David Zeuthen81603152020-02-11 22:04:24 -0500120}