include $(CLEAR_VARS) LOCAL_C_INCLUDES := jni/pixman/pixman LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES) LOCAL_MODULE := pixman LOCAL_CFLAGS := -D_USE_MATH_DEFINES -DHAVE_PTHREADS -DPACKAGE="pixman" LOCAL_SRC_FILES := $(filter-out \ %/pixman-region.c %/pixman-sse2.c %/pixman-ssse3.c %/pixman-vmx.c %/pixman-x86 \ %/pixman-mmx.c %/pixman-mips-dspr2.c %/pixman-arm-simd.c %/pixman-arm-neon.c, $(wildcard jni/pixman/pixman/*.c)) ifeq ($(TARGET_ARCH_ABI), arm64-v8a) LOCAL_CFLAGS += -UUSE_ARM_NEON -UUSE_ARM_SIMD else LOCAL_CFLAGS += -DUSE_ARM_NEON -DUSE_ARM_SIMD -fno-integrated-as LOCAL_SRC_FILES += $(wildcard jni/pixman/pixman/*-arm.c jni/pixman/pixman/*-neon.c jni/pixman/pixman/*-neon-*.S \ jni/pixman/pixman/*-simd.c jni/pixman/pixman/*-simd-*.S) endif LOCAL_STATIC_LIBRARIES := cpufeatures jni/pixman/pixman/pixman-version.h: jni/pixman/pixman/pixman-version.h.in sed 's/@PIXMAN_VERSION_MAJOR@/0/;s/@PIXMAN_VERSION_MINOR@/38/;s/@PIXMAN_VERSION_MICRO@/5/;' $^ > $@ mkxp: jni/pixman/pixman/pixman-version.h include $(BUILD_STATIC_LIBRARY) $(call import-module,android/cpufeatures)