Android.mk 1012 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
  37. LOCAL_SHARED_LIBRARIES := libz
  38. LOCAL_LDLIBS := -lz
  39. LOCAL_MODULE:= libpngt
  40. include $(BUILD_SHARED_LIBRARY)