1. ifeq ifneq
ifeq
ifneq ($(COMPILE_FACTORY_VERSION),no) //如果不等于no则进入
xxx
xxx
endif
编译带SO (.a 和 C 文件)
LOCAL_PATH := $(call my-dir)
//1.-------------------------- 编译 refiner----
include $(CLEAR_VARS)
LOCAL_MODULE := refiner
//-------------依赖 xxxx.a 文件 ----------
LOCAL_SRC_FILES := xxxxx.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
//2. -------------------------- 编译 jpeg----
include $(CLEAR_VARS)
LOCAL_MODULE := jpeg
LOCAL_SRC_FILES := aaa/pp.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
//3. -------------------------- 编译 image_refiner----
LOCAL_MODULE := image_refiner
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libmorpho_jpeg_engine_lite/src/core/interface
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libmorpho_jpeg_engine_lite/src/image/interface
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libmorpho_jpeg_engine_lite/src/jpeg_engine/interface
LOCAL_LDLIBS := -llog -ljnigraphics
LOCAL_SRC_FILES := morpho_image_refiner_jni.c
//------引用 static lib------
LOCAL_STATIC_LIBRARIES := refiner
LOCAL_STATIC_LIBRARIES += jpeg
#LOCAL_CFLAGS := -fvisibility=default
include $(BUILD_SHARED_LIBRARY)