[FAQ13934]如何添加Static Library (静态库)到Share Library(共享库)

 如何添加Static Library (静态库)到Share Library(共享库)
 
 如:如何添加libnexsound.a到libaudio.primary.default.so
[SOLUTION]
如: 修改mediatek\platform\mt6592\hardware\audio\android.mk  (各个不同的版本和平台均可参考)
 
 include $(CLEAR_VARS)
LOCAL_MODULE :=libnexsound
LOCAL_SRC_FILES:=libnexsound.a
LOCAL_MODULE_CLASS:=STATIC_LIBRARIES
LOCAL_MODULE_SUFFIX:=.a
include $(BUILD_PREBUILT)
 
LOCAL_STATIC_LIBRARIES := \
    libnexsound

你可能感兴趣的:(MTK)