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/ftglyph.c \ 20 src/base/ftstroke.c \ 21 src/base/ftxf86.c \ 22 src/base/ftbase.c \ 23 src/base/ftsystem.c \ 24 src/base/ftinit.c \ 25 src/base/ftgasp.c \ 26 src/raster/raster.c \ 27 src/sfnt/sfnt.c \ 28 src/smooth/smooth.c \ 29 src/autofit/autofit.c \ 30 src/truetype/truetype.c \ 31 src/cff/cff.c \ 32 src/psnames/psnames.c \ 33 src/pshinter/pshinter.c 34 35LOCAL_C_INCLUDES += \ 36 $(LOCAL_PATH)/builds \ 37 $(LOCAL_PATH)/include 38 39LOCAL_CFLAGS += -W -Wall 40LOCAL_CFLAGS += -fPIC -DPIC 41LOCAL_CFLAGS += "-DDARWIN_NO_CARBON" 42LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY" 43 44# enable the FreeType internal memory debugger in the simulator 45# you need to define the FT2_DEBUG_MEMORY environment variable 46# when running the program to activate it. It will dump memory 47# statistics when FT_Done_FreeType is called 48# 49ifeq ($(TARGET_SIMULATOR),true) 50LOCAL_CFLAGS += "-DFT_DEBUG_MEMORY" 51endif 52 53# the following is for testing only, and should not be used in final builds 54# of the product 55#LOCAL_CFLAGS += "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER" 56 57LOCAL_CFLAGS += -O2 58 59LOCAL_MODULE:= libft2 60 61include $(BUILD_STATIC_LIBRARY) 62endif 63