summaryrefslogtreecommitdiff
path: root/src/cd_freetype.mak
blob: 593c4bc2a06fc2faef46bd538a890e384a9ebe13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PROJNAME = cd
LIBNAME = freetype
OPT = YES   

# Changes to freetype-2.3.11: search for CDLIB (2).
SRC  := \
  autofit/autofit.c bdf/bdf.c cff/cff.c \
  base/ftbase.c base/ftcid.c base/ftfstype.c cache/ftcache.c \
  gzip/ftgzip.c lzw/ftlzw.c gxvalid/gxvalid.c otvalid/otvalid.c pcf/pcf.c \
  pfr/pfr.c psaux/psaux.c pshinter/pshinter.c psnames/psnames.c raster/raster.c \
  sfnt/sfnt.c smooth/smooth.c truetype/truetype.c type1/type1.c cid/type1cid.c \
  type42/type42.c winfonts/winfnt.c \
  base/ftapi.c base/ftbbox.c base/ftbdf.c base/ftbitmap.c base/ftdebug.c \
  base/ftgasp.c base/ftglyph.c base/ftgxval.c base/ftinit.c base/ftlcdfil.c \
  base/ftmm.c base/ftotval.c base/ftpatent.c base/ftpfr.c base/ftstroke.c \
  base/ftsynth.c base/ftsystem.c base/fttype1.c base/ftwinfnt.c base/ftxf86.c
SRC := $(addprefix freetype2/, $(SRC))

DEFINES += FT2_BUILD_LIBRARY
INCLUDES = freetype2
DEF_FILE = cd_freetype.def

ifneq ($(findstring dll, $(TEC_UNAME)), )
  SRC += cd_freetype.rc
endif

ifneq ($(findstring Win, $(TEC_SYSNAME)), )
  # To be compatible with the existing DLLs
  LIBNAME = freetype6
endif

ifneq ($(findstring gcc, $(TEC_UNAME)), )
  LIBNAME = freetype
endif

ifneq ($(findstring cygw, $(TEC_UNAME)), )
  LIBNAME = freetype-6
endif

ifneq ($(findstring bc5, $(TEC_UNAME)), )
  FLAGS = -w-8004
endif

ifneq ($(findstring MacOS, $(TEC_UNAME)), )
  ifneq ($(TEC_SYSMINOR), 4)
    BUILD_DYLIB=Yes
  endif
  DEFINES += DARWIN_NO_CARBON
endif