blob: f486d6c9d8bccbe084e8d28597a2696bf3d22aa4 [file] [log] [blame]
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +00001cc_library_headers {
2 name: "libprocessgroup_headers",
3 vendor_available: true,
4 recovery_available: true,
5 host_supported: true,
6 export_include_dirs: ["include"],
7 target: {
8 linux_bionic: {
9 enabled: true,
10 },
11 windows: {
12 enabled: true,
13 },
14 },
15}
16
Steven Moreland1ec3b782019-06-12 17:19:52 -070017// TODO: remove all usages
Steven Moreland419ce362017-04-19 14:12:52 -070018cc_library {
Steven Moreland419ce362017-04-19 14:12:52 -070019 name: "libprocessgroup",
Tom Cherry574a0812018-02-23 13:04:40 -080020 host_supported: true,
Tom Cherry1151d152018-07-24 13:45:09 -070021 recovery_available: true,
Suren Baghdasaryan7bf43812019-01-25 05:29:55 +000022 vendor_available: true,
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000023 vndk: {
24 enabled: true,
25 support_system_process: true,
26 },
Steven Moreland1ec3b782019-06-12 17:19:52 -070027}
28
29cc_defaults {
30 name: "libprocessgroup_impl_libs",
31 target: {
32 linux: {
33 shared_libs: [
34 "libbase",
35 "libcgrouprc",
36 ],
37 static_libs: [
38 "libjsoncpp",
39 ],
40 },
41 },
42}
43
44cc_defaults {
45 name: "libprocessgroup_impl_provider",
46 defaults: ["libprocessgroup_impl_libs"],
47 target: {
48 linux: {
49 whole_static_libs: [
50 "libprocessgroup_impl",
51 ],
52 },
53 },
54}
55
56cc_library {
57 name: "libprocessgroup_impl",
58 defaults: ["libprocessgroup_impl_libs"],
59 srcs: [
60 "cgroup_map.cpp",
61 "processgroup.cpp",
62 "sched_policy.cpp",
63 "task_profiles.cpp",
Vic Yangb562e682019-05-08 12:50:56 -070064 ],
Steven Moreland1ec3b782019-06-12 17:19:52 -070065 host_supported: true,
66 recovery_available: true,
67 vendor_available: true,
Suren Baghdasaryan7bf43812019-01-25 05:29:55 +000068 // for cutils/android_filesystem_config.h
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000069 header_libs: [
70 "libcutils_headers",
71 "libprocessgroup_headers",
72 ],
Steven Moreland419ce362017-04-19 14:12:52 -070073 export_include_dirs: ["include"],
Suren Baghdasaryan1bd127b2019-01-25 05:30:52 +000074 export_header_lib_headers: [
75 "libprocessgroup_headers",
76 ],
Steven Moreland419ce362017-04-19 14:12:52 -070077 cflags: [
78 "-Wall",
79 "-Werror",
Elliott Hughesbe87d442019-03-26 18:50:22 -070080 "-Wexit-time-destructors",
Steven Moreland419ce362017-04-19 14:12:52 -070081 ],
82}