The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 1 | # this is now the default FreeType build for Android |
| 2 | # |
| 3 | ifndef USE_FREETYPE |
Nick Kralevich | aacb8e1 | 2010-09-14 17:02:58 -0700 | [diff] [blame] | 4 | USE_FREETYPE := 2.4.2 |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 5 | endif |
| 6 | |
Nick Kralevich | aacb8e1 | 2010-09-14 17:02:58 -0700 | [diff] [blame] | 7 | ifeq ($(USE_FREETYPE),2.4.2) |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 8 | LOCAL_PATH:= $(call my-dir) |
| 9 | include $(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 | # |
| 14 | LOCAL_ARM_MODE := arm |
| 15 | |
| 16 | LOCAL_SRC_FILES:= \ |
| 17 | src/base/ftbbox.c \ |
| 18 | src/base/ftbitmap.c \ |
Derek Sollenberger | 044c6dc | 2011-11-08 15:59:01 -0500 | [diff] [blame] | 19 | src/base/ftfstype.c \ |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 20 | src/base/ftglyph.c \ |
Jean-Baptiste Queru | c95a1d1 | 2011-05-11 13:24:53 -0700 | [diff] [blame] | 21 | src/base/ftlcdfil.c \ |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 22 | src/base/ftstroke.c \ |
Derek Sollenberger | 044c6dc | 2011-11-08 15:59:01 -0500 | [diff] [blame] | 23 | src/base/fttype1.c \ |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 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 \ |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 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 | |
| 38 | LOCAL_C_INCLUDES += \ |
| 39 | $(LOCAL_PATH)/builds \ |
Xianzhu Wang | a2b9955 | 2013-12-16 15:51:29 -0800 | [diff] [blame] | 40 | $(LOCAL_PATH)/include \ |
| 41 | external/libpng \ |
| 42 | external/zlib |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 43 | |
| 44 | LOCAL_CFLAGS += -W -Wall |
| 45 | LOCAL_CFLAGS += -fPIC -DPIC |
| 46 | LOCAL_CFLAGS += "-DDARWIN_NO_CARBON" |
| 47 | LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY" |
| 48 | |
Xianzhu Wang | a2b9955 | 2013-12-16 15:51:29 -0800 | [diff] [blame] | 49 | LOCAL_SHARED_LIBRARIES += libpng libz |
| 50 | |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 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 | |
Dave Bort | d048699 | 2009-04-23 16:01:10 -0700 | [diff] [blame] | 55 | LOCAL_CFLAGS += -O2 |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 56 | |
| 57 | LOCAL_MODULE:= libft2 |
| 58 | |
Xianzhu Wang | a2b9955 | 2013-12-16 15:51:29 -0800 | [diff] [blame] | 59 | include $(BUILD_SHARED_LIBRARY) |
The Android Open Source Project | 049d6fe | 2009-03-03 19:29:31 -0800 | [diff] [blame] | 60 | endif |