[vlc-commits] Win32: do not build GDI for text_renderers in WinRT

Jean-Baptiste Kempf git at videolan.org
Fri Nov 21 14:58:00 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Nov 21 14:23:20 2014 +0100| [3e74244969b8d0a1fafb504c50ee334fcc38660b] | committer: Jean-Baptiste Kempf

Win32: do not build GDI for text_renderers in WinRT

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e74244969b8d0a1fafb504c50ee334fcc38660b
---

 configure.ac |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 134a450..0ed207f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,7 +259,6 @@ case "${host_os}" in
         LDFLAGS="${LDFLAGS} -Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase"
 
         VLC_ADD_LDFLAGS([vlc],[-mwindows])
-        VLC_ADD_LIBS([win32text],[-lgdi32])
         AC_CHECK_PROGS(U2D, [unix2dos todos], unix2dos)
         ac_default_prefix="`pwd`/_win32"
         DESTDIR="`pwd`/_win32/"
@@ -512,6 +511,7 @@ AS_IF([test "${SYS}" = "mingw32"],[
     vlc_winstore_app=1
      VLC_ADD_LIBS([libvlccore], [-lole32 -lruntimeobject])
     ],[
+     VLC_ADD_LIBS([win32text],[-lgdi32])
      VLC_ADD_LIBS([libvlccore],[-lwinmm])
     ])
   ])
@@ -3309,7 +3309,9 @@ if test "${enable_freetype}" != "no"; then
             ],[AC_MSG_WARN([library fontconfig not found. Styles will be disabled in freetype])])
           fi
       else
-          VLC_ADD_LIBS([freetype],[-lgdi32])
+          AS_IF([test "$vlc_winstore_app" != "1"],[
+            VLC_ADD_LIBS([freetype],[-lgdi32])
+          ])
       fi
 
       dnl fribidi support



More information about the vlc-commits mailing list