Commit Graph

1 Commits

Author SHA1 Message Date
Priyeshkkumar c5dba671aa [builds/windows] Made changes to build dlg with FreeType on Windows.
* builds/windows/vc2010/script.bat: New windows batch file to copy
	necessary dlg files from `submodules/dlg' to `src/dlg'.  This file is
	used as a pre-built event in visual studios.

	* builds/windows/ftdebug.c: Added support for logging and logging related
	public APIs.
	(ft_debug_init): Updates to support the change of levels of tracing
	components of FreeType at run-time.
	(FT_Trace_Set_Level): New function to change the levels of tracing
	components at run-time.
	(FT_Trace_Set_Default_Level): New function to reset the levels of
	tracing components back to default.
	(FT_Set_Log_Handler, FT_Set_Default_Log_Handler, FT_Callback): Added
	function definitions.

	* builds/windows/vc2010/freetype.vcxproj.filters: Added `src/dlgwrap.c'.

	* builds/windows/vc2010/freetype.vcxproj (AdditionalIncludeDirectories):
	Added include files of dlg for `Debug' and `Debug Static' configurations
	on both `x64' and `win32' platforms.
	(PreprocessorDefinitions): Added `FT_LOGGING' for `Debug' and
	`Debug Static' configurations on both `x64' and `win32' platforms.  Added
	`DLG_STATIC' for `Debug' configuration on `x64' and `win32' platforms.
	(DisableLanguageExtensions): We need to disable the `/Za' option when
	building dlg with FreeType as dlg strictly follows `C99' standards and
	the Visual Studios produces unexpected behaviours when compiling a `C99'
	file with `/Za' option enabled.
2020-08-27 23:28:05 +05:30