FreeType 1.31.1

This commit is contained in:
2023-08-27 18:03:45 +02:00
commit 5edbb7a80a
454 changed files with 173977 additions and 0 deletions

161
lib/arch/win32/Makefile.BC Normal file
View File

@@ -0,0 +1,161 @@
# This file is part of the FreeType project.
#
# It builds the library for Borland C++ for Win32.
#
# You will need Borland MAKE.
# Tested with Borland C++ v.5.0 and Borland C++ builder 4.0.
# Does not work with Borland C++ 4.0, since it needs __declspec.
#
# Use this file while in the lib directory with the following statement:
#
# make -farch/win32/Makefile.BC
#
#
# A DLL version of the library can be built with
#
# make -DDLL -farch/win32/Makefile.BC dll
#
# A debug version can be obtained with
#
# make -DDEBUG -farch/win32/Makefile.BC
ARCH = arch\win32
FT_MAKEFILE = $(ARCH)\Makefile.BC
FT_DLL = ft13_32.dll
CC = bcc32
LIB = tlib /c /e
IMPLIB = implib -c
SPURIOUS_WARNINGS = -w-nak -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig
!if ! $d(DEBUG)
CFLAGS = -O2 -A -i40 -I$(ARCH);.;extend $(SPURIOUS_WARNINGS)
DLLFLAGS = -WD
!else
CFLAGS = -v -A -i40 -I$(ARCH);.;extend $(SPURIOUS_WARNINGS)
DLLFLAGS = -v -WD
!endif
FT_DEF = $(FT_DLL:.dll=.def)
!if $d(DLL)
CFLAGS = $(CFLAGS) \
-DEXPORT_DEF=__declspec(dllexport) -DEXPORT_FUNC=__declspec(dllexport)
!endif
TTFILE = .\ttfile.c
TTMEMORY = .\ttmemory.c
TTMUTEX = .\ttmutex.c
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
# Do not insert spaces before the \ at end of line,
# otherwise the substitution for TLIB command line will fail.
SRC_X = extend\ftxgasp.c extend\ftxkern.c extend\ftxpost.c\
extend\ftxcmap.c extend\ftxwidth.c extend\ftxerr18.c\
extend\ftxsbit.c extend\ftxgsub.c extend\ftxgpos.c\
extend\ftxopen.c extend\ftxgdef.c
OBJS_X = $(SRC_X:.c=.obj)
SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c\
ttgload.c ttinterp.c ttload.c ttobjs.c\
ttraster.c ttextend.c ttdebug.c $(PORT)
OBJS_M = $(SRC_M:.c=.obj) $(OBJS_X)
SRC_S = $(ARCH)\freetype.c
OBJ_S = $(SRC_S:.c=.obj)
OBJS_S = $(OBJ_S) $(OBJS_X)
# Since Borland make does not handle $($(LIB_FILES)), and using
# -DLIB_FILES="$(OBJS_S)" will excess the capacity of COMMAND.COM, we cheat
# by constructing TLIB's response file directly in the `all' target.
#
# Another solution, useful during debugging of part of the library,
# would be to include each .obj in the library as soon as it is compiled.
# See ../msdos/Makefile.TC for an application.
.c.obj:
$(CC) -c -o$* @&&|
$(CFLAGS) $<
|
!if ! $d(DEBUG)
# Skipped if DEBUG build
all: $(OBJS_S)
-del libttf.lib
$(LIB) libttf.lib @&&|
+ $(OBJS_S: = + )
|
dll $(FT_DLL): $(OBJS_S) $(FT_DEF)
!if $d(DLL)
$(CC) @&&|
$(DLLFLAGS) -e$(FT_DLL) $(OBJS_S)
|
$(IMPLIB) libttf $(FT_DLL)
!else
$(MAKE) -DDLL -f$(FT_MAKEFILE) dll # Re-invoke with flag set.
!endif
!endif
debug: $(OBJS_M)
-del libttf.lib
$(LIB) libttf.lib @&&|
+ $(OBJS_M: = + )
|
!ifdef DEBUG
dll $(FT_DLL): $(OBJS_M) $(FT_DEF)
!if $d(DLL)
$(CC) @&&|
$(DLLFLAGS) -e$(FT_DLL) $(OBJS_M)
|
$(IMPLIB) libttf $(FT_DLL)
!else
$(MAKE) -DDEBUG -DDLL -f$(FT_MAKEFILE) dll
!endif
!endif
install: $(FT_DLL)
!ifdef INSTALL_DIR
copy $(FT_DLL) $(INSTALL_DIR)
!else
copy $(FT_DLL) C:\WINDOWS
!endif
$(OBJ_S): $(SRC_S) $(SRC_M)
# Not used here because it excesses the capacity of COMMAND.COM...
libttf.lib: $(LIB_FILES)
-del libttf.lib
echo -+$(**: =-+)> response
$(LIB) libttf.lib @&&|
+ $(**: = + )
|
$(FT_DEF): $(ARCH)\ttf.def
-copy $(ARCH)\ttf.def $(FT_DEF)
clean:
-del *.obj
-del extend\*.obj
-del $(ARCH)\*.obj
-del libttf.bak
-del response
-del *.def
-del *.tds
distclean: clean
-del libttf.lib
-del *.dll
-del $(FT_DEF)
-del C:\WINDOWS\$(FT_DLL)
!if $d(INSTALL_DIR)
-del $(INSTALL_DIR)\$(FT_DLL)
!endif
!include "$(ARCH)\depend.win"
# end of Makefile

165
lib/arch/win32/Makefile.CL Normal file
View File

