1# this is now the default FreeType build for Android 2# 3ifndef USE_FREETYPE 4USE_FREETYPE := 2.4.2 5endif 6 7ifeq ($(USE_FREETYPE),2.4.2) 8LOCAL_PATH:= $(call my-dir) 9include $(CLEAR_VARS) 10 11# compile in ARM mode, since the glyph loader/renderer is a hotspot 12# when loading complex pages in the browser 13# 14LOCAL_ARM_MODE := arm 15 16LOCAL_SRC_FILES:= \ 17 src/base/ftbbox.c \ 18 src/base/ftbitmap.c \ 19 src/base/ftfstype.c \ 20 src/base/ftglyph.c \ 21 src/base/ftlcdfil.c \ 22 src/base/ftstroke.c \ 23 src/base/fttype1.c \ 24 src/base/ftxf86.c \ 25 src/base/ftbase.c \ 26 src/base/ftsystem.c \ 27 src/base/ftinit.c \ 28 src/base/ftgasp.c \ 29 src/raster/raster.c \ 30 src/sfnt/sfnt.c \ 31 src/smooth/smooth.c \ 32 src/autofit/autofit.c \ 33 src/truetype/truetype.c \ 34 src/cff/cff.c \ 35 src/psnames/psnames.c \ 36 src/pshinter/pshinter.c 37 38LOCAL_C_INCLUDES += \ 39 $(LOCAL_PATH)/builds \ 40 $(LOCAL_PATH)/include 41 42LOCAL_CFLAGS += -W -Wall 43LOCAL_CFLAGS += -fPIC -DPIC 44LOCAL_CFLAGS += "-DDARWIN_NO_CARBON" 45LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY" 46 47# the following is for testing only, and should not be used in final builds 48# of the product 49#LOCAL_CFLAGS += "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER" 50 51LOCAL_CFLAGS += -O2 52 53LOCAL_MODULE:= libft2 54 55include $(BUILD_STATIC_LIBRARY) 56endif 57