[mingw] Build with directwrite if available

This commit is contained in:
Behdad Esfahbod 2022-06-26 13:30:11 -06:00
parent 65b066f18e
commit ea5131507a
2 changed files with 3 additions and 1 deletions

View File

@ -374,7 +374,7 @@ if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
fi fi
if $have_directwrite; then if $have_directwrite; then
DIRECTWRITE_CXXFLAGS= DIRECTWRITE_CXXFLAGS=
DIRECTWRITE_LIBS= DIRECTWRITE_LIBS=-ldwrite
AC_SUBST(DIRECTWRITE_CXXFLAGS) AC_SUBST(DIRECTWRITE_CXXFLAGS)
AC_SUBST(DIRECTWRITE_LIBS) AC_SUBST(DIRECTWRITE_LIBS)
AC_DEFINE(HAVE_DIRECTWRITE, 1, [Have DirectWrite library]) AC_DEFINE(HAVE_DIRECTWRITE, 1, [Have DirectWrite library])

View File

@ -24,5 +24,7 @@ exec "$(dirname "$0")"/configure \
PKG_CONFIG_PATH=$HOME/.local/$target/share/pkgconfig:/usr/$target/sys-root/mingw/share/pkgconfig/ \ PKG_CONFIG_PATH=$HOME/.local/$target/share/pkgconfig:/usr/$target/sys-root/mingw/share/pkgconfig/ \
PATH=$HOME/.local/$target/bin:/usr/$target/sys-root/mingw/bin:/usr/$target/bin:$PATH \ PATH=$HOME/.local/$target/bin:/usr/$target/sys-root/mingw/bin:/usr/$target/bin:$PATH \
--without-icu \ --without-icu \
--with-gdi \
--with-uniscribe \ --with-uniscribe \
--with-directwrite=auto \
"$@" "$@"