blob: 1c74d4ed52e169ab0e8f364cc96bf634ff1c0f73 [file] [log] [blame]
T.J. Mercier28b37f22024-06-07 18:34:19 +00001//
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
T.J. Mercierae0b2902024-08-05 18:18:35 +000022cc_library_static {
T.J. Mercier28b37f22024-06-07 18:34:19 +000023 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 ],
T.J. Mercierae0b2902024-08-05 18:18:35 +000039 srcs: [
T.J. Merciera09ee8e2024-10-08 23:41:27 +000040 "cgroup_controller.cpp",
41 "cgroup_descriptor.cpp",
T.J. Mercierae0b2902024-08-05 18:18:35 +000042 "util.cpp",
43 ],
T.J. Merciera09ee8e2024-10-08 23:41:27 +000044 shared_libs: [
45 "libbase",
46 ],
47 static_libs: [
48 "libjsoncpp",
49 ],
T.J. Mercier28b37f22024-06-07 18:34:19 +000050 defaults: ["libprocessgroup_build_flags_cc"],
51}
52
53cc_test {
54 name: "libprocessgroup_util_test",
T.J. Mercierae0b2902024-08-05 18:18:35 +000055 static_libs: ["libprocessgroup_util"],
T.J. Mercier28b37f22024-06-07 18:34:19 +000056 srcs: ["tests/util.cpp"],
57 test_suites: ["general-tests"],
58}