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 "cts-signature-common", 34 "repackaged.android.test.base", 35 "repackaged.android.test.runner", 36 ], 37} 38 39// Defaults for signature api checks. 40java_defaults { 41 name: "signature-api-check-defaults", 42 defaults: ["cts_defaults"], 43 srcs: [ 44 "src/**/*.java", 45 ], 46 static_libs: [ 47 "cts-api-signature-test", 48 ], 49 jni_libs: [ 50 "libclassdescriptors", 51 ], 52 sdk_version: "test_current", 53 compile_multilib: "both", 54} 55 56// Defaults for signature api checks with dynamic config. 57java_defaults { 58 name: "signature-api-check-dynamic-config-defaults", 59 defaults: ["signature-api-check-defaults"], 60 defaults_visibility: [ 61 "//cts/tests/signature:__subpackages__", 62 ], 63 static_libs: [ 64 "cts-signature-with-dynamic-config", 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-dynamic-config-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