README.txt
1 Instructions for building HarfBuzz on Visual Studio
2 ===================================================
3 Building the HarfBuzz DLL on Windows is now also supported using Visual Studio
4 versions 2008 through 2015, in both 32-bit and 64-bit (x64) flavors, via NMake
5 Makefiles.
6
7 The following are instructions for performing such a build, as there is a
8 number of build configurations supported for the build. Note that for all
9 build configurations, the OpenType and Simple TrueType layout (fallback)
10 backends are enabled, and this is the base configuration that is built if no
11 options (see below) are specified. A 'clean' target is provided-it is recommended
12 that one cleans the build and redo the build if any configuration option changed.
13 An 'install' target is also provided to copy the built items in their appropriate
14 locations under $(PREFIX), which is described below.
15
16 Invoke the build by issuing the command:
17 nmake /f Makefile.vc CFG=[release|debug] [PREFIX=...] <option1=1 option2=1 ...>
18 where:
19
20 CFG: 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
24 PREFIX: 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
36 Explanation of options, set by <option>=1:
37 ------------------------------------------
38 GLIB: 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
42 GOBJECT: 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
47 INTROSPECTION: 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
55 FREETYPE: Enable the FreeType font callbacks. Requires the FreeType2 library.
56
57 CAIRO: Enable Cairo support. Requires the Cairo library.
58
59 CAIRO_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
64 GRAPHITE2: Enable the Graphite2 shaper, requires the SIL Graphite2 library.
65
66 ICU: Enables the build of ICU Unicode functions. Requires the ICU libraries.
67
68 UNISCRIBE: Enable Uniscribe platform shaper support.
69
70 DIRECTWRITE: 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
74 PYTHON: Full path to the Python interpretor to be used, if it is not in %PATH%.
75
76 PERL: Full path to the PERL interpretor to be used, if it is not in %PATH%.
77
78 LIBTOOL_DLL_NAME: Enable libtool-style DLL names.