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