diff -r 59343ae4491c frontend/Makefile.am --- a/frontend/Makefile.am Thu Dec 07 21:24:57 2017 +0100 +++ b/frontend/Makefile.am Thu Dec 07 23:03:28 2017 +0100 @@ -32,6 +32,8 @@ -I$(top_srcdir)/gnulib/src \ $(FREETYPE_CPPFLAGS) LDADD = $(top_builddir)/lib/libttfautohint.la \ + $(top_builddir)/lib/libsds.la \ + $(top_builddir)/lib/libnumberset.la \ $(top_builddir)/gnulib/src/libgnu.la \ $(LTLIBINTL) \ $(LTLIBTHREAD) \ diff -r 59343ae4491c lib/Makefile.am --- a/lib/Makefile.am Thu Dec 07 21:24:57 2017 +0100 +++ b/lib/Makefile.am Thu Dec 07 23:03:28 2017 +0100 @@ -10,6 +10,10 @@ # The file `COPYING' mentioned in the previous paragraph is distributed # with the ttfautohint library. +ABI_CURRENT=1 +ABI_REVISION=0 +ABI_AGE=0 + AM_CPPFLAGS = -I$(top_builddir)/gnulib/src \ -I$(top_srcdir)/gnulib/src \ $(FREETYPE_CPPFLAGS) \ @@ -17,8 +21,13 @@ noinst_LTLIBRARIES = \ libsds.la \ - libnumberset.la \ - libttfautohint.la + libnumberset.la + +lib_LTLIBRARIES = libttfautohint.la + +include_HEADERS = ttfautohint.h ttfautohint-errors.h + +libttfautohint_la_LDFLAGS = -no-undefined -version-info $(ABI_CURRENT):$(ABI_REVISION):$(ABI_AGE) libsds_la_SOURCES = \ sds-wrapper.c sds.h @@ -81,8 +90,8 @@ ttfautohint-scripts.h ttfautohint-coverages.h libttfautohint_la_LIBADD = \ - libsds.la \ - libnumberset.la \ + ${noinst_LTLIBRARIES} \ + $(top_builddir)/gnulib/src/libgnu.la \ $(LIBM) \ $(FREETYPE_LIBS) \ $(HARFBUZZ_LIBS) diff -r 59343ae4491c lib/ttfautohint.c --- a/lib/ttfautohint.c Thu Dec 07 21:24:57 2017 +0100 +++ b/lib/ttfautohint.c Thu Dec 07 23:03:28 2017 +0100 @@ -40,7 +40,7 @@ } -TA_Error +LT_LIB_EXPORT TA_Error TTF_autohint(const char* options, ...) { diff -r 59343ae4491c lib/ttfautohint.h --- a/lib/ttfautohint.h Thu Dec 07 21:24:57 2017 +0100 +++ b/lib/ttfautohint.h Thu Dec 07 23:03:28 2017 +0100 @@ -19,6 +19,17 @@ #include #include +#ifdef _WIN32 + #ifdef DLL_EXPORT + #define LT_LIB_EXPORT __declspec(dllexport) + #elif defined(DLL_IMPORT) + #define LT_LIB_EXPORT __declspec(dllimport) + #endif +#endif +#ifndef LT_LIB_EXPORT + #define LT_LIB_EXPORT +#endif + #ifdef __cplusplus extern "C" { #endif @@ -593,7 +604,7 @@ * ```C */ -TA_Error +LT_LIB_EXPORT TA_Error TTF_autohint(const char* options, ...);