internals:windows:libs:freetype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
internals:windows:libs:freetype [2008/05/24 17:40] pajoyeinternals:windows:libs:freetype [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Freetype PHP Windows, How to compile ====== ====== Freetype PHP Windows, How to compile ======
 +
 +
 +Project homepage: [[http:://freetype.org]]
  
 ===== Available prebuilt libraries ===== ===== Available prebuilt libraries =====
  
-All prebuilt libraries are available in the php-libs [[http://pecl2.php.net/downloads/php-windows-builds/php-libs/|repositories]]+All prebuilt libraries are available in the php-libs [[http://windows.php.net/downloads/php-sdk/deps/|repositories]] 
 + 
 +For PHP suitable sources and up-to-date information see [[https://github.com/winlibs/freetype]]
  
 The filename format is: The filename format is:
Line 10: Line 15:
  
 where x.y.z defines the version, vcversion which Visual C++ has been used. 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 ===== ===== Building Freetype =====
  
 ==== Requirements ==== ==== Requirements ====
-  * Freetype sources [[http://pecl2.php.net/downloads/php-windows-builds/php-libs/src|Src repositories]]+  * Freetype sources [[https://github.com/winlibs/|Src repositories]]
   * Common tools to compile PHP   * Common tools to compile PHP
  
 ==== Configurations ==== ==== Configurations ====
  
-VC6 uses Makefile while later versions can use the projects files included in our src archive.+Edit the file "Jamfile" in the root of the Freetype source directory. Change the line 57 from: 
 +<code bash> 
 +# Name of final library, without extension. 
 +
 +FT2_LIB ?= $(LIBPREFIX)freetype ;
  
-=== Configurations for VC6 (Makefile) === +</code> 
-  * "Release" +to
-  * "Release MT" +
-  * "Release ST" +
-  * "Debug" +
-  * "Debug ST" +
-  * "Debug MT"+
  
-=== Configurations for 2k3, 2k5 and 2k8 ===+<code bash>
  
-  * "Debug" +# Name of final library, without extension. 
-  * "Release" +# 
-  * "Debug Multithreaded" +FT2_LIB ?= $(LIBPREFIX)freetype_a ;
-  * "Debug Singlethreaded" +
-  * "Release Multithreaded" +
-  * "Release Multithreaded"+
  
-Multithreaded builds are used with the default PHP builds. Singlethreaded are used for the non TS builds.+</code>
  
-==== Compilation ==== 
  
-=== VC6 ===+Tell Jam to use Visual C++:
  
-Compile for default PHP builds (TS mode): 
 <code bash> <code bash>
-cd c:\build_php_deps\libpng1229\projects\ +cd  C:\php-sdk\2k5\x86\libs_buildlibs\freetype-2.3.7 
-nmake /f libpng.mak CFG"Release MT"+set JAM_TOOLSET=VISUALC
 </code> </code>
  
-Compile for not threaded PHP builds (no TS mode):+ 
 +==== Compilation ==== 
 + 
 +Open a Platform SDK development console (vc6), or the Visual Studio command line (vc7/8/9) and run: 
 <code bash> <code bash>
-cd c:\build_php_deps\libpng1229\projects\ +jam
-nmake /f libpng.mak CFG= "Release ST"+
 </code> </code>
  
-=== 2k3, 2k5 and 2k8 ===+The objs directory will contain the static library. 
 + 
 +The include directory contains all headers that have to be distributed/installed.
internals/windows/libs/freetype.1211650858.txt.gz · Last modified: 2017/09/22 13:28 (external edit)