@@ -0,0 +1,165 @@
# This file is part of the FreeType project.
#
# It builds the library for Microsoft Visual C++ for 32-bit Windows.
#
# You will need NMAKE.
#
# Use this file while in the lib directory with the following statement:
#
# nmake /f arch\win32\Makefile.CL
#
#
# A DLL version of the library can be built with
#
# nmake DLL=1 /f arch\win32\Makefile.CL dll
#
# Debug versions can be obtained with
#
# nmake DEBUG=1 /f arch\win32\Makefile.CL
ARCH = arch\win32
FT_MAKEFILE = $(ARCH)\Makefile.CL
FT_DLL = ft13_32.dll
CC = cl /nologo
LIB = lib /nologo
LINK = link /nologo
CFLAGS = /Za /W2 -I$(ARCH) -I. -Iextend
!ifndef DEBUG
CFLAGS = $(CFLAGS) /Ox
DLLFLAGS = /RELEASE
!else
CFLAGS = $(CFLAGS) /Zi /Ge
DLLFLAGS = /DEBUG
!endif
!ifdef DLL
CFLAGS = $(CFLAGS) /GD \
/DEXPORT_DEF=__declspec(dllexport) /DEXPORT_FUNC=__declspec(dllexport)
!else
CFLAGS = $(CFLAGS) /GA
!endif
TTFILE = .\ttfile.c
TTMEMORY = .\ttmemory.c
TTMUTEX = .\ttmutex.c
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
# Do not insert spaces between the file names or at end of line, otherwise
# the substitution for LIB command line will fail. Thank you.
#
SRC_X = extend\ftxgasp.c extend\ftxkern.c extend\ftxpost.c\
extend\ftxcmap.c extend\ftxwidth.c extend\ftxerr18.c extend\ftxsbit.c\
extend\ftxopen.c extend\ftxgsub.c extend\ftxgpos.c extend\ftxgdef.c
OBJS_X = $(SRC_X:.c=.obj)
SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c\
ttgload.c ttinterp.c ttload.c ttobjs.c ttraster.c ttextend.c $(PORT)
OBJS_M = $(SRC_M:.c=.obj) $(OBJS_X)
SRC_S = $(ARCH)\freetype.c
OBJ_S = $(SRC_S:.c=.obj)
OBJS_S = $(OBJ_S) $(OBJS_X)
# Since Microsoft's NMAKE does not handle $($(LIB_FILES)), and using
# LIB_FILES="$(OBJS_S)" will excess the capacity of COMMAND.COM, we cheat
# by constructing LIB's response file directly in the `all' target.
#
# Another solution, useful during debugging of part of the library,
# would be to include each .obj in the library as soon as it is compiled.
# See ..\msdos\Makefile.TC for an application.
.c.obj:
@$(CC) /c /Fo$@ @<<
$(CFLAGS) $*.c
<<
!ifndef DEBUG
# Skipped if DEBUG build
all: $(OBJS_S)
-del libttf.lib
$(LIB) /OUT:libttf.lib @<<response
+ $(OBJS_S: = + );
<<KEEP
dll $(FT_DLL): $(OBJS_S)
!ifdef DLL
$(LINK) @<<response
$(DLLFLAGS)
/DLL
/OUT:$(FT_DLL)
/IMPLIB:libttf.lib
/DEF:$(ARCH)\ttf.def
$**
<<KEEP
!else
$(MAKE) DLL=1 /f $(FT_MAKEFILE) dll # Re-invoke with flag set.
!endif
!endif
debug: $(OBJS_M)
-del libttf.lib
$(LIB) /OUT:libttf.lib @<<response
+ $(OBJS_M: = + );
<<KEEP
!ifdef DEBUG
dll $(FT_DLL): $(OBJS_M)
!ifdef DLL
$(LINK) @<<response
$(DLLFLAGS)
/DLL
/OUT:$(FT_DLL)
/IMPLIB:libttf.lib
/DEF:$(ARCH)\ttf.def
$**
<<KEEP
!else
$(MAKE) DLL=1 DEBUG=1 /f $(FT_MAKEFILE) dll # Re-invoke with flag set.
!endif
!endif
install: $(FT_DLL)
!ifdef INSTALL_DIR
copy $(FT_DLL) $(INSTALL_DIR)
!else
copy $(FT_DLL) C:\WINDOWS
!endif
$(OBJ_S): $(SRC_S) $(SRC_M)
# Not used here because it excesses the capacity of COMMAND.COM...
libttf.lib: $(LIB_FILES)
$(LIB) $@ +-$(?: =-+);
clean:
-del *.obj
-del extend\*.obj
-del $(ARCH)\*.obj
-del libttf.bak
-del response
-del *.exp
-del *.pch
-del *.ilk
distclean: clean
-del libttf.lib
-del *.dll
-del *.pdb
-del C:\WINDOWS\$(FT_DLL)
!ifdef INSTALL_DIR
-del $(INSTALL_DIR)\$(FT_DLL)
!endif
!include "$(ARCH)\depend.win"
# end of Makefile.CL

View File

