68 lines
2 KiB
Makefile
Executable file
68 lines
2 KiB
Makefile
Executable file
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
# compile in ARM mode, since the glyph loader/renderer is a hotspot
|
|
# when loading complex pages in the browser
|
|
#
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
ifeq ($(OSMAND_FREETYPE_LOC),)
|
|
OSMAND_FREETYPE_LOC := ./freetype_library
|
|
endif
|
|
ifeq ($(OSMAND_FREETYPE_ABS),)
|
|
OSMAND_FREETYPE_ABS := $(LOCAL_PATH)/freetype_library
|
|
endif
|
|
|
|
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
|
LOCAL_MODULE := ft2_static
|
|
else
|
|
LOCAL_MODULE := ft2_static_neon
|
|
LOCAL_ARM_NEON := true
|
|
endif
|
|
|
|
ifneq ($(OSMAND_USE_PREBUILT),true)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftbbox.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftbitmap.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftfstype.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftglyph.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftlcdfil.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftstroke.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/fttype1.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftxf86.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftbase.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftsystem.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftinit.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/base/ftgasp.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/raster/raster.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/sfnt/sfnt.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/smooth/smooth.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/autofit/autofit.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/truetype/truetype.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/cff/cff.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/psnames/psnames.c \
|
|
$(OSMAND_FREETYPE_LOC)/src/pshinter/pshinter.c
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
$(OSMAND_FREETYPE_ABS)/builds \
|
|
$(OSMAND_FREETYPE_ABS)/include
|
|
|
|
LOCAL_CFLAGS += -W -Wall
|
|
LOCAL_CFLAGS += -fPIC -DPIC
|
|
LOCAL_CFLAGS += "-DDARWIN_NO_CARBON"
|
|
LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY"
|
|
|
|
# the following is for testing only, and should not be used in final builds
|
|
# of the product
|
|
#LOCAL_CFLAGS += "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER"
|
|
|
|
LOCAL_CFLAGS += -O2
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
else
|
|
LOCAL_SRC_FILES := \
|
|
../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
endif
|