如何在android的mk文件添加依赖已经编译好的库
用$(MY_LIB)是代表你的库的所在目录,目录结构是这样
MY_LIB
|---include
|-----xxx.h
|-----xxx.h
|---lib
|----MYLIB.a
LOCAL_C_INCLUDES += $(MY_LIB)/include
LOCAL_LDLIBS :=-L$(MY_LIB)/lib -lMYLIB
用$(MY_LIB)是代表你的库的所在目录,目录结构是这样
MY_LIB
|---include
|-----xxx.h
|-----xxx.h
|---lib
|----MYLIB.a
LOCAL_C_INCLUDES += $(MY_LIB)/include
LOCAL_LDLIBS :=-L$(MY_LIB)/lib -lMYLIB