build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
# NMake Makefile portion for enabling features for Windows builds
|
|
|
|
|
|
|
|
# You may change these lines to customize the .lib files that will be linked to
|
|
|
|
# Additional Libraries for building HarfBuzz-ICU
|
|
|
|
# icudt.lib may be required for static ICU builds
|
|
|
|
HB_ICU_DEP_LIBS = icuuc.lib
|
|
|
|
|
|
|
|
# GLib is required for all utility programs and tests
|
|
|
|
HB_GLIB_LIBS = glib-2.0.lib
|
|
|
|
|
|
|
|
# Needed for building HarfBuzz-GObject
|
|
|
|
HB_GOBJECT_DEP_LIBS = gobject-2.0.lib $(HB_GLIB_LIBS)
|
|
|
|
|
|
|
|
# Freetype is needed for building FreeType support and hb-view
|
2016-10-18 11:00:00 +00:00
|
|
|
!if "$(CFG)" == "debug"
|
|
|
|
FREETYPE_LIB = freetyped.lib
|
|
|
|
!else
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
FREETYPE_LIB = freetype.lib
|
2016-10-18 11:00:00 +00:00
|
|
|
!endif
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
|
|
|
|
# Cairo is needed for building hb-view
|
|
|
|
CAIRO_LIB = cairo.lib
|
|
|
|
|
|
|
|
# Graphite2 is needed for building SIL Graphite2 support
|
|
|
|
GRAPHITE2_LIB = graphite2.lib
|
|
|
|
|
2016-10-09 05:36:05 +00:00
|
|
|
# Uniscribe is needed for Uniscribe shaping support
|
|
|
|
UNISCRIBE_LIB = usp10.lib gdi32.lib rpcrt4.lib user32.lib
|
|
|
|
|
2015-12-09 06:57:15 +00:00
|
|
|
# Directwrite is needed for DirectWrite shaping support
|
|
|
|
DIRECTWRITE_LIB = dwrite.lib
|
|
|
|
|
2017-06-21 14:19:57 +00:00
|
|
|
# Full path to Ragel state machine compiler if not already in PATH
|
|
|
|
!if "$(RAGEL)" == ""
|
|
|
|
RAGEL = ragel
|
|
|
|
!endif
|
|
|
|
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
# Please do not change anything beneath this line unless maintaining the NMake Makefiles
|
|
|
|
# Bare minimum features and sources built into HarfBuzz on Windows
|
|
|
|
HB_DEFINES =
|
|
|
|
HB_CFLAGS = /DHAVE_CONFIG_H
|
|
|
|
HB_UCDN_CFLAGS = /I..\src\hb-ucdn
|
|
|
|
HB_SOURCES = \
|
2017-04-05 09:21:23 +00:00
|
|
|
$(HB_BASE_sources) \
|
|
|
|
$(HB_BASE_RAGEL_GENERATED_sources) \
|
|
|
|
$(HB_FALLBACK_sources) \
|
|
|
|
$(HB_OT_sources) \
|
|
|
|
$(HB_OT_RAGEL_GENERATED_sources)
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
|
2017-04-06 10:44:28 +00:00
|
|
|
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
HB_HEADERS = \
|
|
|
|
$(HB_BASE_headers) \
|
|
|
|
$(HB_NODIST_headers) \
|
2016-10-09 05:36:05 +00:00
|
|
|
$(HB_OT_headers)
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
|
2017-06-21 14:19:57 +00:00
|
|
|
RAGEL_RAW_GEN_SRCS = $(HB_OT_RAGEL_GENERATED_sources) $(HB_BASE_RAGEL_GENERATED_sources)
|
|
|
|
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
# Minimal set of (system) libraries needed for the HarfBuzz DLL
|
2016-10-09 05:36:05 +00:00
|
|
|
HB_DEP_LIBS =
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
|
|
|
|
# We build the HarfBuzz DLL/LIB at least
|
|
|
|
HB_LIBS = $(CFG)\$(PLAT)\harfbuzz.lib
|
|
|
|
|
|
|
|
# Note: All the utility and test programs require GLib support to be present!
|
|
|
|
HB_UTILS =
|
|
|
|
HB_UTILS_DEP_LIBS = $(HB_GLIB_LIBS)
|
|
|
|
HB_TESTS =
|
|
|
|
HB_TESTS_DEP_LIBS = $(HB_GLIB_LIBS)
|
|
|
|
|
|
|
|
# Use libtool-style DLL names, if desired
|
|
|
|
!if "$(LIBTOOL_DLL_NAME)" == "1"
|
|
|
|
HARFBUZZ_DLL_FILENAME = $(CFG)\$(PLAT)\libharfbuzz-0
|
|
|
|
HARFBUZZ_GOBJECT_DLL_FILENAME = $(CFG)\$(PLAT)\libharfbuzz-gobject-0
|
|
|
|
!else
|
|
|
|
HARFBUZZ_DLL_FILENAME = $(CFG)\$(PLAT)\harfbuzz-vs$(VSVER)
|
|
|
|
HARFBUZZ_GOBJECT_DLL_FILENAME = $(CFG)\$(PLAT)\harfbuzz-gobject-vs$(VSVER)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Enable Introspection (enables HarfBuzz-Gobject as well)
|
|
|
|
!if "$(INTROSPECTION)" == "1"
|
|
|
|
GOBJECT = 1
|
|
|
|
CHECK_PACKAGE = gobject-2.0
|
|
|
|
EXTRA_TARGETS = $(CFG)\$(PLAT)\HarfBuzz-0.0.gir $(CFG)\$(PLAT)\HarfBuzz-0.0.typelib
|
|
|
|
!else
|
|
|
|
EXTRA_TARGETS =
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Enable HarfBuzz-GObject (enables GLib support as well)
|
|
|
|
!if "$(GOBJECT)" == "1"
|
|
|
|
GLIB = 1
|
|
|
|
HB_LIBS = \
|
|
|
|
$(HB_LIBS) \
|
|
|
|
$(CFG)\$(PLAT)\harfbuzz-gobject.lib
|
|
|
|
|
|
|
|
HB_GOBJECT_ENUM_GENERATED_SOURCES = \
|
|
|
|
$(CFG)\$(PLAT)\harfbuzz-gobject\hb-gobject-enums.cc \
|
|
|
|
$(CFG)\$(PLAT)\harfbuzz-gobject\hb-gobject-enums.h
|
|
|
|
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Enable cairo-ft (enables cairo and freetype as well)
|
|
|
|
!if "$(CAIRO_FT)" == "1"
|
|
|
|
HB_DEFINES = $(HB_DEFINES) /DHAVE_CAIRO_FT=1
|
|
|
|
CAIRO = 1
|
|
|
|
FREETYPE = 1
|
|
|
|
!if "$(GLIB)" == "1"
|
|
|
|
HB_UTILS = \
|
|
|
|
$(HB_UTILS) \
|
|
|
|
$(CFG)\$(PLAT)\hb-view.exe
|
|
|
|
|
|
|
|
HB_UTILS_DEP_LIBS = $(HB_UTILS_DEP_LIBS) $(CAIRO_LIB) $(FREETYPE_LIB)
|
|
|
|
!else
|
|
|
|
!if [echo Warning: GLib support not enabled, hb-view not built]
|
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Enable cairo
|
|
|
|
!if "$(CAIRO)" == "1"
|
|
|
|
HB_DEFINES = $(HB_DEFINES) /DHAVE_CAIRO=1
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Enable freetype if desired
|
|
|
|
!if "$(FREETYPE)" == "1"
|
2016-10-18 11:00:00 +00:00
|
|
|
!if "$(FREETYPE_DIR)" != ""
|
|
|
|
HB_CFLAGS = $(HB_CFLAGS) /I$(FREETYPE_DIR)
|
|
|
|
!endif
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
HB_DEFINES = $(HB_DEFINES) /DHAVE_FREETYPE=1
|
|
|
|
HB_SOURCES = $(HB_SOURCES) $(HB_FT_sources)
|
|
|
|
HB_HEADERS = $(HB_HEADERS) $(HB_FT_headers)
|
|
|
|
HB_DEP_LIBS = $(HB_DEP_LIBS) $(FREETYPE_LIB)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Enable graphite2 if desired
|
|
|
|
!if "$(GRAPHITE2)" == "1"
|
|
|
|
HB_DEFINES = $(HB_DEFINES) /DHAVE_GRAPHITE2=1
|
|
|
|
HB_SOURCES = $(HB_SOURCES) $(HB_GRAPHITE2_sources)
|
|
|
|
HB_HEADERS = $(HB_HEADERS) $(HB_GRAPHITE2_headers)
|
|
|
|
HB_DEP_LIBS = $(HB_DEP_LIBS) $(GRAPHITE2_LIB)
|
|
|
|
!endif
|
|
|
|
|
2017-02-23 05:02:49 +00:00
|
|
|
# Always enable UCDN unless explicitly disabled
|
|
|
|
!if "$(NO_UCDN)" != "1"
|
|
|
|
HB_DEFINES = $(HB_DEFINES) /DHAVE_UCDN=1
|
|
|
|
HB_CFLAGS = \
|
|
|
|
$(HB_CFLAGS) \
|
|
|
|
$(HB_UCDN_CFLAGS)
|
|
|
|
|
2017-02-24 09:47:44 +00:00
|
|
|
HB_SOURCES = $(HB_SOURCES) $(hb_ucdn_SRCS) $(HB_UCDN_sources)
|
2017-02-23 05:02:49 +00:00
|
|
|
!endif
|
|
|
|
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
# Enable GLib if desired
|
|
|
|
!if "$(GLIB)" == "1"
|
|
|
|
HB_DEFINES = $(HB_DEFINES) /DHAVE_GLIB=1
|
|
|
|
HB_CFLAGS = \
|
|
|
|
$(HB_CFLAGS) \
|
|
|
|
/FImsvc_recommended_pragmas.h \
|
|
|
|
/I$(PREFIX)\include\glib-2.0 \
|
|
|
|
/I$(PREFIX)\lib\glib-2.0\include
|
|
|
|
|
|
|
|
HB_SOURCES = $(HB_SOURCES) $(HB_GLIB_sources)
|
|
|
|
HB_HEADERS = $(HB_HEADERS) $(HB_GLIB_headers)
|
|
|
|
HB_DEP_LIBS = $(HB_DEP_LIBS) $(HB_GLIB_LIBS)
|
|
|
|
|
|
|
|
HB_UTILS = \
|
|
|
|
$(HB_UTILS) \
|
|
|
|
$(CFG)\$(PLAT)\hb-shape.exe \
|
|
|
|
$(CFG)\$(PLAT)\hb-ot-shape-closure.exe
|
|
|
|
|
|
|
|
HB_TESTS = \
|
|
|
|
$(HB_TESTS) \
|
|
|
|
$(CFG)\$(PLAT)\main.exe \
|
|
|
|
$(CFG)\$(PLAT)\test.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-buffer-serialize.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-size-params.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-would-substitute.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-blob.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-buffer.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-common.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-font.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-object.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-set.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-shape.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-unicode.exe \
|
|
|
|
$(CFG)\$(PLAT)\test-version.exe
|
|
|
|
|
2017-02-23 05:02:49 +00:00
|
|
|
!else
|
2017-04-06 10:44:28 +00:00
|
|
|
|
|
|
|
# Define some of the macros in GLib's msvc_recommended_pragmas.h
|
|
|
|
# to reduce some unneeded build-time warnings
|
|
|
|
HB_CFLAGS = \
|
|
|
|
$(HB_CFLAGS) \
|
|
|
|
/wd4244 \
|
|
|
|
/D_CRT_SECURE_NO_WARNINGS \
|
|
|
|
/D_CRT_NONSTDC_NO_WARNINGS
|
|
|
|
|
|
|
|
!endif
|
|
|
|
|
2017-02-23 05:02:49 +00:00
|
|
|
!if "$(ICU)" == "1"
|
2016-12-07 10:50:27 +00:00
|
|
|
# use ICU for Unicode functions
|
|
|
|
# and define some of the macros in GLib's msvc_recommended_pragmas.h
|
|
|
|
# to reduce some unneeded build-time warnings
|
|
|
|
HB_DEFINES = $(HB_DEFINES) /DHAVE_ICU=1 /DHAVE_ICU_BUILTIN=1
|
|
|
|
|
|
|
|
# We don't want ICU to re-define int8_t in VS 2008, will cause build breakage
|
|
|
|
# as we define it in hb-common.h, and we ought to use the definitions there.
|
|
|
|
!if "$(VSVER)" == "9"
|
|
|
|
HB_CFLAGS = $(HB_CFLAGS) /DU_HAVE_INT8_T
|
|
|
|
!endif
|
|
|
|
|
|
|
|
HB_SOURCES = $(HB_SOURCES) $(HB_ICU_sources)
|
|
|
|
HB_HEADERS = $(HB_HEADERS) $(HB_ICU_headers)
|
|
|
|
HB_DEP_LIBS = $(HB_DEP_LIBS) $(HB_ICU_DEP_LIBS)
|
2017-01-09 09:42:09 +00:00
|
|
|
!endif
|
|
|
|
|
2016-10-09 05:36:05 +00:00
|
|
|
!if "$(UNISCRIBE)" == "1"
|
|
|
|
HB_CFLAGS = $(HB_CFLAGS) /DHAVE_UNISCRIBE
|
|
|
|
HB_SOURCES = $(HB_SOURCES) $(HB_UNISCRIBE_sources)
|
|
|
|
HB_HEADERS = $(HB_HEADERS) $(HB_UNISCRIBE_headers)
|
|
|
|
HB_DEP_LIBS = $(HB_DEP_LIBS) $(UNISCRIBE_LIB)
|
|
|
|
!endif
|
|
|
|
|
2015-12-09 06:57:15 +00:00
|
|
|
!if "$(DIRECTWRITE)" == "1"
|
|
|
|
HB_CFLAGS = $(HB_CFLAGS) /DHAVE_DIRECTWRITE
|
|
|
|
HB_SOURCES = $(HB_SOURCES) $(HB_DIRECTWRITE_sources)
|
|
|
|
HB_HEADERS = $(HB_HEADERS) $(HB_DIRECTWRITE_headers)
|
|
|
|
HB_DEP_LIBS = $(HB_DEP_LIBS) $(DIRECTWRITE_LIB)
|
|
|
|
!endif
|
|
|
|
|
build: Support Visual Studio builds using NMake
This adds a set of NMake Makefiles that can be used to build HarfBuzz, from
the standard basic build building the minimal HarfBuzz DLL (consisting
of OpenType, fallback and Uniscribe support only), to a full fledged build
consisting of GLib and FreeType support, as well as building the utilities,
the test programs in src/ and test/api, and HarfBuzz-ICU and
HarfBuzz-GObject, and up to building the introspection files. This means a
flexible build mechanism is supported here, so anything that is supported
for a Windows build (code-wise), should all be supported by this build
system.
As in an earlier commit, the source listings are shared with the autotools
builds with the various Makefile.sources in src/, src/hb-ucdn and util/, and
this set of NMake Makefiles will transform these lists into the form they
want.
In the current form, all the test programs in test/api pass, and this has
been checked successfully with 'make -j8 distcheck'.
2015-11-03 11:00:42 +00:00
|
|
|
HB_LIB_CFLAGS = $(HB_CFLAGS) /DHB_EXTERN="__declspec (dllexport) extern"
|