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 | |
| 17 | cc_library { |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 18 | name: "libkeymint_support", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 19 | cflags: [ |
| 20 | "-Wall", |
| 21 | "-Wextra", |
| 22 | "-Werror", |
| 23 | ], |
| 24 | srcs: [ |
| 25 | "attestation_record.cpp", |
| 26 | "authorization_set.cpp", |
| 27 | "keymint_utils.cpp", |
| 28 | "key_param_output.cpp", |
| 29 | ], |
| 30 | export_include_dirs: [ |
| 31 | "include", |
| 32 | ], |
| 33 | shared_libs: [ |
Jeongik Cha | 1674c13 | 2021-01-26 22:34:55 +0900 | [diff] [blame] | 34 | "android.hardware.security.keymint-V1-ndk_platform", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 35 | "libbase", |
| 36 | "libcrypto", |
| 37 | "libutils", |
| 38 | ], |
| 39 | } |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame^] | 40 | |
| 41 | cc_library { |
| 42 | name: "libkeymint_remote_prov_support", |
| 43 | vendor_available: true, |
| 44 | srcs: [ |
| 45 | "remote_prov_utils.cpp", |
| 46 | ], |
| 47 | export_include_dirs: [ |
| 48 | "include", |
| 49 | ], |
| 50 | shared_libs: [ |
| 51 | "libcppcose", |
| 52 | "libcppbor_external", |
| 53 | "libcrypto", |
| 54 | ], |
| 55 | } |
| 56 | |
| 57 | cc_library { |
| 58 | name: "libcppcose", |
| 59 | vendor_available: true, |
| 60 | srcs: [ |
| 61 | "cppcose.cpp", |
| 62 | ], |
| 63 | export_include_dirs: [ |
| 64 | "include", |
| 65 | ], |
| 66 | shared_libs: [ |
| 67 | "libbinder_ndk", |
| 68 | "libcppbor_external", |
| 69 | "libcrypto", |
| 70 | "liblog", |
| 71 | ], |
| 72 | static_libs: [ |
| 73 | // TODO(swillden): Remove keymint NDK |
| 74 | "android.hardware.security.keymint-unstable-ndk_platform", |
| 75 | ], |
| 76 | } |