7980426a6f
This allows raw popen calls in e.g. system/netd/ to be replaced with android_fork_execvp_ext(). Change-Id: I159ece7369fa38ff8782024bef0d7cfafe74ecee
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
# ========================================================
|
|
# Static library
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := liblogwrap
|
|
LOCAL_SRC_FILES := logwrap.c
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
LOCAL_CFLAGS := -Werror -std=gnu99
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
# ========================================================
|
|
# Shared library
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := liblogwrap
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := liblogwrap
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
LOCAL_CFLAGS := -Werror -std=gnu99
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
# ========================================================
|
|
# Executable
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES:= logwrapper.c
|
|
LOCAL_MODULE := logwrapper
|
|
LOCAL_STATIC_LIBRARIES := liblog liblogwrap libcutils
|
|
LOCAL_CFLAGS := -Werror -std=gnu99
|
|
include $(BUILD_EXECUTABLE)
|