keywords: [Android NDK]Link Library Which is Existed

Keywords: Android NDK,

Import headers of static libraries:

LOCAL_C_INCLUDES += ../include/

Import static libraries:

LOCAL_LDLIBS += ../lib/libMyBoostLib.a

Android.mk:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE    := helloJNI
LOCAL_SRC_FILES := mainActivity.cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/inc/
LOCAL_LDLIBS    := -llog -L$(LOCAL_PATH)/inc/ -lMyLibrary
include $(BUILD_SHARED_LIBRARY)
Reference

Include prebuilt static library
https://stackoverflow.com/questions/18983037/include-prebuilt-static-library

Using Prebuilt Libraries
https://developer.android.com/ndk/guides/prebuilts


故兵无常势,水无常形。能因敌变化而取胜者,谓之神。故五行无常胜,四时无常位,日有短长,月有死生。---《孙子兵法·虚实篇》