2000-05-29 22:55:13 +02:00
|
|
|
#
|
|
|
|
# FreeType 2 OpenType/CFF driver configuration rules
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2002-03-30 17:41:09 +01:00
|
|
|
# Copyright 1996-2000, 2001 by
|
2000-05-29 22:55:13 +02:00
|
|
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
#
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
2000-06-11 05:46:57 +02:00
|
|
|
# This file is part of the FreeType project, and may only be used, modified,
|
2000-05-29 22:55:13 +02:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
|
|
# OpenType driver directory
|
|
|
|
#
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_DIR := $(SRC_)cff
|
|
|
|
CFF_DIR_ := $(CFF_DIR)$(SEP)
|
2000-05-29 22:55:13 +02:00
|
|
|
|
|
|
|
|
2001-03-20 12:14:24 +01:00
|
|
|
CFF_COMPILE := $(FT_COMPILE) $I$(CFF_DIR)
|
2000-05-29 22:55:13 +02:00
|
|
|
|
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
# CFF driver sources (i.e., C files)
|
2000-05-29 22:55:13 +02:00
|
|
|
#
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_DRV_SRC := $(CFF_DIR_)cffobjs.c \
|
|
|
|
$(CFF_DIR_)cffload.c \
|
2001-01-03 01:16:24 +01:00
|
|
|
$(CFF_DIR_)cffgload.c \
|
2000-12-08 03:42:29 +01:00
|
|
|
$(CFF_DIR_)cffparse.c \
|
* src/cff/cffcmap.c, src/cff/cffcmap.h, Jamfile, rules.mk: new files added
to support charmaps for CFF fonts
* src/cff/cffload.c, src/cff/cffload.h, src/cff/cffobjs.c,
src/cff/cffobjs.h, src/cff/cffparse.c, src/cffparse.h, src/cff/cffgload.c,
src/cff/cffgload.h: adding support for CFF charmaps, reformatting the
sources, and removing some bugs in the Encoding and Charset loaders
2002-07-10 18:52:06 +02:00
|
|
|
$(CFF_DIR_)cffcmap.c \
|
2000-12-08 03:42:29 +01:00
|
|
|
$(CFF_DIR_)cffdrivr.c
|
2000-05-29 22:55:13 +02:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
# CFF driver headers
|
2000-05-29 22:55:13 +02:00
|
|
|
#
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_DRV_H := $(CFF_DRV_SRC:%.c=%.h) \
|
Complete redesign of error codes. Please check ftmoderr.h for more
details.
* include/freetype/internal/cfferrs.h,
include/freetype/internal/tterrors.h,
include/freetype/internal/t1errors.h: Removed. Replaced with files
local to the module. All extra error codes have been moved to
`fterrors.h'.
* src/sfnt/ttpost.h: Move error codes to `fterrors.h'.
* src/autohint/aherrors.h, src/cache/ftcerror.h, src/cff/cfferrs.h,
src/cid/ciderrs.h, src/pcf/pcferror.h, src/psaux/psauxerr.h,
src/psnames/psnamerr.h, src/raster/rasterrs.h, src/sfnt/sferrors.h,
src/smooth/ftsmerrs.h, src/truetype/tterrors.h,
src/type1/t1errors.h, src/winfonts/fnterrs.h: New files defining the
error names for the module it belongs to.
* include/freetype/ftmoderr.h: New file, defining the module error
offsets. Its structure is similar to `fterrors.h'.
* include/freetype/fterrors.h (FT_NOERRORDEF): New macro.
(FT_ERRORDEF): Redefined to use module error offsets.
All internal error codes are now public; unused error codes have
been removed, some are new.
* include/freetype/config/ftheader.h (FT_MODULE_ERRORS_H): New
macro.
* include/freetype/config/ftoption.h
(FT_CONFIG_OPTION_USE_MODULE_ERRORS): New macro.
All other source files have been updated to use the new error codes;
some already existing (internal) error codes local to a module have
been renamed to give them the same name as in the base module.
All make files have been updated to include the local error files.
* src/cid/cidtokens.h: Replaced with...
* src/cid/cidtoken.h: This file for 8+3 consistency.
* src/raster/ftraster.c: Use macros for header file names.
2001-06-06 19:30:41 +02:00
|
|
|
$(CFF_DIR_)cfftoken.h \
|
|
|
|
$(CFF_DIR_)cfferrs.h
|
2000-05-29 22:55:13 +02:00
|
|
|
|
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
# CFF driver object(s)
|
2000-05-29 22:55:13 +02:00
|
|
|
#
|
2000-12-08 03:42:29 +01:00
|
|
|
# CFF_DRV_OBJ_M is used during `multi' builds
|
|
|
|
# CFF_DRV_OBJ_S is used during `single' builds
|
2000-05-29 22:55:13 +02:00
|
|
|
#
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_DRV_OBJ_M := $(CFF_DRV_SRC:$(CFF_DIR_)%.c=$(OBJ_)%.$O)
|
|
|
|
CFF_DRV_OBJ_S := $(OBJ_)cff.$O
|
2000-05-29 22:55:13 +02:00
|
|
|
|
2001-01-03 01:16:24 +01:00
|
|
|
# CFF driver source file for single build
|
2000-05-29 22:55:13 +02:00
|
|
|
#
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_DRV_SRC_S := $(CFF_DIR_)cff.c
|
2000-05-29 22:55:13 +02:00
|
|
|
|
|
|
|
|
2001-01-03 01:16:24 +01:00
|
|
|
# CFF driver - single object
|
2000-05-29 22:55:13 +02:00
|
|
|
#
|
2000-12-08 03:42:29 +01:00
|
|
|
$(CFF_DRV_OBJ_S): $(CFF_DRV_SRC_S) $(CFF_DRV_SRC) $(FREETYPE_H) $(CFF_DRV_H)
|
|
|
|
$(CFF_COMPILE) $T$@ $(CFF_DRV_SRC_S)
|
2000-05-29 22:55:13 +02:00
|
|
|
|
|
|
|
|
2001-01-03 01:16:24 +01:00
|
|
|
# CFF driver - multiple objects
|
2000-05-29 22:55:13 +02:00
|
|
|
#
|
2000-12-08 03:42:29 +01:00
|
|
|
$(OBJ_)%.$O: $(CFF_DIR_)%.c $(FREETYPE_H) $(CFF_DRV_H)
|
|
|
|
$(CFF_COMPILE) $T$@ $<
|
2000-05-29 22:55:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# update main driver object lists
|
|
|
|
#
|
2000-12-08 03:42:29 +01:00
|
|
|
DRV_OBJS_S += $(CFF_DRV_OBJ_S)
|
|
|
|
DRV_OBJS_M += $(CFF_DRV_OBJ_M)
|
2000-05-29 22:55:13 +02:00
|
|
|
|
|
|
|
# EOF
|