1Instructions for building HarfBuzz on Visual Studio 2=================================================== 3Building the HarfBuzz DLL on Windows is now also supported using Visual Studio 4versions 2008 through 2015, in both 32-bit and 64-bit (x64) flavors, via NMake 5Makefiles. 6 7The following are instructions for performing such a build, as there is a 8number of build configurations supported for the build. Note that for all 9build configurations, the OpenType and Simple TrueType layout (fallback) 10backends are enabled, and this is the base configuration that is built if no 11options (see below) are specified. A 'clean' target is provided-it is recommended 12that one cleans the build and redo the build if any configuration option changed. 13An 'install' target is also provided to copy the built items in their appropriate 14locations under $(PREFIX), which is described below. 15 16Invoke the build by issuing the command: 17nmake /f Makefile.vc CFG=[release|debug] [PREFIX=...] <option1=1 option2=1 ...> 18where: 19 20CFG: Required. Choose from a release or debug build. Note that 21 all builds generate a .pdb file for each .dll and .exe built--this refers 22 to the C/C++ runtime that the build uses. 23 24PREFIX: Optional. Base directory of where the third-party headers, libraries 25 and needed tools can be found, i.e. headers in $(PREFIX)\include, 26 libraries in $(PREFIX)\lib and tools in $(PREFIX)\bin. If not 27 specified, $(PREFIX) is set as $(srcroot)\..\vs$(X)\$(platform), where 28 $(platform) is win32 for 32-bit builds or x64 for 64-bit builds, and 29 $(X) is the short version of the Visual Studio used, as follows: 30 2008: 9 31 2010: 10 32 2012: 11 33 2013: 12 34 2015: 14 35 36Explanation of options, set by <option>=1: 37------------------------------------------ 38GLIB: Enable GLib support in HarfBuzz, which also uses the GLib unicode 39 callback instead of the bundled UCDN unicode callback. This requires the 40 GLib libraries, and is required for building all tool and test programs. 41 42GOBJECT: Enable building the HarfBuzz-GObject DLL, and thus implies GLib 43 support. This requires the GObject libraries and glib-mkenums script, 44 along with PERL to generate the enum sources and headers, which is 45 required for the build. 46 47INTROSPECTION: Enable build of introspection files, for making HarfBuzz 48 bindings for other programming languages available, such as 49 Python, available. This requires the GObject-Introspection 50 libraries and tools, along with the Python interpretor that was 51 used during the build of GObject-Introspection. Please see 52 $(srcroot)\README.python for more related details. This implies 53 the build of the HarfBuzz-GObject DLL, along with GLib support. 54 55FREETYPE: Enable the FreeType font callbacks. Requires the FreeType2 library. 56 57CAIRO: Enable Cairo support. Requires the Cairo library. 58 59CAIRO_FT: Enable the build of the hb-view tool, which makes use of Cairo, and 60 thus implies FreeType font callback support and Cairo support. 61 Requires Cairo libraries built with FreeType support. Note that the 62 hb-view tool requires GLib support as well. 63 64GRAPHITE2: Enable the Graphite2 shaper, requires the SIL Graphite2 library. 65 66ICU: Enables the build of ICU Unicode functions. Requires the ICU libraries. 67 68UNISCRIBE: Enable Uniscribe platform shaper support. 69 70DIRECTWRITE: Enable DirectWrite platform shaper support, 71 requires a rather recent Windows SDK, and at least Windows Vista/ 72 Server 2008 with SP2 and platform update. 73 74PYTHON: Full path to the Python interpretor to be used, if it is not in %PATH%. 75 76PERL: Full path to the PERL interpretor to be used, if it is not in %PATH%. 77 78LIBTOOL_DLL_NAME: Enable libtool-style DLL names.