diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2021-09-18 03:04:15 +0300 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2021-09-18 03:04:15 +0300 |
commit | 643829edd8408ec37182a04040fe5a7bf54dccc3 (patch) | |
tree | 0e9fbade7f723999b3a294f5093395c494b95af0 | |
parent | 8f95b1a2b15568bd6a78e96e4ef21c6a3749bbef (diff) | |
download | libass-643829edd8408ec37182a04040fe5a7bf54dccc3.tar.bz2 libass-643829edd8408ec37182a04040fe5a7bf54dccc3.tar.xz |
configure: add Core Text and DirectWrite to Libs.private
Fixes https://github.com/libass/libass/issues/211.
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 89d5eb0..6ae78a1 100644 --- a/configure.ac +++ b/configure.ac @@ -126,6 +126,7 @@ AS_IF([test "x$enable_coretext" != xno], [ [[CTFontDescriptorCopyAttribute(NULL, kCTFontURLAttribute);]] ) ], [ + pkg_libs="$pkg_libs -framework ApplicationServices -framework CoreFoundation" LIBS="$LIBS -framework ApplicationServices -framework CoreFoundation" AC_DEFINE(CONFIG_CORETEXT, 1, [found CoreText in ApplicationServices framework]) coretext=true @@ -137,6 +138,7 @@ AS_IF([test "x$enable_coretext" != xno], [ [[CTFontDescriptorCopyAttribute(NULL, kCTFontURLAttribute);]] ) ], [ + pkg_libs="$pkg_libs -framework CoreText -framework CoreFoundation" LIBS="$LIBS -framework CoreText -framework CoreFoundation" AC_DEFINE(CONFIG_CORETEXT, 1, [found CoreText framework]) coretext=true @@ -171,12 +173,14 @@ AS_IF([test "x$enable_directwrite" != xno], [ ], [ # WinRT/UWP/app build: GDI and LoadLibrary are # unavailable, but DirectWrite is always present + pkg_libs="$pkg_libs -ldwrite" LIBS="$LIBS -ldwrite" AC_DEFINE(CONFIG_DIRECTWRITE, 1, [found DirectWrite (WinRT/UWP)]) AC_MSG_RESULT([no]) ], [ # Win32/desktop build: GDI is always present; # DirectWrite is optional but can be loaded via LoadLibrary + pkg_libs="$pkg_libs -lgdi32" LIBS="$LIBS -lgdi32" AC_DEFINE(CONFIG_DIRECTWRITE, 1, [found DirectWrite and GDI (Win32)]) AC_MSG_RESULT([yes]) |