blob: 9659f576cfb78372303b835a9cec855d02e88a8a [file] [log] [blame]
David Zeuthen630de2a2020-05-11 14:04:54 -04001cc_library_static {
2 name: "android.hardware.identity-libeic-hal-common",
3 vendor_available: true,
4 srcs: [
5 "common/IdentityCredential.cpp",
6 "common/IdentityCredentialStore.cpp",
7 "common/WritableIdentityCredential.cpp",
8 ],
9 export_include_dirs: [
10 "common",
11 ],
12 cflags: [
13 "-Wall",
14 "-Wextra",
David Zeuthen49f2d252020-10-16 11:27:24 -040015 "-Wno-deprecated-declarations",
David Zeuthen630de2a2020-05-11 14:04:54 -040016 ],
17 shared_libs: [
18 "liblog",
19 "libcrypto",
20 "libbinder_ndk",
21 "libkeymaster_messages",
22 ],
23 static_libs: [
24 "libbase",
25 "libcppbor",
26 "libutils",
27 "libsoft_attestation_cert",
28 "libkeymaster_portable",
29 "libsoft_attestation_cert",
30 "libpuresoftkeymasterdevice",
31 "android.hardware.identity-support-lib",
Jeongik Cha1674c132021-01-26 22:34:55 +090032 "android.hardware.identity-V3-ndk_platform",
33 "android.hardware.keymaster-V3-ndk_platform",
David Zeuthen630de2a2020-05-11 14:04:54 -040034 ],
35}
36
37cc_library_static {
38 name: "android.hardware.identity-libeic-library",
39 vendor_available: true,
40 srcs: [
41 "libeic/EicCbor.c",
42 "libeic/EicPresentation.c",
43 "libeic/EicProvisioning.c",
44 "EicOpsImpl.cc",
45 ],
46 export_include_dirs: [
47 "libeic",
48 ],
49 cflags: [
50 "-DEIC_COMPILATION",
51 "-Wall",
52 "-Wextra",
53 "-DEIC_DEBUG",
54 // Allow using C2x extensions such as omitting parameter names
55 "-Wno-c2x-extensions",
56 ],
57 shared_libs: [
58 "libbase",
59 "libcrypto",
60 ],
61 static_libs: [
62 "android.hardware.identity-support-lib",
63 ],
64}
65
David Zeuthen81603152020-02-11 22:04:24 -050066cc_binary {
67 name: "android.hardware.identity-service.example",
68 relative_install_path: "hw",
69 init_rc: ["identity-default.rc"],
70 vintf_fragments: ["identity-default.xml"],
71 vendor: true,
72 cflags: [
73 "-Wall",
74 "-Wextra",
David Zeuthen630de2a2020-05-11 14:04:54 -040075 "-g",
David Zeuthen81603152020-02-11 22:04:24 -050076 ],
77 shared_libs: [
David Zeuthen81603152020-02-11 22:04:24 -050078 "liblog",
David Zeuthen630de2a2020-05-11 14:04:54 -040079 "libcrypto",
80 "libbinder_ndk",
81 "libkeymaster_messages",
82 ],
83 static_libs: [
84 "libbase",
85 "libcppbor",
David Zeuthen81603152020-02-11 22:04:24 -050086 "libutils",
David Zeuthen630de2a2020-05-11 14:04:54 -040087 "libsoft_attestation_cert",
88 "libkeymaster_portable",
89 "libsoft_attestation_cert",
90 "libpuresoftkeymasterdevice",
David Zeuthen81603152020-02-11 22:04:24 -050091 "android.hardware.identity-support-lib",
Jeongik Cha1674c132021-01-26 22:34:55 +090092 "android.hardware.identity-V3-ndk_platform",
93 "android.hardware.keymaster-V3-ndk_platform",
David Zeuthen630de2a2020-05-11 14:04:54 -040094 "android.hardware.identity-libeic-hal-common",
95 "android.hardware.identity-libeic-library",
David Zeuthen81603152020-02-11 22:04:24 -050096 ],
97 srcs: [
David Zeuthen81603152020-02-11 22:04:24 -050098 "service.cpp",
David Zeuthen630de2a2020-05-11 14:04:54 -040099 "FakeSecureHardwareProxy.cpp",
David Zeuthen81603152020-02-11 22:04:24 -0500100 ],
David Zeuthen49f2d252020-10-16 11:27:24 -0400101 required: [
102 "android.hardware.identity_credential.xml",
103 ],
104}
105
106prebuilt_etc {
107 name: "android.hardware.identity_credential.xml",
108 sub_dir: "permissions",
109 vendor: true,
110 src: "android.hardware.identity_credential.xml",
David Zeuthen81603152020-02-11 22:04:24 -0500111}