blob: ed8ff2f3d300016f2443ddd81129aa6d95a4f11a [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",
42 "libkeystore_aidl",
43 "libcredstore_aidl",
44 "libutils",
45 "libhidlbase",
46 "android.hardware.identity-support-lib",
47 "libkeymaster4support",
David Zeuthenf2a28672020-01-30 16:20:07 -050048 "libkeystore-attestation-application-id",
David Zeuthenab3e5652019-10-28 13:32:48 -040049 ],
50 static_libs: [
Jeongik Cha98a5d092021-01-26 22:35:13 +090051 "android.hardware.identity-V3-cpp",
52 "android.hardware.keymaster-V3-cpp",
David Zeuthenab3e5652019-10-28 13:32:48 -040053 "libcppbor",
54 ]
55}
56
57filegroup {
58 name: "credstore_aidl",
59 srcs: [
60 "binder/android/security/identity/ICredential.aidl",
61 "binder/android/security/identity/IWritableCredential.aidl",
62 "binder/android/security/identity/ICredentialStore.aidl",
63 "binder/android/security/identity/AccessControlProfileParcel.aidl",
64 "binder/android/security/identity/EntryNamespaceParcel.aidl",
65 "binder/android/security/identity/EntryParcel.aidl",
66 "binder/android/security/identity/RequestNamespaceParcel.aidl",
67 "binder/android/security/identity/RequestEntryParcel.aidl",
68 "binder/android/security/identity/ResultNamespaceParcel.aidl",
69 "binder/android/security/identity/ResultEntryParcel.aidl",
70 "binder/android/security/identity/GetEntriesResultParcel.aidl",
71 "binder/android/security/identity/AuthKeyParcel.aidl",
72 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
73 "binder/android/security/identity/ICredentialStoreFactory.aidl",
74 ],
75 path: "binder",
76}
77
78cc_library_shared {
79 name: "libcredstore_aidl",
80 srcs: [
81 ":credstore_aidl",
82 ],
83 aidl: {
84 export_aidl_headers: true,
85 include_dirs: [
86 "system/security/identity/binder",
87 ],
88 },
89 shared_libs: [
90 "libbinder",
91 "libutils",
92 "libkeymaster4support",
93 ],
94 export_shared_lib_headers: [
95 "libbinder",
96 ],
97}