blob: 0ab5198d815590a7a51173fdd7a4f6341e6dea1b [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 // SPDX-license-identifier-BSD
8 default_applicable_licenses: ["system_security_license"],
9}
10
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060011cc_defaults {
12 name: "keystore_defaults",
13
14 cflags: [
15 "-Wall",
16 "-Werror",
17 "-Wextra",
18 "-Wunused",
19 ],
20
21 sanitize: {
bohucccab482019-01-31 20:30:29 -080022 misc_undefined: [
23 "signed-integer-overflow",
24 "unsigned-integer-overflow",
25 "shift",
26 "integer-divide-by-zero",
27 "implicit-unsigned-integer-truncation",
28 // BUG: 123630767
29 //"implicit-signed-integer-truncation",
30 "implicit-integer-sign-change",
31 ],
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060032 },
33
34 clang: true,
35}
36
37cc_binary {
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060038 name: "keystore_cli_v2",
39 defaults: ["keystore_defaults"],
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060040
41 cflags: [
42 "-DKEYMASTER_NAME_TAGS",
43 "-Wno-unused-parameter",
44 ],
Janis Danisevskis2437fde2021-03-08 11:30:11 -080045 srcs: [
46 "keystore_cli_v2.cpp",
47 "keystore_client.proto",
48 ],
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060049 shared_libs: [
Janis Danisevskis2437fde2021-03-08 11:30:11 -080050 "android.security.apc-ndk_platform",
51 "android.system.keystore2-V1-ndk_platform",
David Zeuthenc6eb7cd2017-11-27 11:33:55 -050052 "libbinder",
Janis Danisevskis2437fde2021-03-08 11:30:11 -080053 "libbinder_ndk",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060054 "libchrome",
Janis Danisevskis2437fde2021-03-08 11:30:11 -080055 "libcrypto",
56 "libkeymint_support",
57 "libprotobuf-cpp-lite",
David Zeuthenc6eb7cd2017-11-27 11:33:55 -050058 "libutils",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060059 ],
60
61 local_include_dirs: ["include"],
62}
63
David Zeuthenf2a28672020-01-30 16:20:07 -050064// Library used by both keystore and credstore for generating the ASN.1 stored
65// in Tag::ATTESTATION_APPLICATION_ID
66cc_library_shared {
67 name: "libkeystore-attestation-application-id",
68 defaults: ["keystore_defaults"],
69
70 srcs: [
71 ":IKeyAttestationApplicationIdProvider.aidl",
72 "keystore_attestation_id.cpp",
73 "KeyAttestationApplicationId.cpp",
74 "KeyAttestationPackageInfo.cpp",
75 "Signature.cpp",
76 ],
77 shared_libs: [
78 "libbase",
79 "libbinder",
80 "libhidlbase",
81 "liblog",
82 "libutils",
83 "libcrypto",
84 ],
85
86 export_include_dirs: ["include"],
87}
88
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060089// Library for keystore clients using the WiFi HIDL interface
Aditya Wazirf6c3bfc2021-06-02 16:25:34 +053090cc_library {
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060091 name: "libkeystore-wifi-hidl",
92 defaults: ["keystore_defaults"],
93
94 srcs: ["keystore_get_wifi_hidl.cpp"],
95 shared_libs: [
96 "android.system.wifi.keystore@1.0",
97 "libbase",
98 "libhidlbase",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060099 "liblog",
100 "libutils",
101 ],
102
103 export_include_dirs: ["include"],
104
105 vendor: true,
106}