[vlc-commits] configure: use WINSTORECOMPAT when building for Windows Store

Steve Lhomme git at videolan.org
Tue Mar 19 11:50:50 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 13 15:51:28 2019 +0100| [277b45efff01dcccd42f1e4943aa09297f99650e] | committer: Steve Lhomme

configure: use WINSTORECOMPAT when building for Windows Store

We may use some forbidden APIs that are actually usable via WindowsStoreCompat

GetACP in the core, for example.

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

 configure.ac | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index c878534912..b7b33f23e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -339,9 +339,13 @@ AS_IF([test "${SYS}" = "mingw32"],[
   AS_IF([test "${enable_winstore_app}" = "yes"], [
     vlc_winstore_app=1
     LIBCOM=""
-     VLC_ADD_LIBS([libvlccore], [-lruntimeobject])
-     AC_LIBOBJ([gai_strerror])
-    ],[])
+    AX_APPEND_FLAG([-DWINSTORECOMPAT],[CFLAGS])
+    AX_APPEND_FLAG([-DWINSTORECOMPAT],[CPPFLAGS])
+    AX_APPEND_FLAG([-DWINSTORECOMPAT],[CXXFLAGS])
+    AX_APPEND_FLAG([-lwinstorecompat], [LDFLAGS])
+    VLC_ADD_LIBS([libvlccore], [-lruntimeobject])
+    AC_LIBOBJ([gai_strerror])
+  ],[])
   AC_SUBST([LIBCOM])
   ])
 AC_DEFINE_UNQUOTED(VLC_WINSTORE_APP, ${vlc_winstore_app}, [Define to 1 if you want to build for Windows Store apps])



More information about the vlc-commits mailing list