blob: c0f16359fffcc97e03185861d65fb3a03e7e94b7 [file] [log] [blame]
David Zeuthenab3e5652019-10-28 13:32:48 -04001cc_defaults {
2 name: "identity_defaults",
3 cflags: [
4 "-Wall",
5 // "-Werror",
6 "-Wextra",
7 "-Wunused",
8 ],
9 sanitize: {
10 misc_undefined : ["integer"],
11 },
12 clang : true,
13}
14
15cc_binary {
16 name: "credstore",
17 defaults: ["identity_defaults"],
18
19 srcs: [
20 "main.cpp",
21 "CredentialStore.cpp",
22 "CredentialStoreFactory.cpp",
23 "WritableCredential.cpp",
24 "Credential.cpp",
25 "CredentialData.cpp",
26 "Util.cpp",
27 ],
28 init_rc: ["credstore.rc"],
29 shared_libs: [
David Zeuthenab3e5652019-10-28 13:32:48 -040030 "libbase",
31 "libbinder",
32 "libkeystore_aidl",
33 "libcredstore_aidl",
34 "libutils",
35 "libhidlbase",
36 "android.hardware.identity-support-lib",
37 "libkeymaster4support",
David Zeuthenf2a28672020-01-30 16:20:07 -050038 "libkeystore-attestation-application-id",
David Zeuthenab3e5652019-10-28 13:32:48 -040039 ],
40 static_libs: [
David Zeuthena6f9fba2020-02-11 22:08:27 -050041 "android.hardware.identity-cpp",
42 "android.hardware.keymaster-cpp",
David Zeuthenab3e5652019-10-28 13:32:48 -040043 "libcppbor",
44 ]
45}
46
47filegroup {
48 name: "credstore_aidl",
49 srcs: [
50 "binder/android/security/identity/ICredential.aidl",
51 "binder/android/security/identity/IWritableCredential.aidl",
52 "binder/android/security/identity/ICredentialStore.aidl",
53 "binder/android/security/identity/AccessControlProfileParcel.aidl",
54 "binder/android/security/identity/EntryNamespaceParcel.aidl",
55 "binder/android/security/identity/EntryParcel.aidl",
56 "binder/android/security/identity/RequestNamespaceParcel.aidl",
57 "binder/android/security/identity/RequestEntryParcel.aidl",
58 "binder/android/security/identity/ResultNamespaceParcel.aidl",
59 "binder/android/security/identity/ResultEntryParcel.aidl",
60 "binder/android/security/identity/GetEntriesResultParcel.aidl",
61 "binder/android/security/identity/AuthKeyParcel.aidl",
62 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
63 "binder/android/security/identity/ICredentialStoreFactory.aidl",
64 ],
65 path: "binder",
66}
67
68cc_library_shared {
69 name: "libcredstore_aidl",
70 srcs: [
71 ":credstore_aidl",
72 ],
73 aidl: {
74 export_aidl_headers: true,
75 include_dirs: [
76 "system/security/identity/binder",
77 ],
78 },
79 shared_libs: [
80 "libbinder",
81 "libutils",
82 "libkeymaster4support",
83 ],
84 export_shared_lib_headers: [
85 "libbinder",
86 ],
87}