in the "builds" directory - modified a few files because BCC32 didn't like certain comparisons (UInt compared with a UShort, apparently the UShort is promoted to an Int) - updated the INSTALL file to include IDE compilation, prevent against BSD Make, and clarify the use of "make setup" (instead of "make") for build configurationVER-2-0-4-PATCH
parent
5ca75c3f9d
commit
9b9a5ffb2d
13 changed files with 273 additions and 34 deletions
@ -1,33 +1,90 @@ |
||||
In order to build the library, read the `BUILD' document in the `docs' |
||||
directory. Quick starter: Go to `freetype2', then: |
||||
directory. This is only a quick starter: |
||||
|
||||
Unix + GNU Make: |
||||
I. From the command line: |
||||
|
||||
- make (don't worry, this will invoke a configure script) |
||||
You need to have GNU Make installed on your system to compile the |
||||
library from the command line. This will _not_ work with other |
||||
Make tools (including the BSD ones !!) |
||||
|
||||
- Go to the 'freetype2' directory |
||||
|
||||
- on Unix (any C compiler should work): |
||||
|
||||
- make setup (don't worry, this will invoke a configure script) |
||||
- make |
||||
- make install |
||||
|
||||
alternatively, you can pass parameters to the configure script |
||||
with the CFG variable, as in: |
||||
|
||||
- make CFG="--prefix=/usr" |
||||
- make setup CFG="--prefix=/usr" |
||||
- make |
||||
- make install |
||||
|
||||
- On Windows: |
||||
|
||||
Windows + gcc + GNU Make: |
||||
we provide a version of GNU Make for Win32 on the FreeType site. |
||||
See http://www.freetype.org/download.html for details.. |
||||
|
||||
- make |
||||
- make |
||||
o if you're using gcc: |
||||
|
||||
Windows + Visual C++ + GNU Make: |
||||
- make setup |
||||
- make |
||||
|
||||
- make setup visualc |
||||
- make |
||||
o if you're using Visual C++: |
||||
|
||||
- make setup visualc |
||||
- make |
||||
|
||||
o if you're using Win32-lCC: |
||||
|
||||
- make setup lcc |
||||
- make |
||||
|
||||
o if you're using the Borland C++ Builder compiler: |
||||
|
||||
- make setup bcc32 |
||||
- make |
||||
|
||||
Windows + Win32-LCC + GNU Make: |
||||
|
||||
- make setup lcc |
||||
- make |
||||
II. In your own environment (IDE): |
||||
|
||||
you need to add the directories "freetype2/include" and "freetype2/src" |
||||
to your include path when compiling the library. |
||||
|
||||
compile each library component through the following files: |
||||
|
||||
-- base components (required) |
||||
|
||||
src/base/ftsystem.c |
||||
src/base/ftinit.c |
||||
src/base/ftdebug.c |
||||
src/base/ftbase.c |
||||
src/base/ftglyph.c |
||||
src/base/ftbbox.c |
||||
src/base/ftmm.c |
||||
|
||||
src/base/ftmac.c -- only on the Macintosh |
||||
|
||||
-- other components are optional |
||||
|
||||
src/autohint/autohint.c -- auto hinting module |
||||
src/cache/ftcache.c -- cache sub-system (in beta) |
||||
src/sfnt/sfnt.c -- SFNT files support (TrueType & OpenType) |
||||
src/cff/cff.c -- CFF/OpenType font driver |
||||
src/psnames/psnames.c -- Postscript glyph names support |
||||
src/psaux/psaux.c -- Postscript Type 1 parsing |
||||
src/truetype/truetype.c -- TrueType font driver |
||||
src/type1/type1.c -- Type 1 font driver |
||||
src/cid/type1cid.c -- Type 1 CID-keyed font driver |
||||
src/winfonts/winfonts.c -- Windows FONT / FNT font driver |
||||
|
||||
note that: |
||||
|
||||
'truetype.c' needs 'sfnt.c' and 'psnames.c' |
||||
'type1.c' needs 'psaux.c' and 'psnames.c' |
||||
'type1cid.c' needs 'psaux.c' and 'psnames.c' |
||||
'cff.c' needs 'sfnt.c', 'psaux.c' and 'psnames.c' |
||||
|
||||
etc. |
||||
|
@ -0,0 +1,69 @@ |
||||
# Copyright 2000 David Turner
|
||||
#
|
||||
# Borland C++-specific with NO OPTIMISATIONS + DEBUGGING
|
||||
#
|
||||
|
||||
# Compiler command line name
|
||||
CC := bcc32
|
||||
|
||||
# The object file extension (for standard and static libraries). This can be
|
||||
# .o, .tco, .obj, etc., depending on the platform.
|
||||
#
|
||||
O := obj
|
||||
SO := obj
|
||||
|
||||
# The library file extension (for standard and static libraries). This can
|
||||
# be .a, .lib, etc., depending on the platform.
|
||||
#
|
||||
A := lib
|
||||
SA := lib
|
||||
|
||||
|
||||
# Path inclusion flag. Some compilers use a different flag than `-I' to
|
||||
# specify an additional include path. Examples are `/i=' or `-J'.
|
||||
#
|
||||
I := -I
|
||||
|
||||
|
||||
# C flag used to define a macro before the compilation of a given source
|
||||
# object. Usually is `-D' like in `-DDEBUG'.
|
||||
#
|
||||
D := -D
|
||||
|
||||
|
||||
# The link flag used to specify a given library file on link. Note that
|
||||
# this is only used to compile the demo programs, not the library itself.
|
||||
#
|
||||
L :=
|
||||
|
||||
|
||||
# Target flag. - no trailing space
|
||||
#
|
||||
T := -o
|
||||
|
||||
|
||||
# C flags
|
||||
#
|
||||
# These should concern: debug output, optimization & warnings.
|
||||
#
|
||||
# Use the ANSIFLAGS variable to define the compiler flags used to enfore
|
||||
# ANSI compliance.
|
||||
#
|
||||
ifndef CFLAGS |
||||
CFLAGS := -c -y -d -v -Od -w-par -w-ccc -w-rch -w-pro -w-aus
|
||||
endif |
||||
|
||||
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
|
||||
#
|
||||
ANSIFLAGS := -A
|
||||
|
||||
|
||||
# Library linking
|
||||
#
|
||||
ifndef CLEAN_LIBRARY |
||||
CLEAN_LIBRARY = $(DELETE) $(subst $(SEP),$(HOSTSEP),$(PROJECT_LIBRARY)) $(NO_OUTPUT)
|
||||
endif |
||||
TARGET_OBJECTS = $(subst $(SEP),\\,$(OBJECTS_LIST))
|
||||
LINK_LIBRARY = tlib /u $(subst $(SEP),\\,$@) $(TARGET_OBJECTS:%=+%)
|
||||
|
||||
# EOF
|
@ -0,0 +1,69 @@ |
||||
# Copyright 2000 David Turner
|
||||
#
|
||||
# Borland C++-specific rules
|
||||
#
|
||||
|
||||
# Compiler command line name
|
||||
CC := bcc32
|
||||
|
||||
# The object file extension (for standard and static libraries). This can be
|
||||
# .o, .tco, .obj, etc., depending on the platform.
|
||||
#
|
||||
O := obj
|
||||
SO := obj
|
||||
|
||||
# The library file extension (for standard and static libraries). This can
|
||||
# be .a, .lib, etc., depending on the platform.
|
||||
#
|
||||
A := lib
|
||||
SA := lib
|
||||
|
||||
|
||||
# Path inclusion flag. Some compilers use a different flag than `-I' to
|
||||
# specify an additional include path. Examples are `/i=' or `-J'.
|
||||
#
|
||||
I := -I
|
||||
|
||||
|
||||
# C flag used to define a macro before the compilation of a given source
|
||||
# object. Usually is `-D' like in `-DDEBUG'.
|
||||
#
|
||||
D := -D
|
||||
|
||||
|
||||
# The link flag used to specify a given library file on link. Note that
|
||||
# this is only used to compile the demo programs, not the library itself.
|
||||
#
|
||||
L :=
|
||||
|
||||
|
||||
# Target flag. - no trailing space
|
||||
#
|
||||
T := -o
|
||||
|
||||
|
||||
# C flags
|
||||
#
|
||||
# These should concern: debug output, optimization & warnings.
|
||||
#
|
||||
# Use the ANSIFLAGS variable to define the compiler flags used to enfore
|
||||
# ANSI compliance.
|
||||
#
|
||||
ifndef CFLAGS |
||||
CFLAGS := -c -q -y -d -v -Od -w-par -w-ccc -w-rch -w-pro -w-aus
|
||||
endif |
||||
|
||||
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
|
||||
#
|
||||
ANSIFLAGS := -A
|
||||
|
||||
|
||||
# Library linking
|
||||
#
|
||||
ifndef CLEAN_LIBRARY |
||||
CLEAN_LIBRARY = $(DELETE) $(subst $(SEP),$(HOSTSEP),$(PROJECT_LIBRARY)) $(NO_OUTPUT)
|
||||
endif |
||||
TARGET_OBJECTS = $(subst $(SEP),\\,$(OBJECTS_LIST))
|
||||
LINK_LIBRARY = tlib /u $(subst $(SEP),\\,$@) $(TARGET_OBJECTS:%=+%)
|
||||
|
||||
# EOF
|
@ -0,0 +1,12 @@ |
||||
#
|
||||
# Borland C++ on Win32
|
||||
#
|
||||
|
||||
SEP := /
|
||||
include $(TOP)/builds/win32/win32-def.mk |
||||
include $(TOP)/builds/compiler/bcc.mk |
||||
|
||||
# include linking instructions
|
||||
include $(TOP)/builds/link_dos.mk |
||||
|
||||
# EOF
|
@ -0,0 +1,12 @@ |
||||
#
|
||||
# Borland C++ on Win32 + debugging
|
||||
#
|
||||
|
||||
SEP := /
|
||||
include $(TOP)/builds/win32/win32-def.mk |
||||
include $(TOP)/builds/compiler/bcc-dev.mk |
||||
|
||||
# include linking instructions
|
||||
include $(TOP)/builds/link_dos.mk |
||||
|
||||
# EOF
|
Loading…
Reference in new issue