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 cpp_std: "gnu++23", 25 vendor_available: true, 26 product_available: true, 27 ramdisk_available: true, 28 vendor_ramdisk_available: true, 29 recovery_available: true, 30 host_supported: true, 31 native_bridge_supported: true, 32 apex_available: [ 33 "//apex_available:platform", 34 "//apex_available:anyapex", 35 ], 36 min_sdk_version: "30", 37 export_include_dirs: [ 38 "include", 39 ], 40 srcs: [ 41 "cgroup_controller.cpp", 42 "cgroup_descriptor.cpp", 43 "util.cpp", 44 ], 45 shared_libs: [ 46 "libbase", 47 ], 48 static_libs: [ 49 "libjsoncpp", 50 ], 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