Search code examples
androidcandroid-ndkfreetype

Android ndk freetype2


I'm trying to add freetype2 support in Android NDK.

I've successfully build the library, but how should I include it in Android.mk file?


Solution

  • In the beginning:

    include $(CLEAR_VARS)
    LOCAL_MODULE    := libFreeType
    LOCAL_SRC_FILES := jni/$(TARGET_ARCH_ABI)/libFreeType.a
    include $(PREBUILT_STATIC_LIBRARY)
    

    Later on:

    LOCAL_STATIC_LIBRARIES += FreeType