blob: ddb43353f0cf689030e1e154e6c99f241011b7b5 [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",
30 ],
David Zeuthenab3e5652019-10-28 13:32:48 -040031
32 srcs: [
33 "main.cpp",
34 "CredentialStore.cpp",
35 "CredentialStoreFactory.cpp",
36 "WritableCredential.cpp",
37 "Credential.cpp",
38 "CredentialData.cpp",
39 "Util.cpp",
40 ],
41 init_rc: ["credstore.rc"],
42 shared_libs: [
David Zeuthenab3e5652019-10-28 13:32:48 -040043 "libbase",
44 "libbinder",
Hasini Gunasinghe1b531b92021-03-02 00:34:58 +000045 "libbinder_ndk",
Hasini Gunasinghe8c9853f2021-03-09 02:55:57 +000046 "android.hardware.keymaster@4.0",
David Zeuthenab3e5652019-10-28 13:32:48 -040047 "libcredstore_aidl",
Max Bires5bb33f42021-03-11 00:44:06 -080048 "libcrypto",
David Zeuthenab3e5652019-10-28 13:32:48 -040049 "libutils",
50 "libhidlbase",
51 "android.hardware.identity-support-lib",
52 "libkeymaster4support",
David Zeuthenf2a28672020-01-30 16:20:07 -050053 "libkeystore-attestation-application-id",
Jiyong Park0d61dd62021-07-27 12:20:26 +090054 "android.security.authorization-ndk",
David Zeuthenab3e5652019-10-28 13:32:48 -040055 ],
56 static_libs: [
Jeongik Cha98a5d092021-01-26 22:35:13 +090057 "android.hardware.identity-V3-cpp",
58 "android.hardware.keymaster-V3-cpp",
Max Bires5bb33f42021-03-11 00:44:06 -080059 "libcppbor_external",
David Drysdalebdb232d2021-11-22 14:41:18 +000060 ],
David Zeuthenab3e5652019-10-28 13:32:48 -040061}
62
63filegroup {
64 name: "credstore_aidl",
65 srcs: [
66 "binder/android/security/identity/ICredential.aidl",
67 "binder/android/security/identity/IWritableCredential.aidl",
68 "binder/android/security/identity/ICredentialStore.aidl",
69 "binder/android/security/identity/AccessControlProfileParcel.aidl",
70 "binder/android/security/identity/EntryNamespaceParcel.aidl",
71 "binder/android/security/identity/EntryParcel.aidl",
72 "binder/android/security/identity/RequestNamespaceParcel.aidl",
73 "binder/android/security/identity/RequestEntryParcel.aidl",
74 "binder/android/security/identity/ResultNamespaceParcel.aidl",
75 "binder/android/security/identity/ResultEntryParcel.aidl",
76 "binder/android/security/identity/GetEntriesResultParcel.aidl",
77 "binder/android/security/identity/AuthKeyParcel.aidl",
78 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
79 "binder/android/security/identity/ICredentialStoreFactory.aidl",
80 ],
81 path: "binder",
82}
83
84cc_library_shared {
85 name: "libcredstore_aidl",
86 srcs: [
87 ":credstore_aidl",
88 ],
89 aidl: {
90 export_aidl_headers: true,
91 include_dirs: [
92 "system/security/identity/binder",
93 ],
94 },
95 shared_libs: [
96 "libbinder",
97 "libutils",
98 "libkeymaster4support",
99 ],
100 export_shared_lib_headers: [
101 "libbinder",
102 ],
103}