blob: def069b9271d5a12094a7b2d64fc445020254620 [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
Yifan Hong53e0deb2019-03-22 17:01:08 -070015cc_library {
Yifan Hong098323b2019-03-04 18:20:02 -080016 name: "libcgrouprc",
17 host_supported: true,
Yifan Hong89d1c192020-10-21 18:07:28 -070018 ramdisk_available: true,
19 vendor_ramdisk_available: true,
Yifan Hong098323b2019-03-04 18:20:02 -080020 recovery_available: true,
Yifan Hong53e0deb2019-03-22 17:01:08 -070021 // Do not ever mark this as vendor_available; otherwise, vendor modules
22 // that links to the static library will behave unexpectedly. All on-device
23 // modules should use libprocessgroup which links to the LL-NDK library
24 // defined below. The static library is built for tests.
25 vendor_available: false,
dimitry49c1f6e2019-05-16 14:19:09 +020026 native_bridge_supported: true,
Colin Cross6a2b1662020-10-19 13:38:05 -070027 llndk_stubs: "libcgrouprc.llndk",
Yifan Hong098323b2019-03-04 18:20:02 -080028 srcs: [
29 "cgroup_controller.cpp",
30 "cgroup_file.cpp",
31 ],
32 cflags: [
33 "-Wall",
34 "-Werror",
35 ],
36 export_include_dirs: [
37 "include",
38 ],
39 header_libs: [
40 "libprocessgroup_headers",
41 ],
42 shared_libs: [
43 "libbase",
44 ],
45 static_libs: [
46 "libcgrouprc_format",
47 ],
48 stubs: {
Jiyong Park9ae5dab2021-02-04 21:02:23 +090049 symbol_file: "libcgrouprc.map.txt",
Yifan Hong098323b2019-03-04 18:20:02 -080050 versions: ["29"],
51 },
Yifan Hong5ece3952019-04-03 14:44:10 -070052 target: {
53 linux: {
Jiyong Park9ae5dab2021-02-04 21:02:23 +090054 version_script: "libcgrouprc.map.txt",
Yifan Hong5ece3952019-04-03 14:44:10 -070055 },
56 },
Yifan Hong098323b2019-03-04 18:20:02 -080057}
58
59llndk_library {
Colin Cross6a2b1662020-10-19 13:38:05 -070060 name: "libcgrouprc.llndk",
Jiyong Park9ae5dab2021-02-04 21:02:23 +090061 symbol_file: "libcgrouprc.map.txt",
dimitry49c1f6e2019-05-16 14:19:09 +020062 native_bridge_supported: true,
Yifan Hong098323b2019-03-04 18:20:02 -080063 export_include_dirs: [
64 "include",
65 ],
66}