1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5common_SRC_FILES := \ 6 png.c pngerror.c \ 7 pngget.c pngmem.c pngpread.c pngread.c pngrio.c pngrtran.c pngrutil.c \ 8 pngset.c pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c 9 10ifeq ($(TARGET_ARCH_ABI),armeabi) 11common_SRC_FILES += \ 12 arm/arm_init.c arm/filter_neon.S arm/filter_neon_intrinsics.c arm/palette_neon_intrinsics.c 13endif 14ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) 15common_SRC_FILES += \ 16 arm/arm_init.c arm/filter_neon.S arm/filter_neon_intrinsics.c arm/palette_neon_intrinsics.c 17endif 18ifeq ($(TARGET_ARCH_ABI),arm64-v8a) 19common_SRC_FILES += \ 20 arm/arm_init.c arm/filter_neon.S arm/filter_neon_intrinsics.c arm/palette_neon_intrinsics.c 21endif 22 23common_CFLAGS := ## -fomit-frame-pointer 24 25common_C_INCLUDES += \ 26 27# For the host 28# ===================================================== 29 30LOCAL_SRC_FILES := $(common_SRC_FILES) 31LOCAL_CFLAGS += $(common_CFLAGS) 32LOCAL_C_INCLUDES += $(common_C_INCLUDES) 33 34LOCAL_MODULE:= png 35 36LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO) 37LOCAL_COPY_HEADERS := $(common_COPY_HEADERS) 38 39include $(BUILD_STATIC_LIBRARY) 40#include $(BUILD_SHARED_LIBRARY) 41 42