Android.mk revision ec0bab5697bb31ba980810145f62e3799946ec60
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/gzip/ftgzip.c \
30	src/raster/raster.c \
31	src/sfnt/sfnt.c \
32	src/smooth/smooth.c \
33	src/autofit/autofit.c \
34	src/truetype/truetype.c \
35	src/cff/cff.c \
36	src/psnames/psnames.c \
37	src/pshinter/pshinter.c
38
39LOCAL_C_INCLUDES += \
40	$(LOCAL_PATH)/builds \
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