@@ -0,0 +1,98 @@
# This file is part of the FreeType project.
#
# It builds the library for MinGW32 gcc under Win9x.
#
# You will need a port of GNU make; the MinGW32 port works.
#
# Use this file while in the lib directory with the following statement:
#
# make -f arch/win32/Makefile.Min
#
#
# When compared to the other Makefiles for gcc, there is a difference
# here, because COMMAND.COM on Win 9x is not able to process more than
# 126 characters. So the command line for ar use the * shell character.
#
# This is not as safe as normal, because unnecessary files may be
# included by mistake in the library.
# The normal behaviour can be restored by defining NON_LIMITED_SHELL=1
ARCH = arch/win32
FT_MAKEFILE = $(ARCH)/Makefile.Min
CC = gcc
ifdef DEBUG
CFLAGS = -Wall -O2 -g -ansi -pedantic -I$(ARCH) -I. -Iextend
else
CFLAGS = -Wall -ansi -pedantic -O2 -s -I$(ARCH) -I. -Iextend
endif
TTFILE = ./ttfile.c
TTMEMORY = ./ttmemory.c
TTMUTEX = ./ttmutex.c
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
SRC_X = extend/ftxgasp.c extend/ftxkern.c extend/ftxpost.c \
extend/ftxcmap.c extend/ftxwidth.c extend/ftxsbit.c \
extend/ftxgsub.c extend/ftxgpos.c extend/ftxgdef.c \
extend/ftxopen.c extend/ftxerr18.c
OBJS_X = $(SRC_X:.c=.o)
SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c \
ttgload.c ttinterp.c ttload.c ttobjs.c \
ttraster.c ttextend.c $(PORT)
OBJS_M = $(SRC_M:.c=.o) $(OBJS_X)
SRC_S = $(ARCH)/freetype.c
OBJ_S = $(SRC_S:.c=.o)
OBJS_S = $(OBJ_S) $(OBJS_X)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
.PHONY: all debug clean distclean depend
all:
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=$(OBJS_S) OBJ_LOC=$(ARCH) libttf.a
debug:
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=$(OBJS_M) DEBUG=1 OBJ_LOC=. libttf.a
$(OBJ_S): $(SRC_S) $(SRC_M)
ifdef NOT_LIMITED_SHELL
libttf.a: $(LIB_FILES)
-del $@
ar src $@ $^
else
# The previous command exceeds the capacity of COMMAND.COM,
# so we cheat by passing * character to ar
libttf.a: $(LIB_FILES)
-del $@
ar src $@ $(OBJ_LOC)/*.o extend/*.o
endif
clean:
-del *.o
-del extend\*.o
-del $(subst /,\,$(ARCH)\*.o)
-del response
distclean: clean
-del dep.end
-del libttf.a
depend: $(SRS_S) $(SRC_M) $(SRC_X)
$(CC) -E -M $^ > dep.end
ifeq (dep.end,$(wildcard dep.end))
include dep.end
endif
# end of Makefile.Min

195
lib/arch/win32/Makefile.VC Normal file
View File

@@ -0,0 +1,195 @@
# Visual C++ 2.x, 4.x, 5.0 and 6.0 makefile for freetype
# adapted from suns example makefile (related to the TCL script language)
# Does not depend on the presence of any environment variables in
# order to compile freetype; all needed information is derived from
# location of the compiler directories.
#
# Project directories
#
# ROOT = top of source tree
#
# TMPDIR = location where .obj files should be stored during build
#
# TOOLS32 = location of VC++ 32-bit development tools. Note that the
# VC++ 2.0 header files are broken, so you need to use the
# ones that come with the developer network CD's, or later
# versions of VC++.
#
ROOT = ..\..
TMPDIR = .
#TOOLS32 = c:\msdev # VC++ 2.x,4.x
#TOOLS32 = c:\Program Files\devstudio\vc # VC++ 5.x
TOOLS32 = c:\Program Files\Microsoft Visual Studio\Vc98 # VC++ 6.x
INSTALLDIR = c:\WINNT\SYSTEM32
# Set this to the appropriate value of /MACHINE: for your platform
MACHINE = IX86
# Comment the following line to compile with symbols
NODEBUG=1
######################################################################
# Do not modify below this line
######################################################################
TTF = ttf
TTFLIB = $(TTF).lib
TTFDLL = $(TTF).dll
TTFOBJS = \
$(TMPDIR)\ttapi.obj \
$(TMPDIR)\ttcache.obj \
$(TMPDIR)\ttcalc.obj \
$(TMPDIR)\ttcmap.obj \
$(TMPDIR)\ttdebug.obj \
$(TMPDIR)\ttfile.obj \
$(TMPDIR)\ttgload.obj \
$(TMPDIR)\ttinterp.obj \
$(TMPDIR)\ttload.obj \
$(TMPDIR)\ttmemory.obj \
$(TMPDIR)\ttmutex.obj \
$(TMPDIR)\ttobjs.obj \
$(TMPDIR)\ttraster.obj \
$(TMPDIR)\ttextend.obj \
$(TMPDIR)\ftxcmap.obj \
$(TMPDIR)\ftxgasp.obj \
$(TMPDIR)\ftxkern.obj \
$(TMPDIR)\ftxpost.obj \
$(TMPDIR)\ftxwidth.obj \
$(TMPDIR)\ftxerr18.obj
PATH=$(TOOLS32)\bin;$(PATH)
cc32 = "$(TOOLS32)\bin\cl.exe"
link32 = "$(TOOLS32)\bin\link.exe"
include32 = "-I$(TOOLS32)\include" -I$(ROOT)\arch\win32
CP = copy
RM = del
TTF_INCLUDES = -I$(ROOT)
TTF_DEFINES = -nologo -D__WIN32__ -D__WIN32DLL__
TTF_CFLAGS = $(cdebug) $(cflags) $(cvarsdll) $(include32) \
$(TTF_INCLUDES) $(TTF_DEFINES)
CON_CFLAGS = $(cdebug) $(cflags) $(cvars) $(include32) -DCONSOLE
DOS_CFLAGS = $(cdebug) $(cflags) $(include16) -AL
######################################################################
# Link flags
######################################################################
!IFDEF NODEBUG
ldebug = /RELEASE
!ELSE
ldebug = -debug:full -debugtype:cv
!ENDIF
# declarations common to all linker options
lcommon = /NODEFAULTLIB /RELEASE /NOLOGO
# declarations for use on Intel i386, i486, and Pentium systems
!IF "$(MACHINE)" == "IX86"
DLLENTRY = @12
lflags = $(lcommon) /MACHINE:$(MACHINE)
!ELSE
lflags = $(lcommon) /MACHINE:$(MACHINE)
!ENDIF
conlflags = $(lflags) -subsystem:console -entry:mainCRTStartup
guilflags = $(lflags) -subsystem:windows -entry:WinMainCRTStartup
dlllflags = $(lflags) -entry:_DllMainCRTStartup$(DLLENTRY) -dll
!IF "$(MACHINE)" == "PPC"
libc = libc.lib
libcdll = crtdll.lib
!ELSE
libc = libc.lib oldnames.lib
libcdll = msvcrt.lib oldnames.lib
!ENDIF
baselibs = kernel32.lib $(optlibs) advapi32.lib
winlibs = $(baselibs) user32.lib gdi32.lib comdlg32.lib winspool.lib
guilibs = $(libc) $(winlibs)
conlibs = $(libc) $(baselibs)
guilibsdll = $(libcdll) $(winlibs)
conlibsdll = $(libcdll) $(baselibs)
######################################################################
# Compile flags
######################################################################
!IFDEF NODEBUG
cdebug = -O2 -Gs -GD
!ELSE
cdebug = -Z7 -Od -WX
!ENDIF
# declarations common to all compiler options
ccommon = -c -W3 -nologo -YX -Dtry=__try -Dexcept=__except
# NEED BYTEORDER INFORMATION HERE !!
!IF "$(MACHINE)" == "IX86"
cflags = $(ccommon) -D_X86_=1
!ELSE
!IF "$(MACHINE)" == "MIPS"
cflags = $(ccommon) -D_MIPS_=1
!ELSE
!IF "$(MACHINE)" == "PPC"
cflags = $(ccommon) -D_PPC_=1
!ELSE
!IF "$(MACHINE)" == "ALPHA"
cflags = $(ccommon) -D_ALPHA_=1
!ENDIF
!ENDIF
!ENDIF
!ENDIF
cvars = -DWIN32 -D_WIN32
cvarsmt = $(cvars) -D_MT
cvarsdll = $(cvarsmt) -D_DLL
######################################################################
# Project specific targets
######################################################################
release: $(TTFDLL)
all: $(TTFDLL)
install: $(TTFDLL)
-@md $(INSTALLDIR)
-@$(CP) $(TTFDLL) $(INSTALLDIR)
$(TTFDLL): $(TTFOBJS) ttf.def
$(link32) $(ldebug) $(dlllflags) \
$(guilibsdll) -out:$(TTFDLL) -def:ttf.def $(TTFOBJS)
#ttf.def: $(TTFOBJS)
# ..\..\tcl8.0.4\win\release\dumpexts -o $@ ttf.dll $(TTFOBJS)
#
# Implicit rules
#
{$(ROOT)\extend}.c{$(TMPDIR)}.obj:
$(cc32) $(TTF_CFLAGS) -Fo$(TMPDIR)\ $<
{$(ROOT)}.c{$(TMPDIR)}.obj:
$(cc32) $(TTF_CFLAGS) -Fo$(TMPDIR)\ $<
clean:
-@del *.exp
-@del *.lib
-@del *.dll
-@del $(TMPDIR)\*.obj
-@del *.pch
-@del *.pdb

View File

@@ -0,0 +1,96 @@
# This file is part of the FreeType project.
#
# It builds the library for gcc under Win32.
# This Makefile will fail with MinGW32 ports of gcc and make under
# bare-bones Windows 9X, because of the limitations of command.com.
# Use Makefile.min instead.
#
# You will need GNU make.
#
# Use this file while in the lib directory with the following statement:
#
# make -f arch/win32/Makefile.gcc
#
#
# If you have the GNU gettext package installed, you can also try
#
# make -f arch/win32/Makefile.gcc HAVE_GETTEXT
ARCH = arch/win32
FT_MAKEFILE = $(ARCH)/Makefile.gcc
CC = gcc
ifndef GETTEXT
GETTEXT=NO_GETTEXT
endif
ifdef DEBUG
CFLAGS = -Wall -O2 -g -ansi -pedantic -I$(ARCH) -I. -Iextend -D$(GETTEXT)
else
CFLAGS = -Wall -ansi -pedantic -O2 -s -I$(ARCH) -I. -Iextend -D$(GETTEXT)
endif
TTFILE = ./ttfile.c
TTMEMORY = ./ttmemory.c
TTMUTEX = ./ttmutex.c
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
SRC_X = extend/ftxgasp.c extend/ftxkern.c extend/ftxpost.c \
extend/ftxcmap.c extend/ftxwidth.c extend/ftxsbit.c \
extend/ftxgsub.c extend/ftxgpos.c extend/ftxgdef.c \
extend/ftxopen.c extend/ftxerr18.c
OBJS_X = $(SRC_X:.c=.o)
SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c \
ttgload.c ttinterp.c ttload.c ttobjs.c \
ttraster.c ttextend.c $(PORT)
OBJS_M = $(SRC_M:.c=.o) $(OBJS_X)
SRC_S = $(ARCH)/freetype.c
OBJ_S = $(SRC_S:.c=.o)
OBJS_S = $(OBJ_S) $(OBJS_X)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
.PHONY: all debug clean distclean depend
all:
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_S libttf.a
debug:
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_M DEBUG=1 libttf.a
HAVE_GETTEXT:
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_S GETTEXT=HAVE_GETTEXT \
libttf.a
$(OBJ_S): $(SRC_S) $(SRC_M)
libttf.a: $($(LIB_FILES))
-del $@
ar src $@ $^
clean:
-del *.o
-del extend\*.o
-del $(subst /,\,$(ARCH)/*.o)
-del response
distclean: clean
-del dep.end
-del libttf.a
depend: $(SRS_S) $(SRC_M) $(SRC_X)
$(CC) -E -M $^ > dep.end
ifeq (dep.end,$(wildcard dep.end))
include dep.end
endif
# end of Makefile.gcc

103
lib/arch/win32/depend.win Normal file
View File

@@ -0,0 +1,103 @@
# This dependency file to be used with various Win32 compilers
# has been generated automatically with the script `makedep' on
# 03-Sep-1999.
ttapi.obj: ttapi.c ttconfig.h arch\win32\ft_conf.h freetype.h fterrid.h \
ftnameid.h ttengine.h tttypes.h ttmutex.h ttcalc.h ttmemory.h \
ttcache.h ttfile.h ttdebug.h ttobjs.h tttables.h ttcmap.h ttload.h \
ttgload.h ttraster.h ttextend.h
ttcache.obj: ttcache.c ttengine.h tttypes.h ttconfig.h \
arch\win32\ft_conf.h freetype.h fterrid.h ftnameid.h ttmutex.h \
ttmemory.h ttcache.h ttobjs.h tttables.h ttcmap.h ttdebug.h
ttcalc.obj: ttcalc.c ttcalc.h ttconfig.h arch\win32\ft_conf.h freetype.h \
fterrid.h ftnameid.h ttdebug.h tttypes.h tttables.h
ttcmap.obj: ttcmap.c ttobjs.h ttconfig.h arch\win32\ft_conf.h ttengine.h \
tttypes.h freetype.h fterrid.h ftnameid.h ttmutex.h ttcache.h \
tttables.h ttcmap.h ttdebug.h ttfile.h ttmemory.h ttload.h
ttdebug.obj: ttdebug.c ttdebug.h ttconfig.h arch\win32\ft_conf.h \
tttypes.h freetype.h fterrid.h ftnameid.h tttables.h ttobjs.h \
ttengine.h ttmutex.h ttcache.h ttcmap.h
ttextend.obj: ttextend.c ttextend.h ttconfig.h arch\win32\ft_conf.h \
tttypes.h freetype.h fterrid.h ftnameid.h ttobjs.h ttengine.h \
ttmutex.h ttcache.h tttables.h ttcmap.h ttmemory.h
ttfile.obj: ttfile.c ttconfig.h arch\win32\ft_conf.h freetype.h \
fterrid.h ftnameid.h tttypes.h ttdebug.h ttengine.h ttmutex.h \
ttmemory.h ttfile.h
ttgload.obj: ttgload.c tttypes.h ttconfig.h arch\win32\ft_conf.h \
freetype.h fterrid.h ftnameid.h ttdebug.h ttcalc.h ttfile.h \
ttengine.h ttmutex.h tttables.h ttobjs.h ttcache.h ttcmap.h ttgload.h \
ttmemory.h tttags.h ttload.h
ttinterp.obj: ttinterp.c freetype.h fterrid.h ftnameid.h tttypes.h \
ttconfig.h arch\win32\ft_conf.h ttdebug.h ttcalc.h ttmemory.h \
ttinterp.h ttobjs.h ttengine.h ttmutex.h ttcache.h tttables.h \
ttcmap.h
ttload.obj: ttload.c tttypes.h ttconfig.h arch\win32\ft_conf.h \
freetype.h fterrid.h ftnameid.h ttdebug.h ttcalc.h ttfile.h \
ttengine.h ttmutex.h tttables.h ttobjs.h ttcache.h ttcmap.h \
ttmemory.h tttags.h ttload.h
ttmemory.obj: ttmemory.c ttdebug.h ttconfig.h arch\win32\ft_conf.h \
tttypes.h freetype.h fterrid.h ftnameid.h ttmemory.h ttengine.h \
ttmutex.h
ttmutex.obj: ttmutex.c ttmutex.h ttconfig.h arch\win32\ft_conf.h
ttobjs.obj: ttobjs.c ttobjs.h ttconfig.h arch\win32\ft_conf.h ttengine.h \
tttypes.h freetype.h fterrid.h ftnameid.h ttmutex.h ttcache.h \
tttables.h ttcmap.h ttfile.h ttdebug.h ttcalc.h ttmemory.h ttload.h \
ttinterp.h ttextend.h
ttraster.obj: ttraster.c ttraster.h ttconfig.h arch\win32\ft_conf.h \
freetype.h fterrid.h ftnameid.h ttengine.h tttypes.h ttmutex.h \
ttdebug.h ttcalc.h ttmemory.h
extend\ftxcmap.obj: extend\ftxcmap.c extend\ftxcmap.h freetype.h fterrid.h \
ftnameid.h tttypes.h ttconfig.h arch\win32\ft_conf.h ttobjs.h \
ttengine.h ttmutex.h ttcache.h tttables.h ttcmap.h
extend\ftxerr18.obj: extend\ftxerr18.c ttconfig.h arch\win32\ft_conf.h \
extend\ftxerr18.h freetype.h fterrid.h ftnameid.h extend\ftxkern.h \
extend\ftxpost.h extend\ftxopen.h extend\ftxgdef.h extend\ftxgsub.h \
extend\ftxgpos.h
extend\ftxgasp.obj: extend\ftxgasp.c extend\ftxgasp.h freetype.h fterrid.h \
ftnameid.h tttypes.h ttconfig.h arch\win32\ft_conf.h ttobjs.h \
ttengine.h ttmutex.h ttcache.h tttables.h ttcmap.h
extend\ftxgdef.obj: extend\ftxgdef.c tttypes.h ttconfig.h arch\win32\ft_conf.h \
freetype.h fterrid.h ftnameid.h tttags.h ttload.h ttobjs.h ttengine.h \
ttmutex.h ttcache.h tttables.h ttcmap.h ttextend.h ttmemory.h \
ttfile.h ttdebug.h extend\ftxopen.h extend\ftxgdef.h extend\ftxgsub.h \
extend\ftxgpos.h extend\ftxopenf.h
extend\ftxgpos.obj: extend\ftxgpos.c tttypes.h ttconfig.h arch\win32\ft_conf.h \
freetype.h fterrid.h ftnameid.h tttags.h ttload.h ttobjs.h ttengine.h \
ttmutex.h ttcache.h tttables.h ttcmap.h ttextend.h ttmemory.h \
ttfile.h ttdebug.h extend\ftxopen.h extend\ftxgdef.h extend\ftxgsub.h \
extend\ftxgpos.h extend\ftxopenf.h
extend\ftxgsub.obj: extend\ftxgsub.c tttypes.h ttconfig.h arch\win32\ft_conf.h \
freetype.h fterrid.h ftnameid.h tttags.h ttload.h ttobjs.h ttengine.h \
ttmutex.h ttcache.h tttables.h ttcmap.h ttextend.h ttmemory.h \
ttfile.h ttdebug.h extend\ftxopen.h extend\ftxgdef.h extend\ftxgsub.h \
extend\ftxgpos.h extend\ftxopenf.h
extend\ftxkern.obj: extend\ftxkern.c extend\ftxkern.h freetype.h fterrid.h \
ftnameid.h ttextend.h ttconfig.h arch\win32\ft_conf.h tttypes.h \
ttobjs.h ttengine.h ttmutex.h ttcache.h tttables.h ttcmap.h ttdebug.h \
ttmemory.h ttfile.h ttload.h tttags.h
extend\ftxopen.obj: extend\ftxopen.c tttypes.h ttconfig.h arch\win32\ft_conf.h \
freetype.h fterrid.h ftnameid.h ttload.h ttobjs.h ttengine.h \
ttmutex.h ttcache.h tttables.h ttcmap.h ttextend.h ttmemory.h \
ttfile.h ttdebug.h extend\ftxopen.h extend\ftxgdef.h extend\ftxgsub.h \
extend\ftxgpos.h extend\ftxopenf.h
extend\ftxpost.obj: extend\ftxpost.c extend\ftxpost.h freetype.h fterrid.h \
ftnameid.h tttypes.h ttconfig.h arch\win32\ft_conf.h ttobjs.h \
ttengine.h ttmutex.h ttcache.h tttables.h ttcmap.h ttload.h ttfile.h \
ttdebug.h tttags.h ttmemory.h ttextend.h
extend\ftxsbit.obj: extend\ftxsbit.c extend\ftxsbit.h freetype.h fterrid.h \
ftnameid.h ttobjs.h ttconfig.h arch\win32\ft_conf.h ttengine.h \
tttypes.h ttmutex.h ttcache.h tttables.h ttcmap.h ttfile.h ttdebug.h \
ttload.h ttmemory.h tttags.h ttextend.h
extend\ftxwidth.obj: extend\ftxwidth.c extend\ftxwidth.h freetype.h fterrid.h \
ftnameid.h ttdebug.h ttconfig.h arch\win32\ft_conf.h tttypes.h \
ttobjs.h ttengine.h ttmutex.h ttcache.h tttables.h ttcmap.h ttfile.h \
tttags.h ttload.h
!ifndef __MAKE__
arch\win32\freetype.obj: arch\win32\freetype.c ttapi.c ttconfig.h \
arch\win32\ft_conf.h freetype.h fterrid.h ftnameid.h ttengine.h \
tttypes.h ttmutex.h ttcalc.h ttmemory.h ttcache.h ttfile.h ttdebug.h \
ttobjs.h tttables.h ttcmap.h ttload.h ttgload.h ttraster.h ttextend.h \
ttcache.c ttcalc.c ttcmap.c ttdebug.c ttgload.c tttags.h ttinterp.c \
ttinterp.h ttload.c ttobjs.c ttraster.c ttfile.c ttmemory.c ttmutex.c \
ttextend.c
!endif

42
lib/arch/win32/freetype.c Normal file
View File

@@ -0,0 +1,42 @@
/* This file is part of the FreeType project */
/* single object library component for Win32 */
#define TT_MAKE_OPTION_SINGLE_OBJECT
/* Note, you should define the EXPORT_DEF and EXPORT_FUNC macros */
/* here if you want to build a Win32 DLL. If undefined, the */
/* macros default to "extern"/"" (nothing), which is suitable */
/* for static libraries. See `ttconfig.h' for details. */
/* The macro EXPORT_DEF is placed before each high-level API */
/* function declaration, and EXPORT_FUNC before each definition */
/* (body). You can then use it to take any compiler-specific */
/* pragma for DLL-exported symbols */
/* first include common core components */
#include "ttapi.c"
#include "ttcache.c"
#include "ttcalc.c"
#include "ttcmap.c"
#include "ttdebug.c"
#include "ttgload.c"
#include "ttinterp.c"
#include "ttload.c"
#include "ttobjs.c"
#include "ttraster.c"
/* then system-specific (or ANSI) components */
#include "ttfile.c"
#include "ttmemory.c"
#include "ttmutex.c"
/* finally, add some extensions */
#ifdef TT_CONFIG_OPTION_EXTEND_ENGINE
#include "ttextend.c"
#endif
/* END */

