1//
2// Copyright (C) 2023 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// ==========================================================
18// Native library for custom GoogleTest matchers
19// ==========================================================
20package {
21    default_applicable_licenses: ["Android-Apache-2.0"],
22}
23
24cc_test_library {
25    name: "libstatsgtestmatchers",
26    srcs: [
27        ":libstats_log_protos",
28        ":libstats_subscription_protos",
29    ],
30    export_include_dirs: ["include"],
31    proto: {
32        type: "lite",
33        include_dirs: [
34            "external/protobuf/src",
35        ],
36        static: true,
37    },
38    static_libs: [
39        "libgmock",
40        "libprotobuf-cpp-lite",
41    ],
42    shared: {
43        enabled: false,
44    },
45    cflags: [
46        "-Wall",
47        "-Werror",
48        "-Wthread-safety",
49        "-Wno-deprecated-declarations",
50    ],
51    visibility: [
52        "//packages/modules/StatsD/lib/libstatspull",
53        "//packages/modules/StatsD/statsd",
54    ],
55}
56