* builds/compiler/bcc-dev.mk, builds/compiler/visualage.mk, builds/compiler/bcc.mk, builds/win32/w32-bcc.mk, builds/win32/w32-bccd.mk: Revised. * include/freetype/config/ftbuild.h, include/freetype/internal/internal.h: Revised. * include/freetype/ftimage.h: Updated to new header inclusion scheme. * builds/toplevel.mk (.PHONY): Adding `distclean'. * builds/unix/detect.mk (.PHONY): Adding `devel', `unix', `lcc', `setup'. * INSTALL: Slightly updated the quick starter documentation to include IDE compilation, prevent against BSD Make, and specify "make setup" instead of a single "make" for build configuration. * include/config/ftbuild.h, include/internal/internal.h: Added new configuration files used to determine the location of all public, configuration, and internal header files for FreeType 2. Modified all headers under "include/freetype" to reflect this change. Note that we still need to change the library source files themselves though. builds/win32/detect.mk: Added new files to support compilation with the free Borland C++ command-line compiler. Modified the detection rules to recognize the new "bcc32" target in "make setup bcc32". src/truetype/ttobjs.c, src/truetype/ttgload.c, src/truetype/ttinterp.c: Fixed a few comparisons that Borland C++ didn't really like. Basically, this compiler complains when FT_UInt is compared to FT_UShort (apparently, it promotes `UShort' to `Int' in these cases).VER-2-0-4-PATCH
parent
9b9a5ffb2d
commit
ced382a86c
17 changed files with 407 additions and 310 deletions
@ -1,90 +1,93 @@ |
||||
In order to build the library, read the `BUILD' document in the `docs' |
||||
directory. This is only a quick starter: |
||||
directory. This is only a quick starter: |
||||
|
||||
I. From the command line: |
||||
|
||||
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 !!) |
||||
library from the command line. This will _not_ work with other |
||||
make tools (including BSD make)! |
||||
|
||||
- Go to the 'freetype2' directory |
||||
- Go to the `freetype2' directory. |
||||
|
||||
- on Unix (any C compiler should work): |
||||
- On Unix (any C compiler should work): |
||||
|
||||
- make setup (don't worry, this will invoke a configure script) |
||||
- make |
||||
- make install |
||||
- 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: |
||||
Alternatively, you can pass parameters to the configure script |
||||
within the CFG variable, as in: |
||||
|
||||
- make setup CFG="--prefix=/usr" |
||||
- make |
||||
- make install |
||||
- make setup CFG="--prefix=/usr" |
||||
- make |
||||
- make install |
||||
|
||||
- On Windows: |
||||
|
||||
we provide a version of GNU Make for Win32 on the FreeType site. |
||||
See http://www.freetype.org/download.html for details.. |
||||
We provide a version of GNU Make for Win32 on the FreeType site. |
||||
See http://www.freetype.org/download.html for details. |
||||
|
||||
o if you're using gcc: |
||||
If you are using gcc: |
||||
|
||||
- make setup |
||||
- make |
||||
- make setup |
||||
- make |
||||
|
||||
o if you're using Visual C++: |
||||
If you are using Visual C++: |
||||
|
||||
- make setup visualc |
||||
- make |
||||
- make setup visualc |
||||
- make |
||||
|
||||
o if you're using Win32-lCC: |
||||
If you are using Win32-lCC: |
||||
|
||||
- make setup lcc |
||||
- make |
||||
- make setup lcc |
||||
- make |
||||
|
||||
o if you're using the Borland C++ Builder compiler: |
||||
If you are using the Borland C++ Builder compiler: |
||||
|
||||
- make setup bcc32 |
||||
- make |
||||
- make setup bcc32 |
||||
- make |
||||
|
||||
|
||||
II. In your own environment (IDE): |
||||
|
||||
you need to add the directories "freetype2/include" and "freetype2/src" |
||||
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: |
||||
Compile each library component through the following files: |
||||
|
||||
-- base components (required) |
||||
-- 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/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: |
||||
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: |
||||
|
||||
'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' |
||||
`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. |
||||
etc. |
||||
|
||||
|
||||
--- end of INSTALL -- |
||||
|
@ -1,29 +1,55 @@ |
||||
/* this file is automatically included by <freetype/config/ftbuild.h> */ |
||||
/* do not include it manually !! */ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* internal.h */ |
||||
/* */ |
||||
/* Internal header files (specification only). */ |
||||
/* */ |
||||
/* Copyright 1996-2000 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
/* internal header files */ |
||||
#define FT_INTERNAL_OBJECTS_H FT_INTERNAL_FILE(ftobjs.h) |
||||
#define FT_INTERNAL_STREAM_H FT_INTERNAL_FILE(ftstream.h) |
||||
#define FT_INTERNAL_MEMORY_H FT_INTERNAL_FILE(ftmemory.h) |
||||
#define FT_INTERNAL_EXTENSION_H FT_INTERNAL_FILE(ftextend.h) |
||||
#define FT_INTERNAL_DEBUG_H FT_INTERNAL_FILE(ftdebug.h) |
||||
#define FT_INTERNAL_CALC_H FT_INTERNAL_FILE(ftcalc.h) |
||||
#define FT_INTERNAL_DRIVER_H FT_INTERNAL_FILE(ftdriver.h) |
||||
|
||||
#define FT_INTERNAL_SFNT_H FT_INTERNAL_FILE(sfnt.h) |
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is automatically included by `ftbuild.h'. */ |
||||
/* Do not include it manually! */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#define FT_INTERNAL_TRUETYPE_TYPES_H FT_INTERNAL_FILE(tttypes.h) |
||||
#define FT_INTERNAL_TRUETYPE_ERRORS_H FT_INTERNAL_FILE(tterrors.h) |
||||
|
||||
#define FT_INTERNAL_TYPE1_ERRORS_H FT_INTERNAL_FILE(t1errors.h) |
||||
#define FT_INTERNAL_TYPE1_TYPES_H FT_INTERNAL_FILE(t1types.h) |
||||
/* don't add spaces around the argument of FT_INTERNAL_FILE! */ |
||||
|
||||
#define FT_INTERNAL_CFF_ERRORS_H FT_INTERNAL_FILE(t2errors.h) |
||||
#define FT_INTERNAL_CFF_TYPES_H FT_INTERNAL_FILE(t2types.h) |
||||
#define FT_INTERNAL_OBJECTS_H FT_INTERNAL_FILE(ftobjs.h) |
||||
#define FT_INTERNAL_STREAM_H FT_INTERNAL_FILE(ftstream.h) |
||||
#define FT_INTERNAL_MEMORY_H FT_INTERNAL_FILE(ftmemory.h) |
||||
#define FT_INTERNAL_EXTENSION_H FT_INTERNAL_FILE(ftextend.h) |
||||
#define FT_INTERNAL_DEBUG_H FT_INTERNAL_FILE(ftdebug.h) |
||||
#define FT_INTERNAL_CALC_H FT_INTERNAL_FILE(ftcalc.h) |
||||
#define FT_INTERNAL_DRIVER_H FT_INTERNAL_FILE(ftdriver.h) |
||||
|
||||
#define FT_INTERNAL_POSTSCRIPT_NAMES_H FT_INTERNAL_FILE(psnames.h) |
||||
#define FT_INTERNAL_POSTSCRIPT_AUX_H FT_INTERNAL_FILE(psaux.h) |
||||
#define FT_INTERNAL_SFNT_H FT_INTERNAL_FILE(sfnt.h) |
||||
|
||||
#define FT_INTERNAL_AUTOHINT_H FT_INTERNAL_FILE(autohint.h) |
||||
#define FT_INTERNAL_FNT_TYPES_H FT_INTERNAL_FILE(fnttypes.h) |
||||
#define FT_INTERNAL_TRUETYPE_TYPES_H FT_INTERNAL_FILE(tttypes.h) |
||||
#define FT_INTERNAL_TRUETYPE_ERRORS_H FT_INTERNAL_FILE(tterrors.h) |
||||
|
||||
#define FT_INTERNAL_TYPE1_ERRORS_H FT_INTERNAL_FILE(t1errors.h) |
||||
#define FT_INTERNAL_TYPE1_TYPES_H FT_INTERNAL_FILE(t1types.h) |
||||
|
||||
#define FT_INTERNAL_CFF_ERRORS_H FT_INTERNAL_FILE(t2errors.h) |
||||
#define FT_INTERNAL_CFF_TYPES_H FT_INTERNAL_FILE(t2types.h) |
||||
|
||||
#define FT_INTERNAL_POSTSCRIPT_NAMES_H FT_INTERNAL_FILE(psnames.h) |
||||
#define FT_INTERNAL_POSTSCRIPT_AUX_H FT_INTERNAL_FILE(psaux.h) |
||||
|
||||
#define FT_INTERNAL_AUTOHINT_H FT_INTERNAL_FILE(autohint.h) |
||||
#define FT_INTERNAL_FNT_TYPES_H FT_INTERNAL_FILE(fnttypes.h) |
||||
|
||||
|
||||
/* END */ |
||||
|
Loading…
Reference in new issue