blob: 0cbe0cce373ed00b4f70729e4ac1d9c43dbc4af3 [file] [log] [blame]
Yifan Hong098323b2019-03-04 18:20:02 -08001// 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
Bob Badourd69ad692021-02-16 19:02:14 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Yifan Hong53e0deb2019-03-22 17:01:08 -070019cc_library {
Yifan Hong098323b2019-03-04 18:20:02 -080020 name: "libcgrouprc",
21 host_supported: true,
Yifan Hong89d1c192020-10-21 18:07:28 -070022 ramdisk_available: true,
23 vendor_ramdisk_available: true,
Yifan Hong098323b2019-03-04 18:20:02 -080024 recovery_available: true,
Yifan Hong53e0deb2019-03-22 17:01:08 -070025 // Do not ever mark this as vendor_available; otherwise, vendor modules
26 // that links to the static library will behave unexpectedly. All on-device
27 // modules should use libprocessgroup which links to the LL-NDK library
28 // defined below. The static library is built for tests.
29 vendor_available: false,
dimitry49c1f6e2019-05-16 14:19:09 +020030 native_bridge_supported: true,
Colin Cross6a2b1662020-10-19 13:38:05 -070031 llndk_stubs: "libcgrouprc.llndk",
Yifan Hong098323b2019-03-04 18:20:02 -080032 srcs: [
33 "cgroup_controller.cpp",
34 "cgroup_file.cpp",
35 ],
36 cflags: [
37 "-Wall",
38 "-Werror",
39 ],
40 export_include_dirs: [
41 "include",
42 ],
43 header_libs: [
44 "libprocessgroup_headers",
45 ],
46 shared_libs: [
47 "libbase",
48 ],
49 static_libs: [
50 "libcgrouprc_format",
51 ],
52 stubs: {
Jiyong Park9ae5dab2021-02-04 21:02:23 +090053 symbol_file: "libcgrouprc.map.txt",
Yifan Hong098323b2019-03-04 18:20:02 -080054 versions: ["29"],
55 },
Yifan Hong5ece3952019-04-03 14:44:10 -070056 target: {
57 linux: {
Jiyong Park9ae5dab2021-02-04 21:02:23 +090058 version_script: "libcgrouprc.map.txt",
Yifan Hong5ece3952019-04-03 14:44:10 -070059 },
60 },
Yifan Hong098323b2019-03-04 18:20:02 -080061}
62
63llndk_library {
Colin Cross6a2b1662020-10-19 13:38:05 -070064 name: "libcgrouprc.llndk",
Jiyong Park9ae5dab2021-02-04 21:02:23 +090065 symbol_file: "libcgrouprc.map.txt",
dimitry49c1f6e2019-05-16 14:19:09 +020066 native_bridge_supported: true,
Yifan Hong098323b2019-03-04 18:20:02 -080067 export_include_dirs: [
68 "include",
69 ],
70}