Home | History | Annotate | Download | only in freetype
      1 # this is now the default FreeType build for Android
      2 #
      3 ifndef USE_FREETYPE
      4 USE_FREETYPE := 2.4.2
      5 endif
      6 
      7 ifeq ($(USE_FREETYPE),2.4.2)
      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 \
     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 
     38 LOCAL_C_INCLUDES += \
     39 	$(LOCAL_PATH)/builds \
     40 	$(LOCAL_PATH)/include \
     41 	external/libpng \
     42 	external/zlib
     43 
     44 LOCAL_CFLAGS += -W -Wall
     45 LOCAL_CFLAGS += -fPIC -DPIC
     46 LOCAL_CFLAGS += "-DDARWIN_NO_CARBON"
     47 LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY"
     48 
     49 LOCAL_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 
     55 LOCAL_CFLAGS += -O2
     56 
     57 LOCAL_MODULE:= libft2
     58 
     59 include $(BUILD_SHARED_LIBRARY)
     60 endif
     61