blob: 4581c89e83f43c9c3ede77633bd8680212294216 [file] [log] [blame]
The Android Open Source Project049d6fe2009-03-03 19:29:31 -08001# this is now the default FreeType build for Android
2#
3ifndef USE_FREETYPE
Nick Kralevichaacb8e12010-09-14 17:02:58 -07004USE_FREETYPE := 2.4.2
The Android Open Source Project049d6fe2009-03-03 19:29:31 -08005endif
6
Nick Kralevichaacb8e12010-09-14 17:02:58 -07007ifeq ($(USE_FREETYPE),2.4.2)
The Android Open Source Project049d6fe2009-03-03 19:29:31 -08008LOCAL_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/ftstroke.c \
21 src/base/ftxf86.c \
22 src/base/ftbase.c \
23 src/base/ftsystem.c \
24 src/base/ftinit.c \
25 src/base/ftgasp.c \
The Android Open Source Project049d6fe2009-03-03 19:29:31 -080026 src/raster/raster.c \
27 src/sfnt/sfnt.c \
28 src/smooth/smooth.c \
29 src/autofit/autofit.c \
30 src/truetype/truetype.c \
31 src/cff/cff.c \
32 src/psnames/psnames.c \
33 src/pshinter/pshinter.c
34
35LOCAL_C_INCLUDES += \
36 $(LOCAL_PATH)/builds \
37 $(LOCAL_PATH)/include
38
39LOCAL_CFLAGS += -W -Wall
40LOCAL_CFLAGS += -fPIC -DPIC
41LOCAL_CFLAGS += "-DDARWIN_NO_CARBON"
42LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY"
43
The Android Open Source Project049d6fe2009-03-03 19:29:31 -080044# enable the FreeType internal memory debugger in the simulator
45# you need to define the FT2_DEBUG_MEMORY environment variable
46# when running the program to activate it. It will dump memory
47# statistics when FT_Done_FreeType is called
48#
49ifeq ($(TARGET_SIMULATOR),true)
50LOCAL_CFLAGS += "-DFT_DEBUG_MEMORY"
51endif
52
The Android Open Source Project049d6fe2009-03-03 19:29:31 -080053# the following is for testing only, and should not be used in final builds
54# of the product
55#LOCAL_CFLAGS += "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER"
56
Dave Bortd0486992009-04-23 16:01:10 -070057LOCAL_CFLAGS += -O2
The Android Open Source Project049d6fe2009-03-03 19:29:31 -080058
59LOCAL_MODULE:= libft2
60
61include $(BUILD_STATIC_LIBRARY)
62endif