blob: dd61930b8b52c3b7008c9a5a49fd277b029b0334 [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",
David Zeuthen472e6c82020-10-16 11:50:13 -04008 "-Wno-deprecated-declarations",
David Zeuthenab3e5652019-10-28 13:32:48 -04009 ],
10 sanitize: {
11 misc_undefined : ["integer"],
12 },
13 clang : true,
14}
15
16cc_binary {
17 name: "credstore",
18 defaults: ["identity_defaults"],
19
20 srcs: [
21 "main.cpp",
22 "CredentialStore.cpp",
23 "CredentialStoreFactory.cpp",
24 "WritableCredential.cpp",
25 "Credential.cpp",
26 "CredentialData.cpp",
27 "Util.cpp",
28 ],
29 init_rc: ["credstore.rc"],
30 shared_libs: [
David Zeuthenab3e5652019-10-28 13:32:48 -040031 "libbase",
32 "libbinder",
33 "libkeystore_aidl",
34 "libcredstore_aidl",
35 "libutils",
36 "libhidlbase",
37 "android.hardware.identity-support-lib",
38 "libkeymaster4support",
David Zeuthenf2a28672020-01-30 16:20:07 -050039 "libkeystore-attestation-application-id",
David Zeuthenab3e5652019-10-28 13:32:48 -040040 ],
41 static_libs: [
David Zeuthen472e6c82020-10-16 11:50:13 -040042 "android.hardware.identity-unstable-cpp",
43 "android.hardware.keymaster-unstable-cpp",
David Zeuthenab3e5652019-10-28 13:32:48 -040044 "libcppbor",
45 ]
46}
47
48filegroup {
49 name: "credstore_aidl",
50 srcs: [
51 "binder/android/security/identity/ICredential.aidl",
52 "binder/android/security/identity/IWritableCredential.aidl",
53 "binder/android/security/identity/ICredentialStore.aidl",
54 "binder/android/security/identity/AccessControlProfileParcel.aidl",
55 "binder/android/security/identity/EntryNamespaceParcel.aidl",
56 "binder/android/security/identity/EntryParcel.aidl",
57 "binder/android/security/identity/RequestNamespaceParcel.aidl",
58 "binder/android/security/identity/RequestEntryParcel.aidl",
59 "binder/android/security/identity/ResultNamespaceParcel.aidl",
60 "binder/android/security/identity/ResultEntryParcel.aidl",
61 "binder/android/security/identity/GetEntriesResultParcel.aidl",
62 "binder/android/security/identity/AuthKeyParcel.aidl",
63 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
64 "binder/android/security/identity/ICredentialStoreFactory.aidl",
65 ],
66 path: "binder",
67}
68
69cc_library_shared {
70 name: "libcredstore_aidl",
71 srcs: [
72 ":credstore_aidl",
73 ],
74 aidl: {
75 export_aidl_headers: true,
76 include_dirs: [
77 "system/security/identity/binder",
78 ],
79 },
80 shared_libs: [
81 "libbinder",
82 "libutils",
83 "libkeymaster4support",
84 ],
85 export_shared_lib_headers: [
86 "libbinder",
87 ],
88}