104
lib/arch/win32/freetype.dsp Normal file
View File

@@ -0,0 +1,104 @@
# Microsoft Developer Studio Project File - Name="freetype" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=freetype - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "freetype.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "freetype.mak" CFG="freetype - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "freetype - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "freetype - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
!IF "$(CFG)" == "freetype - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O1 /I "." /I "..\.." /I "..\..\extend" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /FD /c
# SUBTRACT CPP /YX
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "freetype - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /Zi /O1 /I "." /I "..\.." /I "..\..\extend" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FD /c
# SUBTRACT CPP /YX
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ENDIF
# Begin Target
# Name "freetype - Win32 Release"
# Name "freetype - Win32 Debug"
# Begin Source File
SOURCE=.\freetype.c
# End Source File
# Begin Source File
SOURCE=..\..\Extend\Ftxcmap.c
# End Source File
# Begin Source File
SOURCE=..\..\Extend\ftxerr18.c
# End Source File
# Begin Source File
SOURCE=..\..\Extend\Ftxgasp.c
# End Source File
# Begin Source File
SOURCE=..\..\Extend\Ftxkern.c
# End Source File
# Begin Source File
SOURCE=..\..\Extend\ftxpost.c
# End Source File
# End Target
# End Project

View File

@@ -0,0 +1,29 @@
Microsoft Developer Studio Workspace File, Format Version 5.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "freetype"=.\freetype.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################

