xref: /aosp_15_r20/system/core/libprocessgroup/util/Android.bp (revision 00c7fec1bb09f3284aad6a6f96d2f63dfc3650ad)
1//
2// Copyright (C) 2019 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
17package {
18    default_team: "trendy_team_android_kernel",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22cc_library_static {
23    name: "libprocessgroup_util",
24    vendor_available: true,
25    product_available: true,
26    ramdisk_available: true,
27    vendor_ramdisk_available: true,
28    recovery_available: true,
29    host_supported: true,
30    native_bridge_supported: true,
31    apex_available: [
32        "//apex_available:platform",
33        "//apex_available:anyapex",
34    ],
35    min_sdk_version: "30",
36    export_include_dirs: [
37        "include",
38    ],
39    srcs: [
40        "cgroup_controller.cpp",
41        "cgroup_descriptor.cpp",
42        "util.cpp",
43    ],
44    shared_libs: [
45        "libbase",
46    ],
47    static_libs: [
48        "libjsoncpp",
49    ],
50    defaults: ["libprocessgroup_build_flags_cc"],
51}
52
53cc_test {
54    name: "libprocessgroup_util_test",
55    static_libs: ["libprocessgroup_util"],
56    srcs: ["tests/util.cpp"],
57    test_suites: ["general-tests"],
58}
59