• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/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
36LOCAL_C_INCLUDES += \
37	$(LOCAL_PATH)/builds \
38	$(LOCAL_PATH)/include
39
40LOCAL_CFLAGS += -W -Wall
41LOCAL_CFLAGS += -fPIC -DPIC
42LOCAL_CFLAGS += "-DDARWIN_NO_CARBON"
43LOCAL_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
49LOCAL_CFLAGS += -O2
50
51LOCAL_MODULE:= libft2
52
53include $(BUILD_STATIC_LIBRARY)
54endif
55