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_test { |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 27 | name: "VtsAidlKeyMintTargetTest", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 28 | defaults: [ |
| 29 | "VtsHalTargetTestDefaults", |
| 30 | "use_libaidlvintf_gtest_helper_static", |
| 31 | ], |
| 32 | srcs: [ |
Shawn Willden | 7c13039 | 2020-12-21 09:58:22 -0700 | [diff] [blame] | 33 | "AttestKeyTest.cpp", |
Selene Huang | 531a72d | 2021-04-15 01:09:47 -0700 | [diff] [blame] | 34 | "DeviceUniqueAttestationTest.cpp", |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 35 | "KeyMintTest.cpp", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 36 | ], |
| 37 | shared_libs: [ |
Janis Danisevskis | 24c0470 | 2020-12-16 18:28:39 -0800 | [diff] [blame] | 38 | "libbinder_ndk", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 39 | "libcrypto", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 40 | ], |
| 41 | static_libs: [ |
Jeongik Cha | 1674c13 | 2021-01-26 22:34:55 +0900 | [diff] [blame] | 42 | "android.hardware.security.keymint-V1-ndk_platform", |
| 43 | "android.hardware.security.secureclock-V1-ndk_platform", |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 44 | "libcppbor_external", |
Max Bires | 9704ff6 | 2021-04-07 11:12:01 -0700 | [diff] [blame] | 45 | "libcppcose_rkp", |
Max Bires | 38dd36e | 2021-05-23 15:06:23 -0700 | [diff] [blame] | 46 | "libkeymint", |
David Drysdale | 4dc0107 | 2021-04-01 12:17:35 +0100 | [diff] [blame] | 47 | "libkeymint_remote_prov_support", |
Max Bires | 38dd36e | 2021-05-23 15:06:23 -0700 | [diff] [blame] | 48 | "libkeymint_support", |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 49 | "libkeymint_vts_test_utils", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 50 | ], |
| 51 | test_suites: [ |
| 52 | "general-tests", |
| 53 | "vts", |
| 54 | ], |
| 55 | } |
| 56 | |
| 57 | cc_test_library { |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 58 | name: "libkeymint_vts_test_utils", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 59 | defaults: [ |
| 60 | "VtsHalTargetTestDefaults", |
| 61 | "use_libaidlvintf_gtest_helper_static", |
| 62 | ], |
| 63 | srcs: [ |
| 64 | "KeyMintAidlTestBase.cpp", |
| 65 | ], |
| 66 | export_include_dirs: [ |
| 67 | ".", |
| 68 | ], |
| 69 | shared_libs: [ |
Janis Danisevskis | 24c0470 | 2020-12-16 18:28:39 -0800 | [diff] [blame] | 70 | "libbinder_ndk", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 71 | "libcrypto", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 72 | ], |
| 73 | static_libs: [ |
Jeongik Cha | 1674c13 | 2021-01-26 22:34:55 +0900 | [diff] [blame] | 74 | "android.hardware.security.keymint-V1-ndk_platform", |
| 75 | "android.hardware.security.secureclock-V1-ndk_platform", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 76 | "libcppbor_external", |
Max Bires | 9704ff6 | 2021-04-07 11:12:01 -0700 | [diff] [blame] | 77 | "libcppcose_rkp", |
David Drysdale | 4dc0107 | 2021-04-01 12:17:35 +0100 | [diff] [blame] | 78 | "libgmock_ndk", |
Max Bires | 38dd36e | 2021-05-23 15:06:23 -0700 | [diff] [blame] | 79 | "libkeymint", |
David Drysdale | 4dc0107 | 2021-04-01 12:17:35 +0100 | [diff] [blame] | 80 | "libkeymint_remote_prov_support", |
Max Bires | 38dd36e | 2021-05-23 15:06:23 -0700 | [diff] [blame] | 81 | "libkeymint_support", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 82 | ], |
| 83 | } |
| 84 | |
| 85 | cc_test { |
| 86 | name: "VtsHalRemotelyProvisionedComponentTargetTest", |
| 87 | defaults: [ |
| 88 | "VtsHalTargetTestDefaults", |
| 89 | "use_libaidlvintf_gtest_helper_static", |
| 90 | ], |
| 91 | srcs: [ |
| 92 | "VtsRemotelyProvisionedComponentTests.cpp", |
| 93 | ], |
| 94 | shared_libs: [ |
| 95 | "libbinder_ndk", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 96 | "libcrypto", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 97 | ], |
| 98 | static_libs: [ |
Jeongik Cha | 95dbe44 | 2021-02-17 12:30:56 +0900 | [diff] [blame] | 99 | "android.hardware.security.keymint-V1-ndk_platform", |
David Drysdale | f0d516d | 2021-03-22 07:51:43 +0000 | [diff] [blame] | 100 | "android.hardware.security.secureclock-V1-ndk_platform", |
Max Bires | 9704ff6 | 2021-04-07 11:12:01 -0700 | [diff] [blame] | 101 | "libcppbor_external", |
| 102 | "libcppcose_rkp", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 103 | "libgmock_ndk", |
Max Bires | 9704ff6 | 2021-04-07 11:12:01 -0700 | [diff] [blame] | 104 | "libkeymaster_portable", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 105 | "libkeymint", |
David Drysdale | f0d516d | 2021-03-22 07:51:43 +0000 | [diff] [blame] | 106 | "libkeymint_support", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 107 | "libkeymint_remote_prov_support", |
David Drysdale | f0d516d | 2021-03-22 07:51:43 +0000 | [diff] [blame] | 108 | "libkeymint_vts_test_utils", |
Max Bires | 9704ff6 | 2021-04-07 11:12:01 -0700 | [diff] [blame] | 109 | "libpuresoftkeymasterdevice", |
Shawn Willden | 274bb55 | 2020-09-30 22:39:22 -0600 | [diff] [blame] | 110 | ], |
| 111 | test_suites: [ |
| 112 | "general-tests", |
| 113 | "vts", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 114 | ], |
| 115 | } |