1// Copyright (C) 2023 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
19java_library {
20    name: "gwp_asan_proto_common",
21    sdk_version: "core_current",
22    proto: {
23        type: "lite",
24        include_dirs: ["external/protobuf/src"],
25    },
26    srcs: ["proto/tombstone.proto"],
27    // Protos have lots of MissingOverride and similar.
28    errorprone: {
29        enabled: false,
30    },
31}
32
33java_library {
34    name: "gwp_asan_cts_common",
35    srcs: ["android/**/*.java"],
36    static_libs: [
37        "androidx.test.rules",
38        "androidx.test.core",
39        "androidx.test.ext.junit",
40        "compatibility-device-util-axt",
41        "ctstestrunner-axt",
42        "gwp_asan_proto_common",
43    ],
44}
45
46cc_test_library {
47    name: "libgwp_asan_cts_library_jni",
48    srcs: ["jni/gwp_asan_cts_library.cpp"],
49    cflags: [
50        "-Wall",
51        "-Werror",
52    ],
53    header_libs: ["jni_headers"],
54    shared_libs: ["liblog"],
55    sdk_version: "current",
56    stl: "libc++",
57    gtest: false,
58}
59