2000-12-04 23:53:55 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* ft2build.h */
|
|
|
|
/* */
|
|
|
|
/* Build macros of the FreeType 2 library. */
|
|
|
|
/* */
|
|
|
|
/* 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. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
* include/freetype/config/ft2build.h (FT2_ROOT, FT2_CONFIG_ROOT):
Removed. ANSI C doesn't (explicitly) allow macro expansion in
arguments using `##'.
(FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE): Use directory
names directly. Make them configurable. Use `##' to strip leading
and trailing spaces from arguments.
* builds/unix/ft2unix.h: Adapted.
* src/base/ftsystem.c (ft_alloc, ft_realloc, ft_free, ft_io_stream,
ft_close_stream): Use FT_CALLBACK_DEF.
* builds/unix/ftsystem.c: Use new header scheme.
(FT_Done_Memory): Use free() from FT_Memory structure.
* src/base/ftinit.c, src/base/ftmac.c: Header scheme fixes.
* include/freetype/config/ft2build.h (FT2_CONFIG_ROOT,
FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE,
FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
2000-12-12 23:28:12 +01:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* This is a Unix-specific version of <ft2build.h> that should be used */
|
|
|
|
/* exclusively *after* installation of the library. */
|
|
|
|
/* */
|
2001-03-24 01:42:45 +01:00
|
|
|
/* it assumes that "/usr/local/include/freetype2", or wathever is */
|
|
|
|
/* returned by the "freetype-config --cflags" command is in your */
|
|
|
|
/* compilation include path.. */
|
|
|
|
/* */
|
|
|
|
/* We don't need to do anything special in this release. However, for */
|
|
|
|
/* FreeType 2.1, the following installation changes will be performed: */
|
|
|
|
/* */
|
|
|
|
/* - the content of "freetype-2.1/include/freetype" will be */
|
|
|
|
/* installed to "/usr/local/include/freetype2" instead of */
|
|
|
|
/* "/usr/local/include/freetype2/freetype" */
|
|
|
|
/* */
|
|
|
|
/* - this file will #include <freetype2/config/ftheader.h>, instead */
|
|
|
|
/* of <freetype/config/ftheader.h> */
|
|
|
|
/* */
|
|
|
|
/* - the content of "ftheader.h" will be processed through sed to */
|
|
|
|
/* replace all "<freetype/xxx>" with "<freetype2/xxxx>" */
|
|
|
|
/* */
|
|
|
|
/* - adding "/usr/local/include/freetype2" to your compilation */
|
|
|
|
/* include path will not be necessary anymore. The command */
|
|
|
|
/* "freetype-config --cflags" will return an empty string */
|
|
|
|
/* */
|
|
|
|
/* - client applications who adhere to the new inclusion scheme */
|
|
|
|
/* WILL NOT NEED TO BE MODIFIED to compile with FT 2.1 !! */
|
* include/freetype/config/ft2build.h (FT2_ROOT, FT2_CONFIG_ROOT):
Removed. ANSI C doesn't (explicitly) allow macro expansion in
arguments using `##'.
(FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE): Use directory
names directly. Make them configurable. Use `##' to strip leading
and trailing spaces from arguments.
* builds/unix/ft2unix.h: Adapted.
* src/base/ftsystem.c (ft_alloc, ft_realloc, ft_free, ft_io_stream,
ft_close_stream): Use FT_CALLBACK_DEF.
* builds/unix/ftsystem.c: Use new header scheme.
(FT_Done_Memory): Use free() from FT_Memory structure.
* src/base/ftinit.c, src/base/ftmac.c: Header scheme fixes.
* include/freetype/config/ft2build.h (FT2_CONFIG_ROOT,
FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE,
FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
2000-12-12 23:28:12 +01:00
|
|
|
/* */
|
|
|
|
/*************************************************************************/
|
|
|
|
|
2000-12-04 23:53:55 +01:00
|
|
|
#ifndef __FT2_BUILD_UNIX_H__
|
|
|
|
#define __FT2_BUILD_UNIX_H__
|
|
|
|
|
2001-03-24 01:42:45 +01:00
|
|
|
/* "/usr/local/include/freetype2" must be in your current inclusion path */
|
|
|
|
#include <freetype/config/ftheader.h>
|
2000-12-04 23:53:55 +01:00
|
|
|
|
|
|
|
#endif /* __FT2_BUILD_UNIX_H__ */
|
|
|
|
|
* include/freetype/config/ft2build.h (FT2_ROOT, FT2_CONFIG_ROOT):
Removed. ANSI C doesn't (explicitly) allow macro expansion in
arguments using `##'.
(FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE): Use directory
names directly. Make them configurable. Use `##' to strip leading
and trailing spaces from arguments.
* builds/unix/ft2unix.h: Adapted.
* src/base/ftsystem.c (ft_alloc, ft_realloc, ft_free, ft_io_stream,
ft_close_stream): Use FT_CALLBACK_DEF.
* builds/unix/ftsystem.c: Use new header scheme.
(FT_Done_Memory): Use free() from FT_Memory structure.
* src/base/ftinit.c, src/base/ftmac.c: Header scheme fixes.
* include/freetype/config/ft2build.h (FT2_CONFIG_ROOT,
FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE,
FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
2000-12-12 23:28:12 +01:00
|
|
|
|
2000-12-04 23:53:55 +01:00
|
|
|
/* END */
|