| LOCAL_PATH:= $(call my-dir) |
| include $(CLEAR_VARS) |
| |
| LOCAL_SRC_FILES := $(call all-c-files-under, ncurses/tty) |
| LOCAL_SRC_FILES += $(call all-c-files-under, ncurses/base) |
| LOCAL_SRC_FILES := $(filter-out ncurses/base/sigaction.c, $(LOCAL_SRC_FILES)) |
| LOCAL_SRC_FILES += $(call all-c-files-under, ncurses/tinfo) |
| LOCAL_SRC_FILES := $(filter-out ncurses/tinfo/make_keys.c, $(LOCAL_SRC_FILES)) |
| |
| LOCAL_SRC_FILES += ncurses/trace/lib_trace.c \ |
| ncurses/trace/varargs.c \ |
| ncurses/trace/visbuf.c \ |
| ncurses/codes.c \ |
| ncurses/comp_captab.c \ |
| ncurses/expanded.c \ |
| ncurses/fallback.c \ |
| ncurses/lib_gen.c \ |
| ncurses/lib_keyname.c \ |
| ncurses/names.c \ |
| ncurses/unctrl.c \ |
| |
| LOCAL_SRC_FILES := $(sort $(LOCAL_SRC_FILES)) |
| |
| LOCAL_CFLAGS := -DHAVE_CONFIG_H -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=199506L -DNDEBUG |
| |
| LOCAL_C_INCLUDES := $(LOCAL_PATH) \ |
| $(LOCAL_PATH)/include \ |
| $(LOCAL_PATH)/ncurses \ |
| |
| LOCAL_MODULE_TAGS := eng |
| LOCAL_MODULE := libncurses |
| |
| include $(BUILD_STATIC_LIBRARY) |
| |
| TERMINFO_SOURCE := $(LOCAL_PATH)/lib/terminfo/ |
| TERMINFO_TARGET := $(TARGET_OUT_ETC)/terminfo |
| $(TERMINFO_TARGET): |
| @echo "copy terminfo to /etc/" |
| @mkdir -p $@ |
| @cp -r $(TERMINFO_SOURCE)/* $@ |
| ALL_DEFAULT_INSTALLED_MODULES += $(TERMINFO_TARGET) |