blob: c79d00ba10c3d37f64351cb42398404a0e7da7ce [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
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060034}
35
36cc_binary {
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060037 name: "keystore_cli_v2",
David Drysdalec4e0d5b2021-11-22 18:12:06 +000038 defaults: [
39 "keystore_defaults",
40 "keystore2_use_latest_aidl_ndk_shared",
41 ],
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060042
43 cflags: [
44 "-DKEYMASTER_NAME_TAGS",
45 "-Wno-unused-parameter",
46 ],
Janis Danisevskis2437fde2021-03-08 11:30:11 -080047 srcs: [
48 "keystore_cli_v2.cpp",
49 "keystore_client.proto",
50 ],
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060051 shared_libs: [
Jiyong Park0d61dd62021-07-27 12:20:26 +090052 "android.security.apc-ndk",
David Zeuthenc6eb7cd2017-11-27 11:33:55 -050053 "libbinder",
Janis Danisevskis2437fde2021-03-08 11:30:11 -080054 "libbinder_ndk",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060055 "libchrome",
Janis Danisevskis2437fde2021-03-08 11:30:11 -080056 "libcrypto",
57 "libkeymint_support",
58 "libprotobuf-cpp-lite",
David Zeuthenc6eb7cd2017-11-27 11:33:55 -050059 "libutils",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060060 ],
61
62 local_include_dirs: ["include"],
63}
64
David Zeuthenf2a28672020-01-30 16:20:07 -050065// Library used by both keystore and credstore for generating the ASN.1 stored
66// in Tag::ATTESTATION_APPLICATION_ID
Aditya Wazir4f33d5e2021-04-29 10:40:31 +053067cc_library {
David Zeuthenf2a28672020-01-30 16:20:07 -050068 name: "libkeystore-attestation-application-id",
69 defaults: ["keystore_defaults"],
70
71 srcs: [
David Zeuthenf2a28672020-01-30 16:20:07 -050072 "keystore_attestation_id.cpp",
David Zeuthenf2a28672020-01-30 16:20:07 -050073 ],
74 shared_libs: [
Rajesh Nyamagoud3f6c15c2023-03-11 01:26:48 +000075 "android.security.aaid_aidl-cpp",
David Zeuthenf2a28672020-01-30 16:20:07 -050076 "libbase",
77 "libbinder",
Rajesh Nyamagoud3f6c15c2023-03-11 01:26:48 +000078 "libcrypto",
David Zeuthenf2a28672020-01-30 16:20:07 -050079 "libhidlbase",
80 "liblog",
81 "libutils",
David Zeuthenf2a28672020-01-30 16:20:07 -050082 ],
83
84 export_include_dirs: ["include"],
85}
86
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060087// Library for keystore clients using the WiFi HIDL interface
Aditya Wazirf6c3bfc2021-06-02 16:25:34 +053088cc_library {
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060089 name: "libkeystore-wifi-hidl",
90 defaults: ["keystore_defaults"],
91
92 srcs: ["keystore_get_wifi_hidl.cpp"],
93 shared_libs: [
94 "android.system.wifi.keystore@1.0",
95 "libbase",
96 "libhidlbase",
Jeff Sharkeyc493cf92017-10-23 10:39:50 -060097 "liblog",
98 "libutils",
99 ],
100
101 export_include_dirs: ["include"],
102
Aditya Vasu Wazir40353d82021-09-02 11:05:53 +0000103 vendor: true,
Jeff Sharkeyc493cf92017-10-23 10:39:50 -0600104}