Add dependencies on libprocessgroup for sched_policy users

After moving sched_policy functions into libprocessgroup its users require
additional dependency and inclusion of sched_policy_ctrl.h header.

Exempt-From-Owner-Approval: janitorial

Bug: 111307099
Test: builds, boots

Change-Id: Icc052080e1bce46ce06f7264446950cab0490a95
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
This commit is contained in:
Suren Baghdasaryan 2018-12-21 12:30:16 -08:00
parent d17e357fa1
commit 634e884419
9 changed files with 14 additions and 5 deletions

View file

@ -109,6 +109,7 @@ CHARGER_STATIC_LIBRARIES := \
libbase \ libbase \
libutils \ libutils \
libcutils \ libcutils \
libprocessgroup \
liblog \ liblog \
libm \ libm \
libc \ libc \

View file

@ -27,7 +27,10 @@ cc_library {
enabled: true, enabled: true,
support_system_process: true, support_system_process: true,
}, },
shared_libs: ["libbase"], shared_libs: [
"libbase",
"liblog",
],
// for cutils/android_filesystem_config.h // for cutils/android_filesystem_config.h
header_libs: [ header_libs: [
"libcutils_headers", "libcutils_headers",

View file

@ -22,11 +22,13 @@ cc_library_headers {
"liblog_headers", "liblog_headers",
"libsystem_headers", "libsystem_headers",
"libcutils_headers", "libcutils_headers",
"libprocessgroup_headers",
], ],
export_header_lib_headers: [ export_header_lib_headers: [
"liblog_headers", "liblog_headers",
"libsystem_headers", "libsystem_headers",
"libcutils_headers", "libcutils_headers",
"libprocessgroup_headers",
], ],
export_include_dirs: ["include"], export_include_dirs: ["include"],
@ -82,6 +84,7 @@ cc_defaults {
shared_libs: [ shared_libs: [
"libcutils", "libcutils",
"libprocessgroup",
"libdl", "libdl",
"libvndksupport", "libvndksupport",
], ],

View file

@ -36,7 +36,7 @@
#include <utils/Log.h> #include <utils/Log.h>
#include <cutils/sched_policy.h> #include <processgroup/sched_policy.h>
#if defined(__ANDROID__) #if defined(__ANDROID__)
# define __android_unused # define __android_unused

View file

@ -5,6 +5,7 @@ cc_binary {
shared_libs: [ shared_libs: [
"libcutils", "libcutils",
"liblog", "liblog",
"libprocessgroup",
], ],
static_libs: [ static_libs: [
"libstatslogc", "libstatslogc",

View file

@ -24,8 +24,8 @@ cc_defaults {
], ],
shared_libs: [ shared_libs: [
"libbase", "libbase",
"libcutils",
"libpcrecpp", "libpcrecpp",
"libprocessgroup",
], ],
static_libs: ["liblog"], static_libs: ["liblog"],
logtags: ["event.logtags"], logtags: ["event.logtags"],

View file

@ -49,11 +49,11 @@
#include <android-base/properties.h> #include <android-base/properties.h>
#include <android-base/stringprintf.h> #include <android-base/stringprintf.h>
#include <android-base/strings.h> #include <android-base/strings.h>
#include <cutils/sched_policy.h>
#include <cutils/sockets.h> #include <cutils/sockets.h>
#include <log/event_tag_map.h> #include <log/event_tag_map.h>
#include <log/logprint.h> #include <log/logprint.h>
#include <private/android_logger.h> #include <private/android_logger.h>
#include <processgroup/sched_policy.h>
#include <system/thread_defs.h> #include <system/thread_defs.h>
#include <pcrecpp.h> #include <pcrecpp.h>

View file

@ -73,6 +73,7 @@ cc_binary {
"libcutils", "libcutils",
"libbase", "libbase",
"libpackagelistparser", "libpackagelistparser",
"libprocessgroup",
"libcap", "libcap",
], ],

View file

@ -38,12 +38,12 @@
#include <android-base/macros.h> #include <android-base/macros.h>
#include <cutils/android_get_control_file.h> #include <cutils/android_get_control_file.h>
#include <cutils/properties.h> #include <cutils/properties.h>
#include <cutils/sched_policy.h>
#include <cutils/sockets.h> #include <cutils/sockets.h>
#include <log/event_tag_map.h> #include <log/event_tag_map.h>
#include <packagelistparser/packagelistparser.h> #include <packagelistparser/packagelistparser.h>
#include <private/android_filesystem_config.h> #include <private/android_filesystem_config.h>
#include <private/android_logger.h> #include <private/android_logger.h>
#include <processgroup/sched_policy.h>
#include <utils/threads.h> #include <utils/threads.h>
#include "CommandListener.h" #include "CommandListener.h"