1// Copyright (C) 2017 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_library_shared { 20 name: "libclassdescriptors", 21 22 srcs: ["src/jni/classdescriptors.cpp"], 23 header_libs: ["libopenjdkjvmti_headers"], 24 sdk_version: "current", 25 stl: "c++_static", 26} 27 28java_library { 29 name: "cts-api-signature-test", 30 srcs: ["src/java/**/*.java"], 31 sdk_version: "test_current", 32 static_libs: [ 33 // androidx.test.runner depends on android.test classes from this library. 34 "android.test.base-minus-junit", 35 "androidx.test.runner", 36 "compatibility-device-util-axt", 37 "cts-signature-common", 38 ], 39} 40 41// Defaults for signature api checks. 42java_defaults { 43 name: "signature-api-check-defaults", 44 defaults: ["cts_defaults"], 45 srcs: [ 46 "src/**/*.java", 47 ], 48 static_libs: [ 49 "cts-api-signature-test", 50 ], 51 jni_libs: [ 52 "libclassdescriptors", 53 ], 54 sdk_version: "test_current", 55 compile_multilib: "both", 56} 57 58// Filegroup containing the jarjar rules that need to be applied to any test that checks for 59// accessibility (or inaccesibility) of android.test and junit classes from the android.test.base 60// and android.test.runner libraries. 61filegroup { 62 name: "cts-android-test-jarjar-rules", 63 srcs: [ 64 "android-test-jarjar-rules.txt", 65 ], 66} 67 68// Defaults for hiddenapi killswitch checks. 69java_defaults { 70 name: "hiddenapi-killswitch-check-defaults", 71 defaults: ["cts_defaults"], 72 73 compile_multilib: "both", 74 jni_libs: [ 75 "libcts_dexchecker", 76 "libclassdescriptors", 77 ], 78 stl: "c++_static", 79 80 // Tag this module as a cts test artifact 81 sdk_version: "test_current", 82 static_libs: ["cts-api-signature-test"], 83} 84 85filegroup { 86 name: "cts-api-hiddenapi-filter-csv", 87 srcs: [ 88 "hiddenapi-filter.csv", 89 ], 90} 91 92// Defaults for hiddenapi blocklist checks. 93java_defaults { 94 name: "hiddenapi-blocklist-check-defaults", 95 defaults: ["signature-api-check-defaults"], 96 java_resources: [ 97 ":platform-bootclasspath{hiddenapi-flags.csv}", 98 ":cts-api-hiddenapi-filter-csv" 99 ], 100 jni_libs: [ 101 "libcts_dexchecker", 102 ], 103} 104 105// The CtsHiddenApiBlocklistApiDynamicConfig file is intended to be used by 106// multiple CtsHiddenApiBlocklist...TestCases. 107filegroup { 108 name: "CtsHiddenApiBlocklistApiDynamicConfig", 109 srcs: [ 110 "CtsHiddenApiBlocklistApiDynamicConfig.dynamic", 111 ], 112} 113