blob: 892c5b41f3525e9ddc70030b58679709f060e1a4 [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",
David Drysdalec4e0d5b2021-11-22 18:12:06 +000039 defaults: [
40 "keystore_defaults",
41 "keystore2_use_latest_aidl_ndk_shared",
42 ],
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060043
44 cflags: [
45 "-DKEYMASTER_NAME_TAGS",
46 "-Wno-unused-parameter",
47 ],
Janis Danisevskis2437fde2021-03-08 11:30:11 -080048 srcs: [
49 "keystore_cli_v2.cpp",
50 "keystore_client.proto",
51 ],
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060052 shared_libs: [
Jiyong Park0d61dd62021-07-27 12:20:26 +090053 "android.security.apc-ndk",
David Zeuthenc6eb7cd2017-11-27 11:33:55 -050054 "libbinder",
Janis Danisevskis2437fde2021-03-08 11:30:11 -080055 "libbinder_ndk",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060056 "libchrome",
Janis Danisevskis2437fde2021-03-08 11:30:11 -080057 "libcrypto",
58 "libkeymint_support",
59 "libprotobuf-cpp-lite",
David Zeuthenc6eb7cd2017-11-27 11:33:55 -050060 "libutils",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060061 ],
62
63 local_include_dirs: ["include"],
64}
65
David Zeuthenf2a28672020-01-30 16:20:07 -050066// Library used by both keystore and credstore for generating the ASN.1 stored
67// in Tag::ATTESTATION_APPLICATION_ID
Aditya Wazir4f33d5e2021-04-29 10:40:31 +053068cc_library {
David Zeuthenf2a28672020-01-30 16:20:07 -050069 name: "libkeystore-attestation-application-id",
70 defaults: ["keystore_defaults"],
71
72 srcs: [
73 ":IKeyAttestationApplicationIdProvider.aidl",
74 "keystore_attestation_id.cpp",
75 "KeyAttestationApplicationId.cpp",
76 "KeyAttestationPackageInfo.cpp",
77 "Signature.cpp",
78 ],
79 shared_libs: [
80 "libbase",
81 "libbinder",
82 "libhidlbase",
83 "liblog",
84 "libutils",
85 "libcrypto",
86 ],
87
88 export_include_dirs: ["include"],
89}
90
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060091// Library for keystore clients using the WiFi HIDL interface
Aditya Wazirf6c3bfc2021-06-02 16:25:34 +053092cc_library {
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060093 name: "libkeystore-wifi-hidl",
94 defaults: ["keystore_defaults"],
95
96 srcs: ["keystore_get_wifi_hidl.cpp"],
97 shared_libs: [
98 "android.system.wifi.keystore@1.0",
99 "libbase",
100 "libhidlbase",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -0600101 "liblog",
102 "libutils",
103 ],
104
105 export_include_dirs: ["include"],
106
Aditya Vasu Wazir40353d82021-09-02 11:05:53 +0000107 vendor: true,
Jeff Sharkeyc493cf92017-10-23 10:39:50 -0600108}