android 多个.a 生成 .so

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := static_AAA
LOCAL_SRC_FILES := $(LOCAL_PATH)/libavcodec.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := avcodec
LOCAL_SRC_FILES := $(LOCAL_PATH)/libavcodec.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := static_BBB
LOCAL_SRC_FILES := $(LOCAL_PATH)/b.c
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := shared_DDD
LOCAL_SRC_FILES := $(LOCAL_PATH)/d.c
LOCAL_STATIC_LIBRARIES := static_AAA
include $(BUILD_SHARED_LIBRARY)




include $(CLEAR_VARS)
LOCAL_MODULE := ff
LOCAL_SRC_FILES := $(LOCAL_PATH)/c.c
LOCAL_SHARED_LIBRARIES := avcodec shared_DDD
LOCAL_STATIC_LIBRARIES := static_AAA  static_BBB
include $(BUILD_SHARED_LIBRARY)








posted @ 2020-09-05 12:44  YZFHKMS-X  阅读(336)  评论(0编辑  收藏  举报