Android.mk 829 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3. LOCAL_MODULE := liblept
  4. # leptonica (minus freetype)
  5. BLACKLIST_SRC_FILES := \
  6. %endiantest.c \
  7. %freetype.c \
  8. %xtractprotos.c
  9. LEPTONICA_SRC_FILES := \
  10. $(subst $(LOCAL_PATH)/,,$(wildcard $(LEPTONICA_PATH)/src/*.c))
  11. LOCAL_SRC_FILES := \
  12. $(filter-out $(BLACKLIST_SRC_FILES),$(LEPTONICA_SRC_FILES))
  13. LOCAL_CFLAGS := \
  14. -DHAVE_CONFIG_H
  15. LOCAL_LDLIBS := \
  16. -lz
  17. # jni
  18. LOCAL_SRC_FILES += \
  19. box.cpp \
  20. boxa.cpp \
  21. pix.cpp \
  22. pixa.cpp \
  23. utilities.cpp \
  24. readfile.cpp \
  25. writefile.cpp \
  26. jni.cpp
  27. LOCAL_C_INCLUDES += \
  28. $(LOCAL_PATH) \
  29. $(LEPTONICA_PATH)/src \
  30. $(LIBJPEG_PATH) \
  31. $(LIBPNG_PATH)
  32. LOCAL_LDLIBS += \
  33. -ljnigraphics \
  34. -llog
  35. # common
  36. LOCAL_SHARED_LIBRARIES:= libjpgt libpngt
  37. LOCAL_PRELINK_MODULE:= false
  38. include $(BUILD_SHARED_LIBRARY)