Android.mk 666 B

12345678910111213141516171819202122232425262728293031
  1. # Save the local path
  2. my_LOCAL_PATH := $(call my-dir)
  3. FREETYPE_LIBRARY_PATH := external/freetype-2.4.12
  4. # Build freetype library
  5. ifneq ($(FREETYPE_LIBRARY_PATH),)
  6. include $(my_LOCAL_PATH)/$(FREETYPE_LIBRARY_PATH)/Android.mk
  7. endif
  8. # Restore local path
  9. LOCAL_PATH := $(my_LOCAL_PATH)
  10. include $(CLEAR_VARS)
  11. LOCAL_MODULE := SDL2_ttf
  12. LOCAL_C_INCLUDES := $(LOCAL_PATH)
  13. LOCAL_SRC_FILES := SDL_ttf.c
  14. ifneq ($(FREETYPE_LIBRARY_PATH),)
  15. LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(FREETYPE_LIBRARY_PATH)/include
  16. LOCAL_STATIC_LIBRARIES += freetype
  17. endif
  18. LOCAL_SHARED_LIBRARIES := SDL2
  19. LOCAL_EXPORT_C_INCLUDES += $(LOCAL_C_INCLUDES)
  20. include $(BUILD_SHARED_LIBRARY)