53e0deb7b2
Use the LL-NDK library to read cgroup.rc. As a side-effect, the CgroupController class is changed to a wrapper of ACgroupController* from the library. The class itself essentially becomes the pointer, and can be trivially copied. Modify all client code for this change. Test: builds and boots Bug: 123664216 Change-Id: I635d9885db62e82f37421f6d20f59c84a6f4cbb2 Merged-In: I635d9885db62e82f37421f6d20f59c84a6f4cbb2
51 lines
1.1 KiB
Text
51 lines
1.1 KiB
Text
cc_library_headers {
|
|
name: "libprocessgroup_headers",
|
|
vendor_available: true,
|
|
recovery_available: true,
|
|
host_supported: true,
|
|
export_include_dirs: ["include"],
|
|
target: {
|
|
linux_bionic: {
|
|
enabled: true,
|
|
},
|
|
windows: {
|
|
enabled: true,
|
|
},
|
|
},
|
|
}
|
|
|
|
cc_library {
|
|
srcs: [
|
|
"cgroup_map.cpp",
|
|
"processgroup.cpp",
|
|
"sched_policy.cpp",
|
|
"task_profiles.cpp",
|
|
],
|
|
name: "libprocessgroup",
|
|
host_supported: true,
|
|
recovery_available: true,
|
|
vendor_available: true,
|
|
vndk: {
|
|
enabled: true,
|
|
support_system_process: true,
|
|
},
|
|
shared_libs: [
|
|
"libbase",
|
|
"libcgrouprc",
|
|
"libjsoncpp",
|
|
],
|
|
// for cutils/android_filesystem_config.h
|
|
header_libs: [
|
|
"libcutils_headers",
|
|
"libprocessgroup_headers",
|
|
],
|
|
export_include_dirs: ["include"],
|
|
export_header_lib_headers: [
|
|
"libprocessgroup_headers",
|
|
],
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
"-Wexit-time-destructors",
|
|
],
|
|
}
|