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