blob: ad9bd72dfbb855113551c23ce7ebf672fbf1c76e [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: [
30 "android.hardware.identity@1.0",
31 "android.hardware.keymaster@4.0",
32 "libbase",
33 "libbinder",
34 "libkeystore_aidl",
35 "libcredstore_aidl",
36 "libutils",
37 "libhidlbase",
38 "android.hardware.identity-support-lib",
39 "libkeymaster4support",
David Zeuthenf2a28672020-01-30 16:20:07 -050040 "libkeystore-attestation-application-id",
David Zeuthenab3e5652019-10-28 13:32:48 -040041 ],
42 static_libs: [
43 "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}