1 # this is now the default FreeType build for Android 2 # 3 ifndef USE_FREETYPE 4 USE_FREETYPE := 2.4.2 5 endif 6 7 ifeq ($(USE_FREETYPE),2.4.2) 8 LOCAL_PATH:= $(call my-dir) 9 include $(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 # 14 LOCAL_ARM_MODE := arm 15 16 LOCAL_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 35 LOCAL_C_INCLUDES += \ 36 $(LOCAL_PATH)/builds \ 37 $(LOCAL_PATH)/include 38 39 LOCAL_CFLAGS += -W -Wall 40 LOCAL_CFLAGS += -fPIC -DPIC 41 LOCAL_CFLAGS += "-DDARWIN_NO_CARBON" 42 LOCAL_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 # 49 ifeq ($(TARGET_SIMULATOR),true) 50 LOCAL_CFLAGS += "-DFT_DEBUG_MEMORY" 51 endif 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 57 LOCAL_CFLAGS += -O2 58 59 LOCAL_MODULE:= libft2 60 61 include $(BUILD_STATIC_LIBRARY) 62 endif 63