blob: 790a731acb0023644dd75864de77f58c3db23349 [file] [log] [blame]
Bob Badour4c7858c2021-02-12 15:40:29 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "system_security_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["system_security_license"],
8}
9
David Zeuthenab3e5652019-10-28 13:32:48 -040010cc_defaults {
11 name: "identity_defaults",
12 cflags: [
13 "-Wall",
14 // "-Werror",
15 "-Wextra",
16 "-Wunused",
David Zeuthen472e6c82020-10-16 11:50:13 -040017 "-Wno-deprecated-declarations",
David Zeuthenab3e5652019-10-28 13:32:48 -040018 ],
19 sanitize: {
20 misc_undefined : ["integer"],
21 },
22 clang : true,
23}
24
25cc_binary {
26 name: "credstore",
David Drysdalebdb232d2021-11-22 14:41:18 +000027 defaults: [
28 "identity_defaults",
29 "keymint_use_latest_hal_aidl_ndk_shared",
Seth Moore07152b92022-01-25 23:04:37 +000030 "keymint_use_latest_hal_aidl_cpp_static",
David Drysdalebdb232d2021-11-22 14:41:18 +000031 ],
David Zeuthenab3e5652019-10-28 13:32:48 -040032
33 srcs: [
34 "main.cpp",
35 "CredentialStore.cpp",
36 "CredentialStoreFactory.cpp",
37 "WritableCredential.cpp",
38 "Credential.cpp",
39 "CredentialData.cpp",
David Zeuthen045a2c82021-09-11 13:52:17 -040040 "Session.cpp",
David Zeuthenab3e5652019-10-28 13:32:48 -040041 "Util.cpp",
42 ],
43 init_rc: ["credstore.rc"],
44 shared_libs: [
David Zeuthenab3e5652019-10-28 13:32:48 -040045 "libbase",
46 "libbinder",
Hasini Gunasinghe1b531b92021-03-02 00:34:58 +000047 "libbinder_ndk",
Hasini Gunasinghe8c9853f2021-03-09 02:55:57 +000048 "android.hardware.keymaster@4.0",
David Zeuthenab3e5652019-10-28 13:32:48 -040049 "libcredstore_aidl",
Max Bires5bb33f42021-03-11 00:44:06 -080050 "libcrypto",
David Zeuthenab3e5652019-10-28 13:32:48 -040051 "libutils",
52 "libhidlbase",
53 "android.hardware.identity-support-lib",
54 "libkeymaster4support",
David Zeuthenf2a28672020-01-30 16:20:07 -050055 "libkeystore-attestation-application-id",
Jiyong Park0d61dd62021-07-27 12:20:26 +090056 "android.security.authorization-ndk",
David Zeuthen045a2c82021-09-11 13:52:17 -040057 "libutilscallstack",
David Zeuthenab3e5652019-10-28 13:32:48 -040058 ],
59 static_libs: [
David Zeuthen045a2c82021-09-11 13:52:17 -040060 "android.hardware.identity-V4-cpp",
61 "android.hardware.keymaster-V4-cpp",
Max Bires5bb33f42021-03-11 00:44:06 -080062 "libcppbor_external",
David Drysdalebdb232d2021-11-22 14:41:18 +000063 ],
David Zeuthenab3e5652019-10-28 13:32:48 -040064}
65
66filegroup {
67 name: "credstore_aidl",
68 srcs: [
69 "binder/android/security/identity/ICredential.aidl",
70 "binder/android/security/identity/IWritableCredential.aidl",
71 "binder/android/security/identity/ICredentialStore.aidl",
72 "binder/android/security/identity/AccessControlProfileParcel.aidl",
73 "binder/android/security/identity/EntryNamespaceParcel.aidl",
74 "binder/android/security/identity/EntryParcel.aidl",
75 "binder/android/security/identity/RequestNamespaceParcel.aidl",
76 "binder/android/security/identity/RequestEntryParcel.aidl",
77 "binder/android/security/identity/ResultNamespaceParcel.aidl",
78 "binder/android/security/identity/ResultEntryParcel.aidl",
79 "binder/android/security/identity/GetEntriesResultParcel.aidl",
80 "binder/android/security/identity/AuthKeyParcel.aidl",
81 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
82 "binder/android/security/identity/ICredentialStoreFactory.aidl",
David Zeuthen045a2c82021-09-11 13:52:17 -040083 "binder/android/security/identity/ISession.aidl",
David Zeuthenab3e5652019-10-28 13:32:48 -040084 ],
85 path: "binder",
86}
87
88cc_library_shared {
89 name: "libcredstore_aidl",
90 srcs: [
91 ":credstore_aidl",
92 ],
93 aidl: {
94 export_aidl_headers: true,
95 include_dirs: [
96 "system/security/identity/binder",
97 ],
98 },
99 shared_libs: [
100 "libbinder",
101 "libutils",
102 "libkeymaster4support",
103 ],
104 export_shared_lib_headers: [
105 "libbinder",
106 ],
107}