• Home
  • 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_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 hiddenapi killswitch checks.
57java_defaults {
58    name: "hiddenapi-killswitch-check-defaults",
59    defaults: ["cts_defaults"],
60
61    compile_multilib: "both",
62    jni_libs: [
63        "libcts_dexchecker",
64        "libclassdescriptors",
65    ],
66    stl: "c++_static",
67
68    // Tag this module as a cts test artifact
69    sdk_version: "test_current",
70    static_libs: ["cts-api-signature-test"],
71}
72
73filegroup {
74    name: "cts-api-hiddenapi-filter-csv",
75    srcs: [
76        "hiddenapi-filter.csv",
77    ],
78}
79
80// Defaults for hiddenapi blocklist checks.
81java_defaults {
82    name: "hiddenapi-blocklist-check-defaults",
83    defaults: ["signature-api-check-defaults"],
84    java_resources: [
85        ":platform-bootclasspath{hiddenapi-flags.csv}",
86        ":cts-api-hiddenapi-filter-csv"
87    ],
88    jni_libs: [
89        "libcts_dexchecker",
90    ],
91}
92