android_system_core/libprocessgroup/Android.bp
Steven Moreland 1ec3b78b67 libprocessgroup users use libcutils
libprocessgroup symbols are being moved into libcutils in order to
optimize linking/memory usage. libprocessgroup will no longer be
required in the future (however removing references to it will come
separately).

Bug: 135145426
Test: boot

Test:
BEFORE:
$ adb shell showmap -a $(pid hwservicemanager) | grep -P "libprocessgroup|libcutils" -A1 | grep -P 'libprocessgroup|libcutils|\.bss' | awk '{s += $9}END{print s}'
28

AFTER:
$ adb shell showmap -a $(pid hwservicemanager) | grep -P "libprocessgroup|libcutils" -A1 | grep -P 'libprocessgroup|libcutils|\.bss' | awk '{s += $9}END{print s}'
12

Change-Id: I10d7c2d2b2b14cbbe0a128b9156d31206419d24c
2019-06-18 22:03:54 +00:00

82 lines
1.7 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,
},
},
}
// TODO: remove all usages
cc_library {
name: "libprocessgroup",
host_supported: true,
recovery_available: true,
vendor_available: true,
vndk: {
enabled: true,
support_system_process: true,
},
}
cc_defaults {
name: "libprocessgroup_impl_libs",
target: {
linux: {
shared_libs: [
"libbase",
"libcgrouprc",
],
static_libs: [
"libjsoncpp",
],
},
},
}
cc_defaults {
name: "libprocessgroup_impl_provider",
defaults: ["libprocessgroup_impl_libs"],
target: {
linux: {
whole_static_libs: [
"libprocessgroup_impl",
],
},
},
}
cc_library {
name: "libprocessgroup_impl",
defaults: ["libprocessgroup_impl_libs"],
srcs: [
"cgroup_map.cpp",
"processgroup.cpp",
"sched_policy.cpp",
"task_profiles.cpp",
],
host_supported: true,
recovery_available: true,
vendor_available: true,
// 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",
],
}