1// Copyright (C) 2019 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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_library { 20 name: "libcgrouprc", 21 host_supported: true, 22 // Do not ever mark this as vendor_available; otherwise, vendor modules 23 // that links to the static library will behave unexpectedly. All on-device 24 // modules should use libprocessgroup which links to the LL-NDK library 25 // defined below. The static library is built for tests. 26 vendor_available: false, 27 native_bridge_supported: true, 28 llndk: { 29 symbol_file: "libcgrouprc.map.txt", 30 }, 31 srcs: [ 32 "a_cgroup_controller.cpp", 33 "a_cgroup_file.cpp", 34 ], 35 cflags: [ 36 "-Wall", 37 "-Werror", 38 ], 39 export_include_dirs: [ 40 "include", 41 ], 42 header_libs: [ 43 "libprocessgroup_headers", 44 ], 45 shared_libs: [ 46 "libbase", 47 ], 48 static_libs: [ 49 "libjsoncpp", 50 "libprocessgroup_util", 51 ], 52 stubs: { 53 symbol_file: "libcgrouprc.map.txt", 54 versions: ["29"], 55 }, 56 target: { 57 linux: { 58 version_script: "libcgrouprc.map.txt", 59 }, 60 }, 61} 62