blob: c6a073789ba81a6fa7989f52c7114e9fcfb6a12b [file] [log] [blame]
Bob Badourd69ad692021-02-16 19:02:14 -08001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Bart Van Asschea823bee2022-08-08 11:12:55 -07005cc_defaults {
6 name: "libprocessgroup_defaults",
7 cpp_std: "gnu++20",
8 cflags: [
9 "-Wall",
10 "-Werror",
11 "-Wexit-time-destructors",
12 "-Wno-unused-parameter",
13 ],
14}
15
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000016cc_library_headers {
17 name: "libprocessgroup_headers",
18 vendor_available: true,
Justin Yunfeef4d32020-11-11 19:17:40 +090019 product_available: true,
Yifan Hong67c71a12020-10-28 10:49:35 -070020 ramdisk_available: true,
21 vendor_ramdisk_available: true,
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000022 recovery_available: true,
23 host_supported: true,
dimitry49c1f6e2019-05-16 14:19:09 +020024 native_bridge_supported: true,
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000025 export_include_dirs: ["include"],
26 target: {
27 linux_bionic: {
28 enabled: true,
29 },
30 windows: {
31 enabled: true,
32 },
33 },
Jiyong Parke3d371e2020-04-08 22:37:42 +090034 apex_available: [
35 "//apex_available:platform",
36 "//apex_available:anyapex",
37 ],
Jooyung Han4f55f3e2020-04-16 18:48:33 +090038 min_sdk_version: "29",
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000039}
40
Steven Moreland419ce362017-04-19 14:12:52 -070041cc_library {
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000042 srcs: [
Suren Baghdasaryan82b72a52018-12-21 11:41:50 -080043 "cgroup_map.cpp",
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000044 "processgroup.cpp",
45 "sched_policy.cpp",
Suren Baghdasaryan82b72a52018-12-21 11:41:50 -080046 "task_profiles.cpp",
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000047 ],
Steven Moreland419ce362017-04-19 14:12:52 -070048 name: "libprocessgroup",
Tom Cherry574a0812018-02-23 13:04:40 -080049 host_supported: true,
Steven Morelandb495b0d2019-06-17 12:44:39 -070050 native_bridge_supported: true,
Yifan Hong89d1c192020-10-21 18:07:28 -070051 ramdisk_available: true,
52 vendor_ramdisk_available: true,
Tom Cherry1151d152018-07-24 13:45:09 -070053 recovery_available: true,
Suren Baghdasaryan7bf43812019-01-25 05:29:55 +000054 vendor_available: true,
Justin Yunfeef4d32020-11-11 19:17:40 +090055 product_available: true,
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000056 vndk: {
57 enabled: true,
58 support_system_process: true,
59 },
Suren Baghdasaryan94910782019-01-25 05:32:52 +000060 shared_libs: [
61 "libbase",
Yifan Hong53e0deb2019-03-22 17:01:08 -070062 "libcgrouprc",
Vic Yangd167cb22019-05-08 12:50:56 -070063 ],
64 static_libs: [
Suren Baghdasaryan82b72a52018-12-21 11:41:50 -080065 "libjsoncpp",
Suren Baghdasaryan94910782019-01-25 05:32:52 +000066 ],
Suren Baghdasaryan7bf43812019-01-25 05:29:55 +000067 // for cutils/android_filesystem_config.h
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000068 header_libs: [
69 "libcutils_headers",
70 "libprocessgroup_headers",
71 ],
Steven Moreland419ce362017-04-19 14:12:52 -070072 export_include_dirs: ["include"],
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000073 export_header_lib_headers: [
74 "libprocessgroup_headers",
75 ],
Bart Van Asschea823bee2022-08-08 11:12:55 -070076 defaults: ["libprocessgroup_defaults"],
Jiyong Parke3d371e2020-04-08 22:37:42 +090077 apex_available: [
78 "//apex_available:platform",
79 "//apex_available:anyapex",
80 ],
Jooyung Han4f55f3e2020-04-16 18:48:33 +090081 min_sdk_version: "29",
Steven Moreland419ce362017-04-19 14:12:52 -070082}
Bart Van Assche59af6802022-01-24 21:08:57 +000083
84cc_test {
85 name: "task_profiles_test",
86 host_supported: true,
Bart Van Asschea823bee2022-08-08 11:12:55 -070087 defaults: ["libprocessgroup_defaults"],
Bart Van Assche59af6802022-01-24 21:08:57 +000088 srcs: [
89 "task_profiles_test.cpp",
90 ],
91 header_libs: [
92 "libcutils_headers",
93 "libprocessgroup_headers",
94 ],
95 shared_libs: [
96 "libbase",
97 "libcgrouprc",
98 "libprocessgroup",
99 ],
100 static_libs: [
101 "libgmock",
102 ],
103}