blob: 7b8168552039fd03ae16b88930691ca97fa02d03 [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 },
Alixcb159ff2022-04-18 03:59:35 +000022
David Zeuthenab3e5652019-10-28 13:32:48 -040023}
24
25cc_binary {
26 name: "credstore",
David Drysdalebdb232d2021-11-22 14:41:18 +000027 defaults: [
28 "identity_defaults",
Tri Voc5ad1952022-09-06 17:16:42 -070029 "identity_use_latest_hal_aidl_cpp_static",
David Drysdalebdb232d2021-11-22 14:41:18 +000030 "keymint_use_latest_hal_aidl_ndk_shared",
Seth Moore07152b92022-01-25 23:04:37 +000031 "keymint_use_latest_hal_aidl_cpp_static",
David Drysdalebdb232d2021-11-22 14:41:18 +000032 ],
David Zeuthenab3e5652019-10-28 13:32:48 -040033
34 srcs: [
David Zeuthenab3e5652019-10-28 13:32:48 -040035 "Credential.cpp",
36 "CredentialData.cpp",
Tri Vo3ab6f052022-11-22 10:26:16 -080037 "CredentialStore.cpp",
38 "CredentialStoreFactory.cpp",
39 "RemotelyProvisionedKey.cpp",
David Zeuthen045a2c82021-09-11 13:52:17 -040040 "Session.cpp",
David Zeuthenab3e5652019-10-28 13:32:48 -040041 "Util.cpp",
Tri Vo3ab6f052022-11-22 10:26:16 -080042 "WritableCredential.cpp",
43 "main.cpp",
David Zeuthenab3e5652019-10-28 13:32:48 -040044 ],
45 init_rc: ["credstore.rc"],
46 shared_libs: [
Tri Vo3ab6f052022-11-22 10:26:16 -080047 "android.hardware.identity-support-lib",
48 "android.hardware.keymaster@4.0",
49 "android.security.authorization-ndk",
50 "android.security.remoteprovisioning-cpp",
David Zeuthenab3e5652019-10-28 13:32:48 -040051 "libbase",
52 "libbinder",
Hasini Gunasinghe1b531b92021-03-02 00:34:58 +000053 "libbinder_ndk",
David Zeuthenab3e5652019-10-28 13:32:48 -040054 "libcredstore_aidl",
Max Bires5bb33f42021-03-11 00:44:06 -080055 "libcrypto",
David Zeuthenab3e5652019-10-28 13:32:48 -040056 "libhidlbase",
David Zeuthenab3e5652019-10-28 13:32:48 -040057 "libkeymaster4support",
David Zeuthenf2a28672020-01-30 16:20:07 -050058 "libkeystore-attestation-application-id",
Tri Vo3ab6f052022-11-22 10:26:16 -080059 "libutils",
David Zeuthen045a2c82021-09-11 13:52:17 -040060 "libutilscallstack",
Tri Vo3ab6f052022-11-22 10:26:16 -080061 "libvintf",
62 "server_configurable_flags",
David Zeuthenab3e5652019-10-28 13:32:48 -040063 ],
64 static_libs: [
Seth Moorecd6e9182022-11-04 17:39:05 +000065 "android.hardware.security.rkp-V3-cpp",
Jiyong Park2c2466d2022-03-22 14:52:06 +090066 "android.hardware.keymaster-V3-cpp",
Tri Vo3ab6f052022-11-22 10:26:16 -080067 "android.security.rkp_aidl-cpp",
Max Bires5bb33f42021-03-11 00:44:06 -080068 "libcppbor_external",
David Drysdalebdb232d2021-11-22 14:41:18 +000069 ],
David Zeuthenab3e5652019-10-28 13:32:48 -040070}
71
72filegroup {
73 name: "credstore_aidl",
74 srcs: [
75 "binder/android/security/identity/ICredential.aidl",
76 "binder/android/security/identity/IWritableCredential.aidl",
77 "binder/android/security/identity/ICredentialStore.aidl",
78 "binder/android/security/identity/AccessControlProfileParcel.aidl",
79 "binder/android/security/identity/EntryNamespaceParcel.aidl",
80 "binder/android/security/identity/EntryParcel.aidl",
81 "binder/android/security/identity/RequestNamespaceParcel.aidl",
82 "binder/android/security/identity/RequestEntryParcel.aidl",
83 "binder/android/security/identity/ResultNamespaceParcel.aidl",
84 "binder/android/security/identity/ResultEntryParcel.aidl",
85 "binder/android/security/identity/GetEntriesResultParcel.aidl",
86 "binder/android/security/identity/AuthKeyParcel.aidl",
87 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
88 "binder/android/security/identity/ICredentialStoreFactory.aidl",
David Zeuthen045a2c82021-09-11 13:52:17 -040089 "binder/android/security/identity/ISession.aidl",
David Zeuthenab3e5652019-10-28 13:32:48 -040090 ],
91 path: "binder",
92}
93
94cc_library_shared {
95 name: "libcredstore_aidl",
96 srcs: [
97 ":credstore_aidl",
98 ],
99 aidl: {
100 export_aidl_headers: true,
101 include_dirs: [
102 "system/security/identity/binder",
103 ],
104 },
105 shared_libs: [
106 "libbinder",
107 "libutils",
108 "libkeymaster4support",
109 ],
110 export_shared_lib_headers: [
111 "libbinder",
112 ],
113}