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", |
| 33 | ], |
| 34 | srcs: [ |
| 35 | "attestation_record.cpp", |
| 36 | "authorization_set.cpp", |
| 37 | "keymint_utils.cpp", |
| 38 | "key_param_output.cpp", |
| 39 | ], |
| 40 | export_include_dirs: [ |
| 41 | "include", |
| 42 | ], |
| 43 | shared_libs: [ |
Jiyong Park | 27f77fe | 2021-07-27 12:16:52 +0900 | [diff] [blame] | 44 | "android.hardware.security.keymint-V1-ndk", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 45 | "libbase", |
| 46 | "libcrypto", |
| 47 | "libutils", |
Tommy Chiu | abcf89d | 2021-10-26 22:51:42 +0800 | [diff] [blame] | 48 | "libhardware", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 49 | ], |
| 50 | } |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 51 | |
| 52 | cc_library { |
| 53 | name: "libkeymint_remote_prov_support", |
| 54 | vendor_available: true, |
| 55 | srcs: [ |
| 56 | "remote_prov_utils.cpp", |
| 57 | ], |
| 58 | export_include_dirs: [ |
| 59 | "include", |
| 60 | ], |
| 61 | shared_libs: [ |
Seth Moore | f4c8ff9 | 2021-06-25 14:20:15 -0700 | [diff] [blame] | 62 | "libbase", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 63 | "libcppbor_external", |
Max Bires | 9704ff6 | 2021-04-07 11:12:01 -0700 | [diff] [blame] | 64 | "libcppcose_rkp", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 65 | "libcrypto", |
Seth Moore | f4c8ff9 | 2021-06-25 14:20:15 -0700 | [diff] [blame] | 66 | "libjsoncpp", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 67 | ], |
| 68 | } |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 69 | |
| 70 | cc_test { |
| 71 | name: "libkeymint_remote_prov_support_test", |
| 72 | srcs: ["remote_prov_utils_test.cpp"], |
| 73 | static_libs: [ |
| 74 | "libgmock", |
| 75 | "libgtest_main", |
| 76 | ], |
| 77 | shared_libs: [ |
Seth Moore | f4c8ff9 | 2021-06-25 14:20:15 -0700 | [diff] [blame] | 78 | "libbase", |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 79 | "libcppbor_external", |
| 80 | "libcppcose_rkp", |
| 81 | "libcrypto", |
Seth Moore | f4c8ff9 | 2021-06-25 14:20:15 -0700 | [diff] [blame] | 82 | "libjsoncpp", |
Seth Moore | 42a2f6b | 2021-06-22 16:47:48 -0700 | [diff] [blame] | 83 | "libkeymaster_portable", |
| 84 | "libkeymint_remote_prov_support", |
| 85 | ], |
| 86 | } |