How can I compile third-party libraries using the Android NDK? I am compiling a shell that implements JNI functions as a shared lib, which depends on another third-party library (HTK). I do not know how to configure the makefile. The following does not work:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
include HTKLib/Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := gaitfuncs
LOCAL_SRC_FILES := gaitfuncs.c
%LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
include $(BUILD_SHARED_LIBRARY)
The second make file should then create a static lib, to which my shared lib links belong. How can I properly include this makefile? Is it correct? And as a bonus: are there wildcards for the LOCAL_SRC_FILES variable so that all files ending in .c, for example.
Thank!
source
share