cf8d1c22f7
libprocessgroup will allow Zygote to place processes in a cgroup, and then kill the process and all forked processes later. lmkd will also kill all forked processes. Bug: 15313911 Change-Id: I20404d0dbe448f1c475d2f4c61cccca462f9e544
21 lines
660 B
Makefile
21 lines
660 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := processgroup.cpp
|
|
LOCAL_MODULE := libprocessgroup
|
|
LOCAL_SHARED_LIBRARIES := liblog
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
LOCAL_CFLAGS := -Wall -Werror
|
|
LOCAL_REQUIRED_MODULE := processgroup_cleanup
|
|
include external/libcxx/libcxx.mk
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := cleanup.cpp
|
|
LOCAL_MODULE := processgroup_cleanup
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
LOCAL_CFLAGS := -Wall -Werror
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
LOCAL_STATIC_LIBRARIES := libc libcutils
|
|
include $(BUILD_EXECUTABLE)
|