[vlc-devel] [PATCH 2/2] configure: use WINSTORECOMPAT when building for Windows Store
Steve Lhomme
robux4 at ycbcr.xyz
Mon Mar 18 15:39:13 CET 2019
We may use some forbidden APIs that are actually usable via WindowsStoreCompat
GetACP in the core, for example.
---
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])
--
2.17.1
More information about the vlc-devel
mailing list