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/ftlcdfil.c \ 21 src/base/ftstroke.c \ 22 src/base/ftxf86.c \ 23 src/base/ftbase.c \ 24 src/base/ftsystem.c \ 25 src/base/ftinit.c \ 26 src/base/ftgasp.c \ 27 src/raster/raster.c \ 28 src/sfnt/sfnt.c \ 29 src/smooth/smooth.c \ 30 src/autofit/autofit.c \ 31 src/truetype/truetype.c \ 32 src/cff/cff.c \ 33 src/psnames/psnames.c \ 34 src/pshinter/pshinter.c 35 36 LOCAL_C_INCLUDES += \ 37 $(LOCAL_PATH)/builds \ 38 $(LOCAL_PATH)/include 39 40 LOCAL_CFLAGS += -W -Wall 41 LOCAL_CFLAGS += -fPIC -DPIC 42 LOCAL_CFLAGS += "-DDARWIN_NO_CARBON" 43 LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY" 44 45 # the following is for testing only, and should not be used in final builds 46 # of the product 47 #LOCAL_CFLAGS += "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER" 48 49 LOCAL_CFLAGS += -O2 50 51 LOCAL_MODULE:= libft2 52 53 include $(BUILD_STATIC_LIBRARY) 54 endif 55