blob: d66f4ec87cd6bfc9cbc4ac340f57c2da29d9b7eb [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",
27 defaults: ["identity_defaults"],
28
29 srcs: [
30 "main.cpp",
31 "CredentialStore.cpp",
32 "CredentialStoreFactory.cpp",
33 "WritableCredential.cpp",
34 "Credential.cpp",
35 "CredentialData.cpp",
36 "Util.cpp",
37 ],
38 init_rc: ["credstore.rc"],
39 shared_libs: [
David Zeuthenab3e5652019-10-28 13:32:48 -040040 "libbase",
41 "libbinder",
Hasini Gunasinghe1b531b92021-03-02 00:34:58 +000042 "libbinder_ndk",
Hasini Gunasinghe8c9853f2021-03-09 02:55:57 +000043 "android.hardware.keymaster@4.0",
David Zeuthenab3e5652019-10-28 13:32:48 -040044 "libcredstore_aidl",
45 "libutils",
46 "libhidlbase",
47 "android.hardware.identity-support-lib",
48 "libkeymaster4support",
David Zeuthenf2a28672020-01-30 16:20:07 -050049 "libkeystore-attestation-application-id",
Hasini Gunasinghe1b531b92021-03-02 00:34:58 +000050 "android.hardware.security.keymint-V1-ndk_platform",
51 "android.security.authorization-ndk_platform",
David Zeuthenab3e5652019-10-28 13:32:48 -040052 ],
53 static_libs: [
Jeongik Cha98a5d092021-01-26 22:35:13 +090054 "android.hardware.identity-V3-cpp",
55 "android.hardware.keymaster-V3-cpp",
David Zeuthenab3e5652019-10-28 13:32:48 -040056 "libcppbor",
57 ]
58}
59
60filegroup {
61 name: "credstore_aidl",
62 srcs: [
63 "binder/android/security/identity/ICredential.aidl",
64 "binder/android/security/identity/IWritableCredential.aidl",
65 "binder/android/security/identity/ICredentialStore.aidl",
66 "binder/android/security/identity/AccessControlProfileParcel.aidl",
67 "binder/android/security/identity/EntryNamespaceParcel.aidl",
68 "binder/android/security/identity/EntryParcel.aidl",
69 "binder/android/security/identity/RequestNamespaceParcel.aidl",
70 "binder/android/security/identity/RequestEntryParcel.aidl",
71 "binder/android/security/identity/ResultNamespaceParcel.aidl",
72 "binder/android/security/identity/ResultEntryParcel.aidl",
73 "binder/android/security/identity/GetEntriesResultParcel.aidl",
74 "binder/android/security/identity/AuthKeyParcel.aidl",
75 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
76 "binder/android/security/identity/ICredentialStoreFactory.aidl",
77 ],
78 path: "binder",
79}
80
81cc_library_shared {
82 name: "libcredstore_aidl",
83 srcs: [
84 ":credstore_aidl",
85 ],
86 aidl: {
87 export_aidl_headers: true,
88 include_dirs: [
89 "system/security/identity/binder",
90 ],
91 },
92 shared_libs: [
93 "libbinder",
94 "libutils",
95 "libkeymaster4support",
96 ],
97 export_shared_lib_headers: [
98 "libbinder",
99 ],
100}