* builds/freetype.mk, Jamfile: define the macro FT2_BUILD_LIBRARY
when compiling the library. * include/freetype/config/ftheader.h: remove inclusions of internal headers, except if the macro FT2_BUILD_LIBRARY is defined.
This commit is contained in:
parent
9cc4aed879
commit
ff0e9e6c0d
@ -1,3 +1,12 @@
|
||||
2006-01-27 David Turner <david@freetype.org>
|
||||
|
||||
* builds/freetype.mk, Jamfile: define the macro FT2_BUILD_LIBRARY
|
||||
when compiling the library.
|
||||
|
||||
* include/freetype/config/ftheader.h: remove inclusions of
|
||||
internal headers, except if the macro FT2_BUILD_LIBRARY is defined.
|
||||
|
||||
|
||||
2006-01-23 Chia-I Wu <b90201047@ntu.edu.tw>
|
||||
|
||||
* include/freetype/freetype.h (FT_Select_Size): Rename the second
|
||||
|
4
Jamfile
4
Jamfile
@ -127,6 +127,10 @@ if $(DEBUG_HINTER)
|
||||
#
|
||||
HDRS += $(FT2_INCLUDE) ;
|
||||
|
||||
# We need to #define FT2_BUILD_LIBRARY so that our sources find the
|
||||
# internal headers
|
||||
#
|
||||
DEFINES += FT2_BUILD_LIBRARY ;
|
||||
|
||||
# Uncomment the following line if you want to build individual source files
|
||||
# for each FreeType 2 module. This is only useful during development, and
|
||||
|
@ -133,7 +133,11 @@ INCLUDE_FLAGS = $(INCLUDES:%=$I%)
|
||||
# $(INCLUDE_FLAGS) should come before $(CFLAGS) to avoid problems with
|
||||
# old FreeType versions.
|
||||
#
|
||||
FT_CFLAGS = $(CPPFLAGS) $(INCLUDE_FLAGS) $(CFLAGS)
|
||||
# note what we also define the macro FT2_BUILD_LIBRARY when building
|
||||
# FreeType. this is required to let our sources include the internal
|
||||
# headers (something forbidden by clients)
|
||||
#
|
||||
FT_CFLAGS = $(CPPFLAGS) $(INCLUDE_FLAGS) $(CFLAGS) $DFT2_BUILD_LIBRARY
|
||||
FT_CC = $(CC) $(FT_CFLAGS)
|
||||
FT_COMPILE = $(CC) $(ANSIFLAGS) $(FT_CFLAGS)
|
||||
|
||||
|
@ -626,11 +626,13 @@
|
||||
|
||||
#define FT_TRUETYPE_UNPATENTED_H <freetype/ttunpat.h>
|
||||
|
||||
/* now include internal headers definitions from <freetype/internal/...> */
|
||||
|
||||
#define FT_INTERNAL_INTERNAL_H <freetype/internal/internal.h>
|
||||
#include FT_INTERNAL_INTERNAL_H
|
||||
|
||||
/* now include internal headers definitions from <freetype/internal/...>
|
||||
* only when we're building the library !!
|
||||
*/
|
||||
#ifdef FT2_BUILD_LIBRARY
|
||||
# define FT_INTERNAL_INTERNAL_H <freetype/internal/internal.h>
|
||||
# include FT_INTERNAL_INTERNAL_H
|
||||
#endif /* FT2_BUILD_LIBRARY */
|
||||
|
||||
#endif /* __FT2_BUILD_H__ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user