internals:windows:libs:freetype

This is an old revision of the document!


Freetype PHP Windows, How to compile

Project homepage: freetype.org

Available prebuilt libraries

All prebuilt libraries are available in the php-libs repositories

The filename format is:

freetype-x.y.z-vcversion.zip

where x.y.z defines the version, vcversion which Visual C++ has been used.

Only the static libraries are built for now. We may add DLLs later but PHP is linked statically against Freetype.

Naming

The libraries are named as follow:

freetype{buildtype}{_debug}.lib

{buildtype} can be either MT, ST or empty. MT stands for Multithreaded, ST for Singlethreaded and empty is the default mode (non MT). As in all other libraries, we add the “_debug” postfix for the debug builds.

Building Freetype

Requirements

Configurations

VC6 uses Makefile while later versions can use the projects files included in our src archive.

Configurations for VC6 (Makefile)

  • “Release”
  • “Release MT”
  • “Release ST”
  • “Debug”
  • “Debug ST”
  • “Debug MT”

Configurations for 2k3, 2k5 and 2k8

  • “Debug”
  • “Release”
  • “Debug Multithreaded”
  • “Debug Singlethreaded”
  • “Release Multithreaded”
  • “Release Multithreaded”

Multithreaded builds are used with the default PHP builds. Singlethreaded are used for the non TS builds.

Compilation

VC6

Compile for default PHP builds (TS mode):

cd c:\build_php_deps\libpng1229\projects\
nmake /f libpng.mak CFG= "Release MT"

Compile for not threaded PHP builds (no TS mode):

cd c:\build_php_deps\libpng1229\projects\
nmake /f libpng.mak CFG= "Release ST"

2k3, 2k5 and 2k8

Select the desired configuration via the Configuration Manager. The default PHP builds use ““Release Multithreaded” in the Win32 target. Non threaded PHP builds use “Release Singlethreaded”.

internals/windows/libs/freetype.1211651239.txt.gz · Last modified: 2017/09/22 13:28 (external edit)