system/core
Revision | c99582dc51b7183e16bde17168ef06c893301b59 (tree) |
---|---|
Time | 2019-06-19 08:06:54 |
Author | Steven Moreland <smoreland@goog...> |
Commiter | Android (Google) Code Review |
Merge "libprocessgroup users use libcutils" into qt-dev
@@ -169,9 +169,13 @@ cc_library { | ||
169 | 169 | // releases, exclude qtaguid.cpp from the VNDK-SP variant. |
170 | 170 | "qtaguid.cpp", |
171 | 171 | ], |
172 | - } | |
172 | + }, | |
173 | 173 | }, |
174 | 174 | |
175 | + defaults: [ | |
176 | + "libprocessgroup_impl_provider", | |
177 | + ], | |
178 | + | |
175 | 179 | shared_libs: [ |
176 | 180 | "liblog", |
177 | 181 | "libbase", |
@@ -180,11 +184,9 @@ cc_library { | ||
180 | 184 | "libbase_headers", |
181 | 185 | "libcutils_headers", |
182 | 186 | "libutils_headers", |
183 | - "libprocessgroup_headers", | |
184 | 187 | ], |
185 | 188 | export_header_lib_headers: [ |
186 | 189 | "libcutils_headers", |
187 | - "libprocessgroup_headers", | |
188 | 190 | ], |
189 | 191 | local_include_dirs: ["include"], |
190 | 192 |
@@ -14,13 +14,8 @@ cc_library_headers { | ||
14 | 14 | }, |
15 | 15 | } |
16 | 16 | |
17 | +// TODO: remove all usages | |
17 | 18 | cc_library { |
18 | - srcs: [ | |
19 | - "cgroup_map.cpp", | |
20 | - "processgroup.cpp", | |
21 | - "sched_policy.cpp", | |
22 | - "task_profiles.cpp", | |
23 | - ], | |
24 | 19 | name: "libprocessgroup", |
25 | 20 | host_supported: true, |
26 | 21 | recovery_available: true, |
@@ -29,13 +24,47 @@ cc_library { | ||
29 | 24 | enabled: true, |
30 | 25 | support_system_process: true, |
31 | 26 | }, |
32 | - shared_libs: [ | |
33 | - "libbase", | |
34 | - "libcgrouprc", | |
35 | - ], | |
36 | - static_libs: [ | |
37 | - "libjsoncpp", | |
27 | +} | |
28 | + | |
29 | +cc_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 | + | |
44 | +cc_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 | + | |
56 | +cc_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", | |
38 | 64 | ], |
65 | + host_supported: true, | |
66 | + recovery_available: true, | |
67 | + vendor_available: true, | |
39 | 68 | // for cutils/android_filesystem_config.h |
40 | 69 | header_libs: [ |
41 | 70 | "libcutils_headers", |
@@ -24,8 +24,8 @@ cc_defaults { | ||
24 | 24 | ], |
25 | 25 | shared_libs: [ |
26 | 26 | "libbase", |
27 | + "libcutils", | |
27 | 28 | "libpcrecpp", |
28 | - "libprocessgroup", | |
29 | 29 | ], |
30 | 30 | static_libs: ["liblog"], |
31 | 31 | logtags: ["event.logtags"], |