LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_AUTOTOOLS_VARS) | |
# $(1): autotools build dir | |
# $(2): output dir for module | |
# $(3): install dir for module | |
# $(4): export_includes file | |
# $(5): export_pkgconfig file | |
define libiconv_cb | |
cd $(2) && \ | |
ln -sf libiconv.so libiconv.so.2 | |
cd $(3) && \ | |
ln -sf libiconv.so libiconv.so.2 | |
endef | |
LOCAL_MODULE := libiconv | |
LOCAL_CONFIGURE_HOST := arm-linux | |
LOCAL_CFLAGS := -D_ANDROID_ | |
LOCAL_AUTOTOOLS_POST_INSTALL_CALLBACK := libiconv_cb | |
include $(BUILD_AUTOTOOLS_SHARED_LIBRARY) |