• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_team: "trendy_team_java_core_libraries",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_library_shared {
21    name: "libclassdescriptors",
22
23    srcs: ["src/jni/classdescriptors.cpp"],
24    header_libs: ["libopenjdkjvmti_headers"],
25    sdk_version: "current",
26    stl: "c++_static",
27}
28
29java_library {
30    name: "cts-api-signature-test",
31    srcs: ["src/java/**/*.java"],
32    sdk_version: "test_current",
33    static_libs: [
34        // androidx.test.runner depends on android.test classes from this library.
35        "android.test.base-minus-junit",
36        "androidx.test.runner",
37        "compatibility-device-util-axt",
38        "cts-signature-common",
39    ],
40}
41
42// Defaults for signature api checks.
43java_defaults {
44    name: "signature-api-check-defaults",
45    defaults: ["cts_defaults"],
46    srcs: [
47        "src/**/*.java",
48    ],
49    static_libs: [
50        "cts-api-signature-test",
51    ],
52    jni_libs: [
53        "libclassdescriptors",
54    ],
55    sdk_version: "test_current",
56    compile_multilib: "both",
57}
58
59// Filegroup containing the jarjar rules that need to be applied to any test that checks for
60// accessibility (or inaccesibility) of android.test and junit classes from the android.test.base
61// and android.test.runner libraries.
62filegroup {
63    name: "cts-android-test-jarjar-rules",
64    srcs: [
65        "android-test-jarjar-rules.txt",
66    ],
67}
68
69// Defaults for hiddenapi killswitch checks.
70java_defaults {
71    name: "hiddenapi-killswitch-check-defaults",
72    defaults: ["cts_defaults"],
73
74    compile_multilib: "both",
75    jni_libs: [
76        "libcts_dexchecker",
77        "libclassdescriptors",
78    ],
79    stl: "c++_static",
80
81    // Tag this module as a cts test artifact
82    sdk_version: "test_current",
83    static_libs: ["cts-api-signature-test"],
84}
85
86filegroup {
87    name: "cts-api-hiddenapi-filter-csv",
88    srcs: [
89        "hiddenapi-filter.csv",
90    ],
91}
92
93// Defaults for hiddenapi blocklist checks.
94java_defaults {
95    name: "hiddenapi-blocklist-check-defaults",
96    defaults: ["signature-api-check-defaults"],
97    java_resources: [
98        ":platform-bootclasspath{hiddenapi-flags.csv}",
99        ":cts-api-hiddenapi-filter-csv",
100    ],
101    jni_libs: [
102        "libcts_dexchecker",
103    ],
104}
105
106// The CtsHiddenApiBlocklistApiDynamicConfig file is intended to be used by
107// multiple CtsHiddenApiBlocklist...TestCases.
108filegroup {
109    name: "CtsHiddenApiBlocklistApiDynamicConfig",
110    srcs: [
111        "CtsHiddenApiBlocklistApiDynamicConfig.dynamic",
112    ],
113}
114