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 15cc_library_shared { 16 name: "libclassdescriptors", 17 18 srcs: ["src/jni/classdescriptors.cpp"], 19 header_libs: ["libopenjdkjvmti_headers"], 20 sdk_version: "current", 21 stl: "c++_static", 22} 23 24java_library { 25 name: "cts-api-signature-test", 26 srcs: ["src/java/**/*.java"], 27 sdk_version: "test_current", 28 static_libs: [ 29 "cts-signature-common", 30 "repackaged.android.test.base", 31 "repackaged.android.test.runner", 32 ], 33} 34 35// Defaults for signature api checks. 36java_defaults { 37 name: "signature-api-check-defaults", 38 defaults: ["cts_defaults"], 39 srcs: [ 40 "src/**/*.java", 41 ], 42 static_libs: [ 43 "cts-api-signature-test", 44 ], 45 jni_libs: [ 46 "libclassdescriptors", 47 ], 48 sdk_version: "test_current", 49 compile_multilib: "both", 50} 51 52// Defaults for hiddenapi killswitch checks. 53java_defaults { 54 name: "hiddenapi-killswitch-check-defaults", 55 defaults: ["cts_defaults"], 56 57 compile_multilib: "both", 58 jni_libs: [ 59 "libcts_dexchecker", 60 "libclassdescriptors", 61 ], 62 stl: "c++_static", 63 64 // Tag this module as a cts test artifact 65 sdk_version: "test_current", 66 static_libs: ["cts-api-signature-test"], 67} 68 69// Access the hiddenapi-flags.csv file produced by the build. 70hiddenapi_flags { 71 name: "cts-hiddenapi-flags-csv", 72 filename: "hiddenapi-flags.csv", 73} 74 75// Defaults for hiddenapi blacklist checks. 76java_defaults { 77 name: "hiddenapi-blacklist-check-defaults", 78 defaults: ["signature-api-check-defaults"], 79 java_resources: [ 80 ":cts-hiddenapi-flags-csv", 81 ], 82 jni_libs: [ 83 "libcts_dexchecker", 84 ], 85} 86 87