2005-06-05 01:04:30 +02:00
|
|
|
# FreeType 2 top Jamfile.
|
2001-03-24 18:10:09 +01:00
|
|
|
#
|
2016-01-13 11:54:10 +01:00
|
|
|
# Copyright 2001-2016 by
|
2005-06-05 01:04:30 +02:00
|
|
|
# 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.
|
|
|
|
|
2001-03-24 18:10:09 +01:00
|
|
|
|
2002-11-06 23:32:54 +01:00
|
|
|
# The HDRMACRO is already defined in FTJam and is used to add
|
|
|
|
# the content of certain macros to the list of included header
|
|
|
|
# files.
|
|
|
|
#
|
2003-04-21 15:30:27 +02:00
|
|
|
# We can compile FreeType 2 with classic Jam however thanks to
|
2002-11-06 23:32:54 +01:00
|
|
|
# the following code
|
|
|
|
#
|
|
|
|
if ! $(JAM_TOOLSET)
|
|
|
|
{
|
|
|
|
rule HDRMACRO
|
|
|
|
{
|
2003-04-21 15:30:27 +02:00
|
|
|
# nothing
|
2002-11-06 23:32:54 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
|
2001-04-03 23:07:36 +02:00
|
|
|
# We need to invoke a SubDir rule if the FT2 source directory top is not the
|
|
|
|
# current directory. This allows us to build FreeType 2 as part of a larger
|
|
|
|
# project easily.
|
2001-03-24 18:10:09 +01:00
|
|
|
#
|
|
|
|
if $(FT2_TOP) != $(DOT)
|
|
|
|
{
|
2001-04-03 23:07:36 +02:00
|
|
|
SubDir FT2_TOP ;
|
2001-03-24 18:10:09 +01:00
|
|
|
}
|
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
|
|
|
|
# The following macros define the include directory, the source directory,
|
|
|
|
# and the final library name (without library extensions). They can be
|
2002-11-06 23:32:54 +01:00
|
|
|
# replaced by other definitions when the library is compiled as part of
|
|
|
|
# a larger project.
|
|
|
|
#
|
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
# Name of FreeType include directory during compilation.
|
|
|
|
# This is relative to FT2_TOP.
|
2002-11-06 23:32:54 +01:00
|
|
|
#
|
|
|
|
FT2_INCLUDE_DIR ?= include ;
|
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
# Name of FreeType source directory during compilation.
|
|
|
|
# This is relative to FT2_TOP.
|
2002-11-06 23:32:54 +01:00
|
|
|
#
|
|
|
|
FT2_SRC_DIR ?= src ;
|
2001-03-24 18:10:09 +01:00
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
# Name of final library, without extension.
|
2002-11-06 23:32:54 +01:00
|
|
|
#
|
|
|
|
FT2_LIB ?= $(LIBPREFIX)freetype ;
|
2001-03-24 18:10:09 +01:00
|
|
|
|
2002-11-06 23:32:54 +01:00
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
# Define FT2_BUILD_INCLUDE to point to your build-specific directory.
|
|
|
|
# This is prepended to FT2_INCLUDE_DIR. It can be used to specify
|
2002-11-06 23:32:54 +01:00
|
|
|
# the location of a custom <ft2build.h> which will point to custom
|
2005-10-18 08:09:13 +02:00
|
|
|
# versions of `ftmodule.h' and `ftoption.h', for example.
|
2002-11-06 23:32:54 +01:00
|
|
|
#
|
|
|
|
FT2_BUILD_INCLUDE ?= ;
|
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
# The list of modules to compile on any given build of the library.
|
|
|
|
# By default, this will contain _all_ modules defined in FT2_SRC_DIR.
|
2002-11-06 23:32:54 +01:00
|
|
|
#
|
2005-10-18 08:09:13 +02:00
|
|
|
# IMPORTANT: You'll need to change the content of `ftmodule.h' as well
|
2002-11-06 23:32:54 +01:00
|
|
|
# if you modify this list or provide your own.
|
|
|
|
#
|
2003-12-24 19:42:04 +01:00
|
|
|
FT2_COMPONENTS ?= autofit # auto-fitter
|
2002-11-06 23:32:54 +01:00
|
|
|
base # base component (public APIs)
|
|
|
|
bdf # BDF font driver
|
2015-06-21 19:12:12 +02:00
|
|
|
bzip2 # support for bzip2-compressed PCF font
|
2002-11-06 23:32:54 +01:00
|
|
|
cache # cache sub-system
|
|
|
|
cff # CFF/CEF font driver
|
2003-04-21 15:30:27 +02:00
|
|
|
cid # PostScript CID-keyed font driver
|
2011-01-06 03:19:50 +01:00
|
|
|
gzip # support for gzip-compressed PCF font
|
|
|
|
lzw # support for LZW-compressed PCF font
|
2015-06-21 19:12:12 +02:00
|
|
|
pcf # PCF font driver
|
2002-11-06 23:32:54 +01:00
|
|
|
pfr # PFR/TrueDoc font driver
|
2003-04-21 15:30:27 +02:00
|
|
|
psaux # common PostScript routines module
|
|
|
|
pshinter # PostScript hinter module
|
|
|
|
psnames # PostScript names handling
|
|
|
|
raster # monochrome rasterizer
|
2002-11-06 23:32:54 +01:00
|
|
|
sfnt # SFNT-based format support routines
|
2015-06-21 19:12:12 +02:00
|
|
|
smooth # anti-aliased rasterizer
|
2002-11-06 23:32:54 +01:00
|
|
|
truetype # TrueType font driver
|
2003-04-21 15:30:27 +02:00
|
|
|
type1 # PostScript Type 1 font driver
|
|
|
|
type42 # PostScript Type 42 (embedded TrueType) driver
|
2002-11-06 23:32:54 +01:00
|
|
|
winfonts # Windows FON/FNT font driver
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
# Don't touch.
|
2002-11-06 23:32:54 +01:00
|
|
|
#
|
|
|
|
FT2_INCLUDE = $(FT2_BUILD_INCLUDE)
|
|
|
|
[ FT2_SubDir $(FT2_INCLUDE_DIR) ] ;
|
|
|
|
|
|
|
|
FT2_SRC = [ FT2_SubDir $(FT2_SRC_DIR) ] ;
|
|
|
|
|
2003-08-18 00:31:23 +02:00
|
|
|
# Location of API Reference Documentation
|
|
|
|
#
|
|
|
|
if $(DOC_DIR)
|
|
|
|
{
|
|
|
|
DOC_DIR = $(DOCDIR:T) ;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
DOC_DIR = docs/reference ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
# Only used by FreeType developers.
|
2002-11-06 23:32:54 +01:00
|
|
|
#
|
2001-10-18 13:59:08 +02:00
|
|
|
if $(DEBUG_HINTER)
|
|
|
|
{
|
|
|
|
CCFLAGS += -DDEBUG_HINTER ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-06-21 19:12:12 +02:00
|
|
|
# We need `include' in the current include path in order to
|
2001-04-03 23:07:36 +02:00
|
|
|
# compile any part of FreeType 2.
|
2015-06-21 19:12:12 +02:00
|
|
|
#
|
2003-01-08 10:10:53 +01:00
|
|
|
HDRS += $(FT2_INCLUDE) ;
|
|
|
|
|
2006-03-23 21:58:20 +01:00
|
|
|
|
2006-01-27 10:15:53 +01:00
|
|
|
# We need to #define FT2_BUILD_LIBRARY so that our sources find the
|
|
|
|
# internal headers
|
|
|
|
#
|
2015-06-21 19:12:12 +02:00
|
|
|
CCFLAGS += -DFT2_BUILD_LIBRARY ;
|
2003-01-08 10:10:53 +01:00
|
|
|
|
2001-04-03 23:07:36 +02:00
|
|
|
# Uncomment the following line if you want to build individual source files
|
2003-04-21 15:30:27 +02:00
|
|
|
# for each FreeType 2 module. This is only useful during development, and
|
|
|
|
# is better defined as an environment variable anyway!
|
2001-03-24 18:10:09 +01:00
|
|
|
#
|
* README: Formatting.
* Jamfile: Fix typo.
* src/cff/cffparse.c: Move error code #defines to...
* include/freetype/internal/cfferrs.h: This file.
* src/cff/cffdrivr.c, src/cff/cffobjs.c, src/cff/cffload.c: Replaced
`FT_Err_*' with `CFF_Err_*'.
* src/cid/cidparse.c: Replaced `FT_Err_*' with `T1_Err_*'.
* src/psaux/psobjs.c, src/psaux/t1decode.c: Ditto.
* src/sfnt/sfobcs.c, src/sfnt/ttload.c: Replaced `FT_Err_*' with
`TT_Err_*'.
* src/truetype/ttgload.c, src/truetype/ttobjs.c: Ditto.
* src/type1/t1gload.c, src/type1/t1load.c, src/type1/t1objs.c,
src/type1/t1parse.c: Replaced `FT_Err_*' with `T1_Err_*'.
* include/freetype/internal/cfferrs.h: Add
`CFF_Err_Unknown_File_Format'.
* include/freetype/internal/t1errors.h: Add
`T1_Err_Unknown_File_Format'.
* include/freetype/internal/tterrors.h: Add
`TT_Err_Unknown_File_Format'.
* src/cff/cffload.h: Add `cff_*_encoding' and `cff_*_charset'
references.
* src/psaux/psobjs.c: Include `FT_INTERNAL_TYPE1_ERRORS_H'.
* src/cff/cffobjs.c (CFF_Init_Face, CFF_Done_Face): Use
FT_LOCAL_DEF.
* src/cid/cidobjs.c (CID_Done_Driver): Ditto.
* src/trutype/ttobjs.c (TT_Init_Face, TT_Done_Face, TT_Init_Size):
Ditto.
* src/type1/t1objs.c (T1_Done_Driver): Ditto.
* src/pcf/pcfdriver.c (PCF_Done_Face): Ditto.
* src/pcf/pcf.h: Use FT_LOCAL for `PCF_Done_Face'.
2001-04-03 01:54:01 +02:00
|
|
|
# FT2_MULTI = true ;
|
2001-03-24 18:10:09 +01:00
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
|
2015-06-21 19:12:12 +02:00
|
|
|
# The files `ftheader.h', `internal.h', and `ftserv.h' are used to define
|
|
|
|
# macros that are later used in #include statements. They need to be parsed
|
|
|
|
# in order to record these definitions.
|
2001-03-24 18:10:09 +01:00
|
|
|
#
|
Another adjustment to header locations.
This change is a result of a discussion thread on freetype-devel
http://lists.nongnu.org/archive/html/freetype-devel/2015-06/msg00041.html
Re-introduce the `freetype2' subdirectory for all FreeType header
files after installation, and rename the `freetype2' subdirectory in
the git repository to `freetype'.
* include/freetype2: Renamed to...
* include/freetype: This.
* CMakeLists.txt (PUBLIC_HEADERS, PUBLIC_CONFIG_HEADERS,
PRIVATE_HEADERS): Updated.
Update creation of `ftconfig.h'.
Install generated `ftconfig.h'.
* Jamfile (HDRMACRO, RefDoc), autogen.sh: Updated.
* builds/amiga/include/config/ftconfig.h, builds/freetype.mk
(PUBLIC_DIR), builds/symbian/bld.inf, builds/toplevel.mk (work),
builds/unix/freetype2.in: Updated.
* builds/unix/freetype-config.in: Updated.
* builds/unix/configure.raw: Don't check for `rmdir'.
* builds/unix/unix-def.in (DELDIR): Use `rm -rf', which is portable
according to the autoconf info manual.
* builds/unix/install.mk (install, uninstall,
distclean_project_unix): Update and simplify.
* builds/wince/*, builds/windows/*: Updated.
* devel/ft2build.h, include/ft2build.h: Updated.
* include/freetype2/config/ftheader.h,
include/freetype2/internal/ftserv.h,
include/freetype2/internal/internal.h: Update all header file
macros.
* src/tools/chktrcmp.py (TRACE_DEF_FILES): Updated.
* docs/*: Updated.
2015-06-25 13:04:57 +02:00
|
|
|
HDRMACRO [ FT2_SubDir $(FT2_INCLUDE_DIR) freetype config ftheader.h ] ;
|
|
|
|
HDRMACRO [ FT2_SubDir $(FT2_INCLUDE_DIR) freetype internal internal.h ] ;
|
|
|
|
HDRMACRO [ FT2_SubDir $(FT2_INCLUDE_DIR) freetype internal ftserv.h ] ;
|
2001-03-24 18:10:09 +01:00
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
|
2005-10-18 08:09:13 +02:00
|
|
|
# Now include the Jamfile in `freetype2/src', used to drive the compilation
|
2001-04-03 23:07:36 +02:00
|
|
|
# of each FreeType 2 component and/or module.
|
2001-03-24 18:10:09 +01:00
|
|
|
#
|
2002-11-06 23:32:54 +01:00
|
|
|
SubInclude FT2_TOP $(FT2_SRC_DIR) ;
|
2001-03-24 18:10:09 +01:00
|
|
|
|
2015-06-21 19:12:12 +02:00
|
|
|
# Handle the generation of the `ftexport.sym' file, which contains the list
|
2005-10-18 08:09:13 +02:00
|
|
|
# of exported symbols. This can be used on Unix by libtool.
|
2005-10-16 10:29:12 +02:00
|
|
|
#
|
|
|
|
SubInclude FT2_TOP $(FT2_SRC_DIR) tools ;
|
|
|
|
|
|
|
|
rule GenExportSymbols
|
|
|
|
{
|
2005-10-28 18:14:14 +02:00
|
|
|
local apinames = apinames$(SUFEXE) ;
|
|
|
|
local headers = [ Glob $(2) : *.h ] ;
|
2005-10-16 10:29:12 +02:00
|
|
|
|
2005-12-14 17:38:31 +01:00
|
|
|
LOCATE on $(1) = $(ALL_LOCATE_TARGET) ;
|
|
|
|
|
2005-10-16 10:29:12 +02:00
|
|
|
APINAMES on $(1) = apinames$(SUFEXE) ;
|
|
|
|
|
2005-10-28 18:14:14 +02:00
|
|
|
Depends $(1) : $(apinames) $(headers) ;
|
2005-10-16 10:29:12 +02:00
|
|
|
GenExportSymbols1 $(1) : $(headers) ;
|
2005-10-28 18:14:14 +02:00
|
|
|
Clean clean : $(1) ;
|
2005-10-16 10:29:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
actions GenExportSymbols1 bind APINAMES
|
|
|
|
{
|
|
|
|
$(APINAMES) $(2) > $(1)
|
|
|
|
}
|
|
|
|
|
2013-11-13 08:55:46 +01:00
|
|
|
GenExportSymbols ftexport.sym : include include/cache ;
|
2001-03-24 18:10:09 +01:00
|
|
|
|
2003-04-21 15:30:27 +02:00
|
|
|
# Test files (hinter debugging). Only used by FreeType developers.
|
2001-10-18 13:59:08 +02:00
|
|
|
#
|
|
|
|
if $(DEBUG_HINTER)
|
|
|
|
{
|
|
|
|
SubInclude FT2_TOP tests ;
|
|
|
|
}
|
|
|
|
|
2005-12-23 14:32:06 +01:00
|
|
|
rule RefDoc
|
|
|
|
{
|
|
|
|
Depends $1 : all ;
|
|
|
|
NotFile $1 ;
|
|
|
|
Always $1 ;
|
|
|
|
}
|
|
|
|
|
2003-08-18 00:31:23 +02:00
|
|
|
actions RefDoc
|
|
|
|
{
|
2015-06-21 19:12:12 +02:00
|
|
|
python $(FT2_SRC)/tools/docmaker/docmaker.py
|
|
|
|
--prefix=ft2
|
* Version 2.6.2 released.
=========================
Tag sources with `VER-2-6-2'.
* docs/VERSION.DLL: Update documentation and bump version number to
2.6.2.
* README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
builds/windows/vc2005/index.html,
builds/windows/vc2008/freetype.vcproj,
builds/windows/vc2008/index.html,
builds/windows/vc2010/freetype.vcxproj,
builds/windows/vc2010/index.html,
builds/windows/visualc/freetype.dsp,
builds/windows/visualc/freetype.vcproj,
builds/windows/visualc/index.html,
builds/windows/visualce/freetype.dsp,
builds/windows/visualce/freetype.vcproj,
builds/windows/visualce/index.html,
builds/wince/vc2005-ce/freetype.vcproj,
builds/wince/vc2005-ce/index.html,
builds/wince/vc2008-ce/freetype.vcproj,
builds/wince/vc2008-ce/index.html: s/2.6.1/2.6.2/, s/261/262/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
* builds/unix/configure.raw (version_info): Set to 18:2:12.
* CMakeLists.txt (VERSION_PATCH): Set to 2.
* docs/CHANGES: Updated.
2015-11-28 19:08:05 +01:00
|
|
|
--title=FreeType-2.6.2
|
2015-06-21 19:12:12 +02:00
|
|
|
--output=$(DOC_DIR)
|
Another adjustment to header locations.
This change is a result of a discussion thread on freetype-devel
http://lists.nongnu.org/archive/html/freetype-devel/2015-06/msg00041.html
Re-introduce the `freetype2' subdirectory for all FreeType header
files after installation, and rename the `freetype2' subdirectory in
the git repository to `freetype'.
* include/freetype2: Renamed to...
* include/freetype: This.
* CMakeLists.txt (PUBLIC_HEADERS, PUBLIC_CONFIG_HEADERS,
PRIVATE_HEADERS): Updated.
Update creation of `ftconfig.h'.
Install generated `ftconfig.h'.
* Jamfile (HDRMACRO, RefDoc), autogen.sh: Updated.
* builds/amiga/include/config/ftconfig.h, builds/freetype.mk
(PUBLIC_DIR), builds/symbian/bld.inf, builds/toplevel.mk (work),
builds/unix/freetype2.in: Updated.
* builds/unix/freetype-config.in: Updated.
* builds/unix/configure.raw: Don't check for `rmdir'.
* builds/unix/unix-def.in (DELDIR): Use `rm -rf', which is portable
according to the autoconf info manual.
* builds/unix/install.mk (install, uninstall,
distclean_project_unix): Update and simplify.
* builds/wince/*, builds/windows/*: Updated.
* devel/ft2build.h, include/ft2build.h: Updated.
* include/freetype2/config/ftheader.h,
include/freetype2/internal/ftserv.h,
include/freetype2/internal/internal.h: Update all header file
macros.
* src/tools/chktrcmp.py (TRACE_DEF_FILES): Updated.
* docs/*: Updated.
2015-06-25 13:04:57 +02:00
|
|
|
$(FT2_INCLUDE)/freetype/*.h
|
|
|
|
$(FT2_INCLUDE)/freetype/config/*.h
|
2003-08-18 00:31:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
RefDoc refdoc ;
|
|
|
|
|
|
|
|
|
2001-04-03 23:07:36 +02:00
|
|
|
# end of top Jamfile
|