BIN
lib/arch/win32/freetype.ide Normal file

Binary file not shown.

353
lib/arch/win32/freetype.mak Normal file
View File

@@ -0,0 +1,353 @@
# Microsoft Developer Studio Generated NMAKE File, Format Version 4.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
!IF "$(CFG)" == ""
CFG=freetype - Win32 Debug
!MESSAGE No configuration specified. Defaulting to freetype - Win32 Debug.
!ENDIF
!IF "$(CFG)" != "freetype - Win32 Release" && "$(CFG)" !=\
"freetype - Win32 Debug"
!MESSAGE Invalid configuration "$(CFG)" specified.
!MESSAGE You can specify a configuration when running NMAKE on this makefile
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "freetype.mak" CFG="freetype - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "freetype - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "freetype - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
!ERROR An invalid configuration is specified.
!ENDIF
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
################################################################################
# Begin Project
# PROP Target_Last_Scanned "freetype - Win32 Debug"
CPP=cl.exe
!IF "$(CFG)" == "freetype - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
OUTDIR=.\Release
INTDIR=.\Release
ALL : "$(OUTDIR)\freetype.lib"
CLEAN :
-@erase ".\Release\freetype.lib"
-@erase ".\Release\Ftxkern.obj"
-@erase ".\Release\ftxpost.obj"
-@erase ".\Release\ftxerr18.obj"
-@erase ".\Release\Ftxcmap.obj"
-@erase ".\Release\Freetype.obj"
-@erase ".\Release\Ftxgasp.obj"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /W3 /GX /O2 /I "." /I "..\.." /I "..\..\extend" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
CPP_PROJ=/nologo /ML /W3 /GX /O2 /I "." /I "..\.." /I "..\..\extend" /D "WIN32"\
/D "NDEBUG" /D "_WINDOWS" /Fp"$(INTDIR)/freetype.pch" /YX /Fo"$(INTDIR)/" /c
CPP_OBJS=.\Release/
CPP_SBRS=
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
BSC32_FLAGS=/nologo /o"$(OUTDIR)/freetype.bsc"
BSC32_SBRS=
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
LIB32_FLAGS=/nologo /out:"$(OUTDIR)/freetype.lib"
LIB32_OBJS= \
"$(INTDIR)/Ftxkern.obj" \
"$(INTDIR)/ftxpost.obj" \
"$(INTDIR)/ftxerr18.obj" \
"$(INTDIR)/Ftxcmap.obj" \
"$(INTDIR)/Freetype.obj" \
"$(INTDIR)/Ftxgasp.obj"
"$(OUTDIR)\freetype.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS)
$(LIB32) @<<
$(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS)
<<
!ELSEIF "$(CFG)" == "freetype - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
OUTDIR=.\Debug
INTDIR=.\Debug
ALL : "$(OUTDIR)\freetype.lib"
CLEAN :
-@erase ".\Debug\freetype.lib"
-@erase ".\Debug\Freetype.obj"
-@erase ".\Debug\Ftxkern.obj"
-@erase ".\Debug\ftxpost.obj"
-@erase ".\Debug\Ftxcmap.obj"
-@erase ".\Debug\Ftxgasp.obj"
-@erase ".\Debug\ftxerr18.obj"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /W3 /GX /Z7 /Od /I "." /I "..\.." /I "..\..\extend" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
CPP_PROJ=/nologo /MLd /W3 /GX /Z7 /Od /I "." /I "..\.." /I "..\..\extend" /D\
"WIN32" /D "_DEBUG" /D "_WINDOWS" /Fp"$(INTDIR)/freetype.pch" /YX\
/Fo"$(INTDIR)/" /c
CPP_OBJS=.\Debug/
CPP_SBRS=
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
BSC32_FLAGS=/nologo /o"$(OUTDIR)/freetype.bsc"
BSC32_SBRS=
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
LIB32_FLAGS=/nologo /out:"$(OUTDIR)/freetype.lib"
LIB32_OBJS= \
"$(INTDIR)/Freetype.obj" \
"$(INTDIR)/Ftxkern.obj" \
"$(INTDIR)/ftxpost.obj" \
"$(INTDIR)/Ftxcmap.obj" \
"$(INTDIR)/Ftxgasp.obj" \
"$(INTDIR)/ftxerr18.obj"
"$(OUTDIR)\freetype.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS)
$(LIB32) @<<
$(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS)
<<
!ENDIF
.c{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $<
.cpp{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $<
.cxx{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $<
.c{$(CPP_SBRS)}.sbr:
$(CPP) $(CPP_PROJ) $<
.cpp{$(CPP_SBRS)}.sbr:
$(CPP) $(CPP_PROJ) $<
.cxx{$(CPP_SBRS)}.sbr:
$(CPP) $(CPP_PROJ) $<
################################################################################
# Begin Target
# Name "freetype - Win32 Release"
# Name "freetype - Win32 Debug"
!IF "$(CFG)" == "freetype - Win32 Release"
!ELSEIF "$(CFG)" == "freetype - Win32 Debug"
!ENDIF
################################################################################
# Begin Source File
SOURCE=\Freetype\Lib\Extend\ftxpost.c
DEP_CPP_FTXPO=\
".\..\..\Extend\ftxpost.h"\
".\..\..\tttypes.h"\
".\..\..\ttobjs.h"\
".\..\..\tttables.h"\
".\..\..\ttload.h"\
".\..\..\ttfile.h"\
".\..\..\tttags.h"\
".\..\..\ttmemory.h"\
".\..\..\ttextend.h"\
".\..\..\freetype.h"\
"..\..\ttconfig.h"\
".\ft_conf.h"\
"..\..\ttengine.h"\
"..\..\ttmutex.h"\
"..\..\ttcache.h"\
"..\..\ttcmap.h"\
".\..\..\ttdebug.h"\
"$(INTDIR)\ftxpost.obj" : $(SOURCE) $(DEP_CPP_FTXPO) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
# End Source File
################################################################################
# Begin Source File
SOURCE=\Freetype\Lib\Extend\ftxerr18.c
DEP_CPP_FTXER=\
".\..\..\Extend\ftxerr18.h"\
".\..\..\Extend\ftxkern.h"\
".\..\..\Extend\ftxpost.h"\
".\..\..\freetype.h"\
"..\..\ttconfig.h"\
".\ft_conf.h"\
"$(INTDIR)\ftxerr18.obj" : $(SOURCE) $(DEP_CPP_FTXER) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
# End Source File
################################################################################
# Begin Source File
SOURCE=\Freetype\Lib\Extend\Ftxgasp.c
DEP_CPP_FTXGA=\
".\..\..\Extend\ftxgasp.h"\
".\..\..\tttypes.h"\
".\..\..\ttobjs.h"\
".\..\..\tttables.h"\
".\..\..\freetype.h"\
"..\..\ttconfig.h"\
".\ft_conf.h"\
"..\..\ttengine.h"\
"..\..\ttmutex.h"\
"..\..\ttcache.h"\
"..\..\ttcmap.h"\
"$(INTDIR)\Ftxgasp.obj" : $(SOURCE) $(DEP_CPP_FTXGA) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
# End Source File
################################################################################
# Begin Source File
SOURCE=\Freetype\Lib\Extend\Ftxkern.c
DEP_CPP_FTXKE=\
".\..\..\Extend\ftxkern.h"\
".\..\..\ttextend.h"\
".\..\..\tttypes.h"\
".\..\..\ttdebug.h"\
".\..\..\ttmemory.h"\
".\..\..\ttfile.h"\
".\..\..\ttobjs.h"\
".\..\..\ttload.h"\
".\..\..\tttags.h"\
".\..\..\freetype.h"\
"..\..\ttconfig.h"\
".\ft_conf.h"\
"..\..\ttengine.h"\
"..\..\ttmutex.h"\
"..\..\ttcache.h"\
".\..\..\tttables.h"\
"..\..\ttcmap.h"\
"$(INTDIR)\Ftxkern.obj" : $(SOURCE) $(DEP_CPP_FTXKE) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
# End Source File
################################################################################
# Begin Source File
SOURCE=\Freetype\Lib\Extend\Ftxcmap.c
DEP_CPP_FTXCM=\
".\..\..\Extend\ftxcmap.h"\
".\..\..\tttypes.h"\
".\..\..\ttobjs.h"\
".\..\..\tttables.h"\
".\..\..\freetype.h"\
"..\..\ttconfig.h"\
".\ft_conf.h"\
"..\..\ttengine.h"\
"..\..\ttmutex.h"\
"..\..\ttcache.h"\
"..\..\ttcmap.h"\
"$(INTDIR)\Ftxcmap.obj" : $(SOURCE) $(DEP_CPP_FTXCM) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
# End Source File
################################################################################
# Begin Source File
SOURCE=.\Freetype.c
DEP_CPP_FREET=\
".\..\..\ttapi.c"\
".\..\..\ttcache.c"\
".\..\..\ttcalc.c"\
".\..\..\ttcmap.c"\
".\..\..\ttgload.c"\
".\..\..\ttinterp.c"\
".\..\..\ttload.c"\
".\..\..\ttobjs.c"\
".\..\..\ttraster.c"\
".\..\..\ttfile.c"\
".\..\..\ttmemory.c"\
".\..\..\ttmutex.c"\
".\..\..\ttextend.c"\
".\..\..\freetype.h"\
"..\..\ttengine.h"\
"..\..\ttcalc.h"\
".\..\..\ttmemory.h"\
"..\..\ttcache.h"\
".\..\..\ttfile.h"\
".\..\..\ttobjs.h"\
".\..\..\ttload.h"\
"..\..\ttgload.h"\
"..\..\ttraster.h"\
".\..\..\ttextend.h"\
"..\..\ttconfig.h"\
".\ft_conf.h"\
"..\..\ttmutex.h"\
".\..\..\tttypes.h"\
".\..\..\ttdebug.h"\
".\..\..\tttables.h"\
"..\..\ttcmap.h"\
".\..\..\tttags.h"\
"..\..\ttinterp.h"\
{$(INCLUDE)}"\unistd.h"\
"$(INTDIR)\Freetype.obj" : $(SOURCE) $(DEP_CPP_FREET) "$(INTDIR)"
# End Source File
# End Target
# End Project
################################################################################

BIN
lib/arch/win32/freetype.mdp Normal file

Binary file not shown.

210
lib/arch/win32/ft_conf.h Normal file
View File

@@ -0,0 +1,210 @@
/* This file is part of the FreeType project */
/* ft_conf.h for Win32 */
/* we need the following because there are some typedefs in this file */
#ifndef FT_CONF_H
#define FT_CONF_H
#ifndef WIN32
#define WIN32
#endif
/* Define to empty if the 'const' keyword does not work. */
/* #undef const */
/* Define if you have a working `mmap' system call. */
#undef HAVE_MMAP
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H
/* Define if you have the getpagesize function. */
#undef HAVE_GETPAGESIZE
/* Define if you have the memcpy function. */
#define HAVE_MEMCPY
/* Define if you have the memmove function. */
#define HAVE_MEMMOVE
/* Define if you have the valloc function. */
#undef HAVE_VALLOC
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* The number of bytes in a int. */
#define SIZEOF_INT 4
/* The number of bytes in a long. */
#define SIZEOF_LONG 4
/**********************************************************************/
/* */
/* The following configuration macros can be tweaked manually by */
/* a developer to turn on or off certain features or options in the */
/* TrueType engine. This may be useful to tune it for specific */
/* purposes.. */
/* */
/**********************************************************************/
/*************************************************************************/
/* Define this if the underlying operating system uses a different */
/* character width than 8bit for file names. You must then also supply */
/* a typedef declaration for defining 'TT_Text'. Default is off. */
/* #define HAVE_TT_TEXT */
/*************************************************************************/
/* Define this if you want to generate code to support engine extensions */
/* Default is on, but if you're satisfied by the basic services provided */
/* by the engine and need no extensions, undefine this configuration */
/* macro to save a few more bytes. */
#define TT_CONFIG_OPTION_EXTEND_ENGINE
/*************************************************************************/
/* Define this if you want to generate code to support gray-scaling, */
/* a.k.a. font-smoothing or anti-aliasing. Default is on, but you can */
/* disable it if you don't need it. */
#define TT_CONFIG_OPTION_GRAY_SCALING
/*************************************************************************/
/* Define this if you want to completely disable the use of the bytecode */
/* interpreter. Doing so will produce a much smaller library, but the */
/* quality of the rendered glyphs will enormously suffer from this. */
/* */
/* This switch was introduced due to the Apple patents issue which */
/* emerged recently on the FreeType lists. We still do not have Apple's */
/* opinion on the subject and will change this as soon as we have. */
#undef TT_CONFIG_OPTION_NO_INTERPRETER
/*************************************************************************/
/* Define this if you want to use a big 'switch' statement within the */
/* bytecode interpreter. Because some non-optimizing compilers are not */
/* able to produce jump tables from such statements, undefining this */
/* configuration macro will generate the appropriate C jump table in */
/* ttinterp.c. If you use an optimizing compiler, you should leave it */
/* defined for better performance and code compactness.. */
#define TT_CONFIG_OPTION_INTERPRETER_SWITCH
/*************************************************************************/
/* Define this if you want to build a 'static' version of the TrueType */
/* bytecode interpreter. This will produce much bigger code, which */
/* _may_ be faster on some architectures.. */
/* */
/* Do NOT DEFINE THIS is you build a thread-safe version of the engine */
/* */
#undef TT_CONFIG_OPTION_STATIC_INTERPRETER
/*************************************************************************/
/* Define this if you want to build a 'static' version of the scan-line */
/* converter (the component which in charge of converting outlines into */
/* bitmaps). This will produce a bigger object file for "ttraster.c", */
/* which _may_ be faster on some architectures.. */
/* */
/* Do NOT DEFINE THIS is you build a thread-safe version of the engine */
/* */
#undef TT_CONFIG_OPTION_STATIC_RASTER
/*************************************************************************/
/* Define TT_CONFIG_THREAD_SAFE if you want to build a thread-safe */
/* version of the library. */
#undef TT_CONFIG_OPTION_THREAD_SAFE
/**********************************************************************/
/* */
/* The following macros are used to define the debug level, as well */
/* as individual tracing levels for each component. There are */
/* currently three modes of operation : */
/* */
/* - trace mode (define DEBUG_LEVEL_TRACE) */
/* */
/* The engine prints all error messages, as well as tracing */
/* ones, filtered by each component's level */
/* */
/* - debug mode (define DEBUG_LEVEL_ERROR) */
/* */
/* Disable tracing, but keeps error output and assertion */
/* checks. */
/* */
/* - release mode (don't define anything) */
/* */
/* Don't include error-checking or tracing code in the */
/* engine's code. Ideal for releases. */
/* */
/* NOTE : */
/* */
/* Each component's tracing level is defined in its own source. */
/* */
/**********************************************************************/
/* Define if you want to use the tracing debug mode */
#undef DEBUG_LEVEL_TRACE
/* Define if you want to use the error debug mode - ignored if */
/* DEBUG_LEVEL_TRACE is defined */
#undef DEBUG_LEVEL_ERROR
/**************************************************************************/
/* Definition of various integer sizes. These types are used by ttcalc */
/* and ttinterp (for the 64-bit integers) only.. */
#if SIZEOF_INT == 4
typedef signed int TT_Int32;
typedef unsigned int TT_Word32;
#elif SIZEOF_LONG == 4
typedef signed long TT_Int32;
typedef unsigned long TT_Word32;
#else
#error "no 32bit type found"
#endif
#if SIZEOF_LONG == 8
/* LONG64 must be defined when a 64-bit type is available */
/* INT64 must then be defined to this type.. */
#define LONG64
#define INT64 long
#else
/* GCC provides the non-ANSI 'long long' 64-bit type. You can activate */
/* by defining the TT_USE_LONG_LONG macro in 'ft_conf.h'. Note that this */
/* will produce many -ansi warnings during library compilation. */
#ifdef TT_USE_LONG_LONG
#define LONG64
#define INT64 long long
#endif /* TT_USE_LONG_LONG */
#endif
#endif /* FT_CONF_H */
/* END */

24
lib/arch/win32/makedef Normal file
View File

@@ -0,0 +1,24 @@
# makedef
#
# This shell script creates a .DEF file necessary for building as DLL
# on the Windows 32-bit platform.
echo "\
; This definition file to be used to built the library as DLL
; has been generated automatically with the script \`makedef' on
; `date +%d-%b-%Y`.
LIBRARY ft13_32
DESCRIPTION 'FreeType 1.3 32-bit DLL <20> 1996-1999 Turner, Wilhelm, Lemberg'
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE MULTIPLE
EXPORTS
" > ttf.def
(cd ../..
sed -n -e "/^ *EXPORT_DEF/!d ; n ; s/(.*$//" \
-e "s/;$//" -e "s/ const / /" -e "s/ *[a-zA-Z][a-zA-Z_\*]* //" \
-e "s/ *//g" -e "s/^/ /" -e "p" *.h extend/*.h) >> ttf.def
# eof

29
lib/arch/win32/makedep Normal file
View File

@@ -0,0 +1,29 @@
# makedep
#
# This shell script creates a dependency file necessary for some compilers
# on the Win32 platform.
echo "\
# This dependency file to be used with various Win32 compilers
# has been generated automatically with the script \`makedep' on
# `date +%d-%b-%Y`.
" > depend.win
(cd ../..
gcc -MM -Iarch/win32 -I. *.c | \
sed -e "s/\.o:/.obj:/" -e "s:/:\\\\:g") >> depend.win
(cd ../..
gcc -MM -Iarch/win32 -I. -Iextend extend/*.c | \
sed -e "s/^\(.*\)\.o:/extend\\\\\1.obj:/" -e "s:/:\\\\:g") >> depend.win
echo "!ifndef __MAKE__" >> depend.win
(cd ../..
gcc -MM -Iarch/win32 -I. -Iextend arch/win32/*.c | \
sed -e "s/^\(.*\)\.o:/arch\\\\win32\\\\\1.obj:/" \
-e "s:/:\\\\:g") >> depend.win
echo "!endif" >> depend.win
# eof

127
lib/arch/win32/ttf.def Normal file
View File

@@ -0,0 +1,127 @@
; This definition file to be used to built the library as DLL
; has been generated automatically with the script `makedef' on
; 03-Sep-1999.
LIBRARY ft13_32
DESCRIPTION 'FreeType 1.3 32-bit DLL <EFBFBD> 1996-1999 Turner, Wilhelm, Lemberg'
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE MULTIPLE
EXPORTS
TT_FreeType_Version
TT_Init_FreeType
TT_Done_FreeType
TT_Set_Raster_Gray_Palette
TT_Open_Face
TT_Open_Collection
TT_Get_Face_Properties
TT_Set_Face_Pointer
TT_Get_Face_Pointer
TT_Flush_Face
TT_Get_Face_Metrics
TT_Close_Face
TT_Get_Font_Data
TT_New_Instance
TT_Set_Instance_Resolutions
TT_Set_Instance_CharSize
TT_Set_Instance_CharSizes
TT_Set_Instance_PixelSizes
TT_Set_Instance_Transform_Flags
TT_Get_Instance_Metrics
TT_Set_Instance_Pointer
TT_Get_Instance_Pointer
TT_Done_Instance
TT_New_Glyph
TT_Done_Glyph
TT_Load_Glyph
TT_Get_Glyph_Outline
TT_Get_Glyph_Metrics
TT_Get_Glyph_Big_Metrics
TT_Get_Glyph_Bitmap
TT_Get_Glyph_Pixmap
TT_New_Outline
TT_Done_Outline
TT_Copy_Outline
TT_Get_Outline_Bitmap
TT_Get_Outline_Pixmap
TT_Get_Outline_BBox
TT_Transform_Outline
TT_Translate_Outline
TT_Transform_Vector
TT_MulDiv
TT_MulFix
TT_Get_CharMap_Count
TT_Get_CharMap_ID
TT_Get_CharMap
TT_Char_Index
TT_Get_Name_Count
TT_Get_Name_ID
TT_Get_Name_String
TT_Register_Extension
TT_Extension_Get
TT_Use_Stream
TT_Done_Stream
TT_Flush_Stream
TT_Read_File
TT_Seek_File
TT_Skip_File
TT_Read_At_File
TT_File_Pos
TT_Stream_Size
TT_Null_FileFrame
TT_Access_Frame
TT_Check_And_Access_Frame
TT_Forget_Frame
TT_Get_Char
TT_Get_Short
TT_Get_Long
TT_LookUp_Table
TT_Alloc
TT_Realloc
TT_Free
TT_CharMap_First
TT_CharMap_Next
TT_CharMap_Last
TT_ErrToString18
TT_Get_Face_Gasp_Flags
TT_Init_GDEF_Extension
TT_Load_GDEF_Table
TT_GDEF_Get_Glyph_Property
TT_GDEF_Build_ClassDefinition
TT_Init_GPOS_Extension
TT_Load_GPOS_Table
TT_GPOS_Select_Script
TT_GPOS_Select_Language
TT_GPOS_Select_Feature
TT_GPOS_Query_Scripts
TT_GPOS_Query_Languages
TT_GPOS_Query_Features
TT_GPOS_Add_Feature
TT_GPOS_Clear_Features
TT_Init_GSUB_Extension
TT_Load_GSUB_Table
TT_GSUB_Select_Script
TT_GSUB_Select_Language
TT_GSUB_Select_Feature
TT_GSUB_Query_Scripts
TT_GSUB_Query_Languages
TT_GSUB_Query_Features
TT_GSUB_Add_Feature
TT_GSUB_Clear_Features
TT_GSUB_Register_Alternate_Function
TT_GSUB_Apply_String
TT_GSUB_Add_String
TT_Init_Kerning_Extension
TT_Get_Kerning_Directory
TT_Load_Kerning_Table
TT_Init_Post_Extension
TT_Load_PS_Names
TT_Get_PS_Name
TT_Init_SBit_Extension
TT_Get_Face_Bitmaps
TT_New_SBit_Image
TT_Done_SBit_Image
TT_Get_SBit_Strike
TT_Load_Glyph_Bitmap
TT_Get_Face_Widths