misc/libfreetype/Android.mk
author koda
Mon, 17 Jun 2013 17:40:01 +0200
changeset 9234 2bf3796c5855
parent 6043 9bd2d6b1ba52
permissions -rw-r--r--
This commit changes many aspect of our cmake build system - shared libraries are compiled by default: * this modifies RPATH of unix executables; * this will prevent a lot of linking issues, esp. from pascal world; * the old behaviour (static libs) is still available with -DBUILD_SHARED_LIBS=off; * of course in this case you have to provide the full list of dependencies with FPFLAGS and CMAKE_C_FLAGS; - pascal is now fully integrated with cmake, meaning you can just do add_sources and use CMAKE_Pascal_FLAGS: * some of the language features are only partially implemented, for example .inc files will not get rebuilt if you modify them; * target_link_libraries for pascal targets is just dummy as linking is determined within pascal files; * universal builds for osx are not available any more; - bundled libraries and system libraries are addressed using the target name: * this avoids depedency tracking; * this allows to name output as we wish.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6043
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
     1
LOCAL_PATH:= $(call my-dir)
6039
d75329716a02 Removed the need for duplicate libraries, the android build now uses lua, freetype and tremor from misc/
Xeli
parents:
diff changeset
     2
include $(CLEAR_VARS)
d75329716a02 Removed the need for duplicate libraries, the android build now uses lua, freetype and tremor from misc/
Xeli
parents:
diff changeset
     3
6043
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
     4
# compile in ARM mode, since the glyph loader/renderer is a hotspot
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
     5
# when loading complex pages in the browser
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
     6
#
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
     7
LOCAL_ARM_MODE := arm
6039
d75329716a02 Removed the need for duplicate libraries, the android build now uses lua, freetype and tremor from misc/
Xeli
parents:
diff changeset
     8
6043
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
     9
LOCAL_SRC_FILES:= \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    10
	src/base/ftbbox.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    11
	src/base/ftbitmap.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    12
	src/base/ftglyph.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    13
	src/base/ftstroke.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    14
	src/base/ftxf86.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    15
	src/base/ftbase.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    16
	src/base/ftsystem.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    17
	src/base/ftinit.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    18
	src/base/ftgasp.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    19
	src/raster/raster.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    20
	src/sfnt/sfnt.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    21
	src/smooth/smooth.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    22
	src/autofit/autofit.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    23
	src/truetype/truetype.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    24
	src/cff/cff.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    25
	src/psnames/psnames.c \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    26
	src/pshinter/pshinter.c
6039
d75329716a02 Removed the need for duplicate libraries, the android build now uses lua, freetype and tremor from misc/
Xeli
parents:
diff changeset
    27
6043
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    28
LOCAL_C_INCLUDES += \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    29
	$(LOCAL_PATH)/builds \
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    30
	$(LOCAL_PATH)/include
6039
d75329716a02 Removed the need for duplicate libraries, the android build now uses lua, freetype and tremor from misc/
Xeli
parents:
diff changeset
    31
6043
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    32
LOCAL_CFLAGS += -W -Wall
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    33
LOCAL_CFLAGS += -fPIC -DPIC
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    34
LOCAL_CFLAGS += "-DDARWIN_NO_CARBON"
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    35
LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY"
6039
d75329716a02 Removed the need for duplicate libraries, the android build now uses lua, freetype and tremor from misc/
Xeli
parents:
diff changeset
    36
6043
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    37
# the following is for testing only, and should not be used in final builds
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    38
# of the product
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    39
#LOCAL_CFLAGS += "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER"
6039
d75329716a02 Removed the need for duplicate libraries, the android build now uses lua, freetype and tremor from misc/
Xeli
parents:
diff changeset
    40
6043
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    41
LOCAL_CFLAGS += -O2
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    42
9bd2d6b1ba52 update from rev d75329716a02, it really works now (i think)
Xeli
parents: 6039
diff changeset
    43
LOCAL_MODULE:= freetype
6039
d75329716a02 Removed the need for duplicate libraries, the android build now uses lua, freetype and tremor from misc/
Xeli
parents:
diff changeset
    44
d75329716a02 Removed the need for duplicate libraries, the android build now uses lua, freetype and tremor from misc/
Xeli
parents:
diff changeset
    45
include $(BUILD_STATIC_LIBRARY)