1# this is now the default FreeType build for Android 2# 3ifndef USE_FREETYPE 4USE_FREETYPE := 2.6.2 5endif 6 7ifeq ($(USE_FREETYPE),2.6.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/ftfntfmt.c \ 20 src/base/ftfstype.c \ 21 src/base/ftglyph.c \ 22 src/base/ftlcdfil.c \ 23 src/base/ftstroke.c \ 24 src/base/fttype1.c \ 25 src/base/ftbase.c \ 26 src/base/ftsystem.c \ 27 src/base/ftinit.c \ 28 src/base/ftgasp.c \ 29 src/base/ftmm.c \ 30 src/gzip/ftgzip.c \ 31 src/raster/raster.c \ 32 src/sfnt/sfnt.c \ 33 src/smooth/smooth.c \ 34 src/autofit/autofit.c \ 35 src/truetype/truetype.c \ 36 src/cff/cff.c \ 37 src/psnames/psnames.c \ 38 src/pshinter/pshinter.c 39 40LOCAL_C_INCLUDES += \ 41 $(LOCAL_PATH)/include \ 42 external/libpng \ 43 external/zlib 44 45LOCAL_CFLAGS += -W -Wall 46LOCAL_CFLAGS += -fPIC -DPIC 47LOCAL_CFLAGS += "-DDARWIN_NO_CARBON" 48LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY" 49 50LOCAL_SHARED_LIBRARIES += libpng libz 51 52# the following is for testing only, and should not be used in final builds 53# of the product 54#LOCAL_CFLAGS += "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER" 55 56LOCAL_CFLAGS += -O2 57 58LOCAL_MODULE:= libft2 59 60include $(BUILD_SHARED_LIBRARY) 61endif 62