Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2020 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Bob Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 24 | } |
| 25 | |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 26 | cc_library { |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 27 | name: "libkeymint_support", |
Tommy Chiu | abcf89d | 2021-10-26 22:51:42 +0800 | [diff] [blame] | 28 | vendor_available: true, |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 29 | cflags: [ |
| 30 | "-Wall", |
| 31 | "-Wextra", |
| 32 | "-Werror", |
David Drysdale | da0b04c | 2024-11-07 13:35:43 +0000 | [diff] [blame] | 33 | "-DKEYMINT_HAL_V4", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 34 | ], |
| 35 | srcs: [ |
| 36 | "attestation_record.cpp", |
| 37 | "authorization_set.cpp", |
| 38 | "keymint_utils.cpp", |
| 39 | "key_param_output.cpp", |
| 40 | ], |
| 41 | export_include_dirs: [ |
| 42 | "include", |
| 43 | ], |
Karuna Wadhera | c42a2a6 | 2024-10-23 04:29:37 +0000 | [diff] [blame] | 44 | header_libs: [ |
| 45 | "libhardware_headers", |
| 46 | ], |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 47 | defaults: [ |
| 48 | "keymint_use_latest_hal_aidl_ndk_shared", |
| 49 | ], |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 50 | shared_libs: [ |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 51 | "libbase", |
| 52 | "libcrypto", |
| 53 | "libutils", |
Tommy Chiu | abcf89d | 2021-10-26 22:51:42 +0800 | [diff] [blame] | 54 | "libhardware", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 55 | ], |
| 56 | } |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 57 | |
| 58 | cc_library { |
Karuna Wadhera | c42a2a6 | 2024-10-23 04:29:37 +0000 | [diff] [blame] | 59 | name: "libkeymint_support_V3", |
| 60 | vendor_available: true, |
| 61 | cflags: [ |
| 62 | "-Wall", |
| 63 | "-Wextra", |
| 64 | "-Werror", |
| 65 | ], |
| 66 | srcs: [ |
| 67 | "attestation_record.cpp", |
| 68 | "authorization_set.cpp", |
| 69 | "keymint_utils.cpp", |
| 70 | "key_param_output.cpp", |
| 71 | ], |
| 72 | export_include_dirs: [ |
| 73 | "include", |
| 74 | ], |
| 75 | header_libs: [ |
| 76 | "libhardware_headers", |
| 77 | ], |
| 78 | shared_libs: [ |
| 79 | "android.hardware.security.keymint-V3-ndk", |
| 80 | "libbase", |
| 81 | "libcrypto", |
| 82 | "libutils", |
| 83 | "libhardware", |
| 84 | ], |
| 85 | } |
| 86 | |
| 87 | cc_library { |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 88 | name: "libkeymint_remote_prov_support", |
| 89 | vendor_available: true, |
| 90 | srcs: [ |
| 91 | "remote_prov_utils.cpp", |
| 92 | ], |
| 93 | export_include_dirs: [ |
| 94 | "include", |
| 95 | ], |
subrahmanyaman | fb213d6 | 2022-02-02 23:10:55 +0000 | [diff] [blame] | 96 | defaults: [ |
| 97 | "keymint_use_latest_hal_aidl_ndk_shared", |
| 98 | ], |
Seth Moore | 41e97f0 | 2022-11-04 17:39:05 +0000 | [diff] [blame] | 99 | static_libs: [ |
| 100 | "android.hardware.security.rkp-V3-ndk", |
| 101 | ], |
Andrew Scull | 9a8c945 | 2022-12-22 12:01:06 +0000 | [diff] [blame] | 102 | whole_static_libs: [ |
Andrew Scull | c54f433 | 2023-01-15 21:27:21 +0000 | [diff] [blame] | 103 | "libhwtrust_cxx", |
Andrew Scull | 9a8c945 | 2022-12-22 12:01:06 +0000 | [diff] [blame] | 104 | ], |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 105 | shared_libs: [ |
Seth Moore | f4c8ff9 | 2021-06-25 14:20:15 -0700 | [diff] [blame] | 106 | "libbase", |
Seth Moore | f1f6215 | 2022-09-13 12:00:30 -0700 | [diff] [blame] | 107 | "libbinder_ndk", |
Shawn Willden | 9812592 | 2024-03-28 20:42:34 -0600 | [diff] [blame] | 108 | "libcppbor", |
Max Bires | 9704ff6 | 2021-04-07 11:12:01 -0700 | [diff] [blame] | 109 | "libcppcose_rkp", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 110 | "libcrypto", |
subrahmanyaman | fb213d6 | 2022-02-02 23:10:55 +0000 | [diff] [blame] | 111 | "libkeymaster_portable", |
Seth Moore | f4c8ff9 | 2021-06-25 14:20:15 -0700 | [diff] [blame] | 112 | "libjsoncpp", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 113 | ], |
| 114 | } |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 115 | |
| 116 | cc_test { |
| 117 | name: "libkeymint_remote_prov_support_test", |
Sean Thomas | 2d2385b | 2024-11-07 23:56:03 +0000 | [diff] [blame] | 118 | cpp_std: "c++20", |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 119 | srcs: ["remote_prov_utils_test.cpp"], |
| 120 | static_libs: [ |
Seth Moore | 5937f07 | 2022-11-08 15:51:01 -0800 | [diff] [blame] | 121 | "android.hardware.security.rkp-V3-ndk", |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 122 | "libgmock", |
| 123 | "libgtest_main", |
Daniel Angell | 1f5ab0d | 2023-01-12 22:35:40 +0000 | [diff] [blame] | 124 | "libkeymint_remote_prov_support", |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 125 | ], |
subrahmanyaman | fb213d6 | 2022-02-02 23:10:55 +0000 | [diff] [blame] | 126 | defaults: [ |
| 127 | "keymint_use_latest_hal_aidl_ndk_shared", |
| 128 | ], |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 129 | shared_libs: [ |
Seth Moore | f4c8ff9 | 2021-06-25 14:20:15 -0700 | [diff] [blame] | 130 | "libbase", |
Sean Thomas | e230710 | 2024-10-16 11:27:36 +0000 | [diff] [blame] | 131 | "libbinder_ndk", |
Shawn Willden | 9812592 | 2024-03-28 20:42:34 -0600 | [diff] [blame] | 132 | "libcppbor", |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 133 | "libcppcose_rkp", |
| 134 | "libcrypto", |
Seth Moore | f4c8ff9 | 2021-06-25 14:20:15 -0700 | [diff] [blame] | 135 | "libjsoncpp", |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 136 | "libkeymaster_portable", |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 137 | ], |
| 138 | } |