2021-02-17 04:02:14 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2022-08-08 20:12:55 +02:00
|
|
|
cc_defaults {
|
|
|
|
name: "libprocessgroup_defaults",
|
|
|
|
cpp_std: "gnu++20",
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
"-Wexit-time-destructors",
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-01-25 06:30:52 +01:00
|
|
|
cc_library_headers {
|
|
|
|
name: "libprocessgroup_headers",
|
|
|
|
vendor_available: true,
|
2020-11-11 11:17:40 +01:00
|
|
|
product_available: true,
|
2020-10-28 18:49:35 +01:00
|
|
|
ramdisk_available: true,
|
|
|
|
vendor_ramdisk_available: true,
|
2019-01-25 06:30:52 +01:00
|
|
|
recovery_available: true,
|
|
|
|
host_supported: true,
|
2019-05-16 14:19:09 +02:00
|
|
|
native_bridge_supported: true,
|
2019-01-25 06:30:52 +01:00
|
|
|
export_include_dirs: ["include"],
|
|
|
|
target: {
|
|
|
|
linux_bionic: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
windows: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
2020-04-08 15:37:42 +02:00
|
|
|
apex_available: [
|
|
|
|
"//apex_available:platform",
|
|
|
|
"//apex_available:anyapex",
|
|
|
|
],
|
2020-04-16 11:48:33 +02:00
|
|
|
min_sdk_version: "29",
|
2019-01-25 06:30:52 +01:00
|
|
|
}
|
|
|
|
|
2017-04-19 23:12:52 +02:00
|
|
|
cc_library {
|
2019-01-25 06:30:52 +01:00
|
|
|
srcs: [
|
2018-12-21 20:41:50 +01:00
|
|
|
"cgroup_map.cpp",
|
2019-01-25 06:30:52 +01:00
|
|
|
"processgroup.cpp",
|
|
|
|
"sched_policy.cpp",
|
2018-12-21 20:41:50 +01:00
|
|
|
"task_profiles.cpp",
|
2019-01-25 06:30:52 +01:00
|
|
|
],
|
2017-04-19 23:12:52 +02:00
|
|
|
name: "libprocessgroup",
|
2018-02-23 22:04:40 +01:00
|
|
|
host_supported: true,
|
2019-06-17 21:44:39 +02:00
|
|
|
native_bridge_supported: true,
|
2020-10-22 03:07:28 +02:00
|
|
|
ramdisk_available: true,
|
|
|
|
vendor_ramdisk_available: true,
|
2018-07-24 22:45:09 +02:00
|
|
|
recovery_available: true,
|
2019-01-25 06:29:55 +01:00
|
|
|
vendor_available: true,
|
2020-11-11 11:17:40 +01:00
|
|
|
product_available: true,
|
2019-01-25 06:30:52 +01:00
|
|
|
vndk: {
|
|
|
|
enabled: true,
|
|
|
|
support_system_process: true,
|
|
|
|
},
|
2019-01-25 06:32:52 +01:00
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
2019-03-23 01:01:08 +01:00
|
|
|
"libcgrouprc",
|
2019-05-08 21:50:56 +02:00
|
|
|
],
|
|
|
|
static_libs: [
|
2018-12-21 20:41:50 +01:00
|
|
|
"libjsoncpp",
|
2019-01-25 06:32:52 +01:00
|
|
|
],
|
2019-01-25 06:29:55 +01:00
|
|
|
// for cutils/android_filesystem_config.h
|
2019-01-25 06:30:52 +01:00
|
|
|
header_libs: [
|
|
|
|
"libcutils_headers",
|
|
|
|
"libprocessgroup_headers",
|
|
|
|
],
|
2017-04-19 23:12:52 +02:00
|
|
|
export_include_dirs: ["include"],
|
2019-01-25 06:30:52 +01:00
|
|
|
export_header_lib_headers: [
|
|
|
|
"libprocessgroup_headers",
|
|
|
|
],
|
2022-08-08 20:12:55 +02:00
|
|
|
defaults: ["libprocessgroup_defaults"],
|
2020-04-08 15:37:42 +02:00
|
|
|
apex_available: [
|
|
|
|
"//apex_available:platform",
|
|
|
|
"//apex_available:anyapex",
|
|
|
|
],
|
2020-04-16 11:48:33 +02:00
|
|
|
min_sdk_version: "29",
|
2017-04-19 23:12:52 +02:00
|
|
|
}
|
2022-01-24 22:08:57 +01:00
|
|
|
|
|
|
|
cc_test {
|
|
|
|
name: "task_profiles_test",
|
|
|
|
host_supported: true,
|
2022-08-08 20:12:55 +02:00
|
|
|
defaults: ["libprocessgroup_defaults"],
|
2022-01-24 22:08:57 +01:00
|
|
|
srcs: [
|
|
|
|
"task_profiles_test.cpp",
|
|
|
|
],
|
|
|
|
header_libs: [
|
|
|
|
"libcutils_headers",
|
|
|
|
"libprocessgroup_headers",
|
|
|
|
],
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libcgrouprc",
|
|
|
|
"libprocessgroup",
|
|
|
|
],
|
|
|
|
static_libs: [
|
|
|
|
"libgmock",
|
|
|
|
],
|
|
|
|
}
|