blob: 8267a6b1647c60185e6d2a1cdbf161d488d13e10 [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",
Max Bires5bb33f42021-03-11 00:44:06 -080045 "libcrypto",
David Zeuthenab3e5652019-10-28 13:32:48 -040046 "libutils",
47 "libhidlbase",
48 "android.hardware.identity-support-lib",
49 "libkeymaster4support",
David Zeuthenf2a28672020-01-30 16:20:07 -050050 "libkeystore-attestation-application-id",
Hasini Gunasinghe1b531b92021-03-02 00:34:58 +000051 "android.hardware.security.keymint-V1-ndk_platform",
52 "android.security.authorization-ndk_platform",
David Zeuthenab3e5652019-10-28 13:32:48 -040053 ],
54 static_libs: [
Jeongik Cha98a5d092021-01-26 22:35:13 +090055 "android.hardware.identity-V3-cpp",
56 "android.hardware.keymaster-V3-cpp",
Max Bires5bb33f42021-03-11 00:44:06 -080057 "libcppbor_external",
David Zeuthenab3e5652019-10-28 13:32:48 -040058 ]
59}
60
61filegroup {
62 name: "credstore_aidl",
63 srcs: [
64 "binder/android/security/identity/ICredential.aidl",
65 "binder/android/security/identity/IWritableCredential.aidl",
66 "binder/android/security/identity/ICredentialStore.aidl",
67 "binder/android/security/identity/AccessControlProfileParcel.aidl",
68 "binder/android/security/identity/EntryNamespaceParcel.aidl",
69 "binder/android/security/identity/EntryParcel.aidl",
70 "binder/android/security/identity/RequestNamespaceParcel.aidl",
71 "binder/android/security/identity/RequestEntryParcel.aidl",
72 "binder/android/security/identity/ResultNamespaceParcel.aidl",
73 "binder/android/security/identity/ResultEntryParcel.aidl",
74 "binder/android/security/identity/GetEntriesResultParcel.aidl",
75 "binder/android/security/identity/AuthKeyParcel.aidl",
76 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
77 "binder/android/security/identity/ICredentialStoreFactory.aidl",
78 ],
79 path: "binder",
80}
81
82cc_library_shared {
83 name: "libcredstore_aidl",
84 srcs: [
85 ":credstore_aidl",
86 ],
87 aidl: {
88 export_aidl_headers: true,
89 include_dirs: [
90 "system/security/identity/binder",
91 ],
92 },
93 shared_libs: [
94 "libbinder",
95 "libutils",
96 "libkeymaster4support",
97 ],
98 export_shared_lib_headers: [
99 "libbinder",
100 ],
101}