1// Copyright (C) 2024 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
15soong_config_module_type {
16    name: "libuprobestats_client_cc_library_shared",
17    module_type: "cc_library_shared",
18    config_namespace: "ANDROID",
19    bool_variables: [
20        "release_uprobestats_module",
21    ],
22    properties: [
23        "stubs",
24        "min_sdk_version",
25        "apex_available",
26    ],
27}
28
29soong_config_bool_variable {
30    name: "release_uprobestats_module",
31}
32
33libuprobestats_client_cc_library_shared {
34    name: "libuprobestats_client",
35    soong_config_variables: {
36        release_uprobestats_module: {
37            stubs: {
38                symbol_file: "libcom.android.uprobestats.client.map.txt",
39            },
40            min_sdk_version: "35",
41            apex_available: [
42                "com.android.uprobestats",
43            ],
44            conditions_default: {
45                stubs: {
46                    symbol_file: "libuprobestats_client.map.txt",
47                    versions: ["35"],
48                },
49            },
50        },
51    },
52    cflags: [
53        "-Wall",
54        "-Werror",
55        "-Wno-enum-compare",
56        "-Wno-unused-function",
57    ],
58    srcs: ["uprobestats_client.cpp"],
59    shared_libs: ["libbase"],
60    export_include_dirs: ["include"],
61    header_libs: ["libcutils_headers"],
62}
63