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	external/libpng \
42	external/zlib
43
44LOCAL_CFLAGS += -W -Wall
45LOCAL_CFLAGS += -fPIC -DPIC
46LOCAL_CFLAGS += "-DDARWIN_NO_CARBON"
47LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY"
48
49LOCAL_SHARED_LIBRARIES += libpng libz
50
51# the following is for testing only, and should not be used in final builds
52# of the product
53#LOCAL_CFLAGS += "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER"
54
55LOCAL_CFLAGS += -O2
56
57LOCAL_MODULE:= libft2
58
59include $(BUILD_SHARED_LIBRARY)
60endif
61