diff options
author | Priyesh Kumar <priyeshkkumar@gmail.com> | 2020-08-26 12:27:52 +0530 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2020-12-01 09:20:32 +0100 |
commit | 34b1c897c109d853fcae123f11a4bc756a5eca2f (patch) | |
tree | 366ad3a5d933e45e8231b4d910883f82889ae89a /include/freetype/config/ftoption.h | |
parent | 8da4b437b4f784e9822e260cab5ecf1a0273469c (diff) | |
download | freetype2-34b1c897c109d853fcae123f11a4bc756a5eca2f.tar.gz |
[builds] Necessary changes to make 'dlg' compile.
* autogen.sh (copy_submodule_files): New script to copy all the
necessary source and include files from `submodules/dlg` to
`src/dlg`.
* src/dlg/dlgwrap.c: New wrapper file for `src/dlg.c`. It enables
the build of 'dlg' if the `FT_LOGGING` macro is defined.
* src/dlg/rules.mk: New sub-Makefile.
* builds/freetype.mk (DLG_DIR): New variable to include the
header files of the 'dlg' library.
(INCLUDES): Add `DLG_DIR`.
(FT_CFLAGS): Add `-std=c99' flag.
Include `src/dlg/rules.mk` file to build 'dlg' library.
(OBJ_S, OBJ_M): Add `DLG_OBJS_M` and `DLG_OBJS_S`.
* builds/toplevel.mk: For builds directly from the git repository
we need to copy files from `submodule/dlg` to `src/dlg`.
* include/freetype/config/ftoption.h, devel/ftoption.h (FT_LOGGING):
New macro to enable or disable the logging facility in FreeType.
Diffstat (limited to 'include/freetype/config/ftoption.h')
-rw-r--r-- | include/freetype/config/ftoption.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h index 097f19b8a..7dcf19771 100644 --- a/include/freetype/config/ftoption.h +++ b/include/freetype/config/ftoption.h @@ -433,6 +433,21 @@ FT_BEGIN_HEADER /************************************************************************** * + * Logging + * + * Compiling FreeType in debug or trace mode makes FreeType write error + * and trace log messages to `stderr`. Enabling this macro + * automatically forces the `FT_DEBUG_LEVEL_ERROR` and + * `FT_DEBUG_LEVEL_TRACE` macros and allows FreeType to write error and + * trace log messages to a file instead of `stderr`. For writing logs + * to a file, FreeType uses an the external `dlg` library (the source + * code is in `src/dlg`). + */ +/* #define FT_LOGGING */ + + + /************************************************************************** + * * Autofitter debugging * * If `FT_DEBUG_AUTOFIT` is defined, FreeType provides some means to |