blob: 240e107ea9aaea17e9d5b37d39feaf280af10a42 [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",
40 ],
41 static_libs: [
42 "libcppbor",
43 ]
44}
45
46filegroup {
47 name: "credstore_aidl",
48 srcs: [
49 "binder/android/security/identity/ICredential.aidl",
50 "binder/android/security/identity/IWritableCredential.aidl",
51 "binder/android/security/identity/ICredentialStore.aidl",
52 "binder/android/security/identity/AccessControlProfileParcel.aidl",
53 "binder/android/security/identity/EntryNamespaceParcel.aidl",
54 "binder/android/security/identity/EntryParcel.aidl",
55 "binder/android/security/identity/RequestNamespaceParcel.aidl",
56 "binder/android/security/identity/RequestEntryParcel.aidl",
57 "binder/android/security/identity/ResultNamespaceParcel.aidl",
58 "binder/android/security/identity/ResultEntryParcel.aidl",
59 "binder/android/security/identity/GetEntriesResultParcel.aidl",
60 "binder/android/security/identity/AuthKeyParcel.aidl",
61 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
62 "binder/android/security/identity/ICredentialStoreFactory.aidl",
63 ],
64 path: "binder",
65}
66
67cc_library_shared {
68 name: "libcredstore_aidl",
69 srcs: [
70 ":credstore_aidl",
71 ],
72 aidl: {
73 export_aidl_headers: true,
74 include_dirs: [
75 "system/security/identity/binder",
76 ],
77 },
78 shared_libs: [
79 "libbinder",
80 "libutils",
81 "libkeymaster4support",
82 ],
83 export_shared_lib_headers: [
84 "libbinder",
85 ],
86}