internals:windows:libs:freetype
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | internals:windows:libs:freetype [2010/07/14 12:05] – pajoye | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Freetype PHP Windows, How to compile ====== | ||
+ | |||
+ | Project homepage: [[http::// | ||
+ | |||
+ | ===== Available prebuilt libraries ===== | ||
+ | |||
+ | All prebuilt libraries are available in the php-libs [[http:// | ||
+ | |||
+ | 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, | ||
+ | |||
+ | ===== Building Freetype ===== | ||
+ | |||
+ | ==== Requirements ==== | ||
+ | * Freetype sources [[http:// | ||
+ | * Common tools to compile PHP | ||
+ | |||
+ | ==== Configurations ==== | ||
+ | |||
+ | Edit the file " | ||
+ | <code bash> | ||
+ | # Name of final library, without extension. | ||
+ | # | ||
+ | FT2_LIB ?= $(LIBPREFIX)freetype ; | ||
+ | |||
+ | </ | ||
+ | to | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | # Name of final library, without extension. | ||
+ | # | ||
+ | FT2_LIB ?= $(LIBPREFIX)freetype_a ; | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | Tell Jam to use Visual C++: | ||
+ | |||
+ | <code bash> | ||
+ | cd C: | ||
+ | set JAM_TOOLSET=VISUALC | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Compilation ==== | ||
+ | |||
+ | Open a Platform SDK development console (vc6), or the Visual Studio command line (vc7/8/9) and run: | ||
+ | |||
+ | <code bash> | ||
+ | jam | ||
+ | </ | ||
+ | |||
+ | The objs directory will contain the static library. | ||
+ | |||
+ | The include directory contains all headers that have to be distributed/ |
internals/windows/libs/freetype.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1