Android.mk 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. LOCAL_PATH:= $(call my-dir)
  2. common_SRC_FILES := \
  3. png.c \
  4. pngerror.c \
  5. pngget.c \
  6. pngmem.c \
  7. pngpread.c \
  8. pngread.c \
  9. pngrio.c \
  10. pngrtran.c \
  11. pngrutil.c \
  12. pngset.c \
  13. pngtrans.c \
  14. pngwio.c \
  15. pngwrite.c \
  16. pngwtran.c \
  17. pngwutil.c \
  18. ifeq ($(ARCH_ARM_HAVE_NEON),true)
  19. my_cflags_arm := -DPNG_ARM_NEON_OPT=2
  20. endif
  21. my_cflags_arm64 := -DPNG_ARM_NEON_OPT=2
  22. my_src_files_arm := \
  23. arm/arm_init.c \
  24. arm/filter_neon.S \
  25. arm/filter_neon_intrinsics.c
  26. common_CFLAGS := -std=gnu89 #-fvisibility=hidden ## -fomit-frame-pointer
  27. include $(CLEAR_VARS)
  28. LOCAL_CLANG := true
  29. LOCAL_SRC_FILES := $(common_SRC_FILES)
  30. LOCAL_CFLAGS += $(common_CFLAGS) -ftrapv
  31. LOCAL_CFLAGS_arm := $(my_cflags_arm)
  32. LOCAL_ASFLAGS += $(common_ASFLAGS)
  33. LOCAL_SRC_FILES_arm := $(my_src_files_arm)
  34. LOCAL_CFLAGS_arm64 := $(my_cflags_arm64)
  35. LOCAL_SRC_FILES_arm64 := $(my_src_files_arm)
  36. LOCAL_SANITIZE := never
  37. LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
  38. LOCAL_SHARED_LIBRARIES := libz
  39. LOCAL_LDLIBS := -lz
  40. LOCAL_MODULE:= libpngt
  41. include $(BUILD_SHARED_LIBRARY)