blob: 7f342d087a5e8d147462b1e678cd9a9a8e6bb93a [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",
15 ],
16 shared_libs: [
17 "liblog",
18 "libcrypto",
19 "libbinder_ndk",
20 "libkeymaster_messages",
21 ],
22 static_libs: [
23 "libbase",
24 "libcppbor",
25 "libutils",
26 "libsoft_attestation_cert",
27 "libkeymaster_portable",
28 "libsoft_attestation_cert",
29 "libpuresoftkeymasterdevice",
30 "android.hardware.identity-support-lib",
31 "android.hardware.identity-ndk_platform",
32 "android.hardware.keymaster-ndk_platform",
33 ],
34}
35
36cc_library_static {
37 name: "android.hardware.identity-libeic-library",
38 vendor_available: true,
39 srcs: [
40 "libeic/EicCbor.c",
41 "libeic/EicPresentation.c",
42 "libeic/EicProvisioning.c",
43 "EicOpsImpl.cc",
44 ],
45 export_include_dirs: [
46 "libeic",
47 ],
48 cflags: [
49 "-DEIC_COMPILATION",
50 "-Wall",
51 "-Wextra",
52 "-DEIC_DEBUG",
53 // Allow using C2x extensions such as omitting parameter names
54 "-Wno-c2x-extensions",
55 ],
56 shared_libs: [
57 "libbase",
58 "libcrypto",
59 ],
60 static_libs: [
61 "android.hardware.identity-support-lib",
62 ],
63}
64
David Zeuthen81603152020-02-11 22:04:24 -050065cc_binary {
66 name: "android.hardware.identity-service.example",
67 relative_install_path: "hw",
68 init_rc: ["identity-default.rc"],
69 vintf_fragments: ["identity-default.xml"],
70 vendor: true,
71 cflags: [
72 "-Wall",
73 "-Wextra",
David Zeuthen630de2a2020-05-11 14:04:54 -040074 "-g",
David Zeuthen81603152020-02-11 22:04:24 -050075 ],
76 shared_libs: [
David Zeuthen81603152020-02-11 22:04:24 -050077 "liblog",
David Zeuthen630de2a2020-05-11 14:04:54 -040078 "libcrypto",
79 "libbinder_ndk",
80 "libkeymaster_messages",
81 ],
82 static_libs: [
83 "libbase",
84 "libcppbor",
David Zeuthen81603152020-02-11 22:04:24 -050085 "libutils",
David Zeuthen630de2a2020-05-11 14:04:54 -040086 "libsoft_attestation_cert",
87 "libkeymaster_portable",
88 "libsoft_attestation_cert",
89 "libpuresoftkeymasterdevice",
David Zeuthen81603152020-02-11 22:04:24 -050090 "android.hardware.identity-support-lib",
91 "android.hardware.identity-ndk_platform",
92 "android.hardware.keymaster-ndk_platform",
David Zeuthen630de2a2020-05-11 14:04:54 -040093 "android.hardware.identity-libeic-hal-common",
94 "android.hardware.identity-libeic-library",
David Zeuthen81603152020-02-11 22:04:24 -050095 ],
96 srcs: [
David Zeuthen81603152020-02-11 22:04:24 -050097 "service.cpp",
David Zeuthen630de2a2020-05-11 14:04:54 -040098 "FakeSecureHardwareProxy.cpp",
David Zeuthen81603152020-02-11 22:04:24 -050099 ],
100}