Browse Source

uwp: do not link with windowsappcompat anymore

All contribs and VLC code have been cleaned to over time to only use proper
API calls available in UWP.
work/unnecessary-disc-string
Steve Lhomme 3 months ago
parent
commit
53ed98bf5e
  1. 1
      configure.ac
  2. 2
      extras/package/win32/build.sh
  3. 2
      meson.build

1
configure.ac

@ -480,7 +480,6 @@ AS_IF([test "${SYS}" = "mingw32"],[
AS_IF([test "${enable_winstore_app}" = "yes"], [
vlc_winstore_app=1
LIBCOM="-loleaut32"
LDFLAGS="${LDFLAGS} -lwindowsappcompat"
VLC_ADD_LIBS([libvlccore], [-lruntimeobject])
AC_LIBOBJ([gai_strerror])
],[])

2
extras/package/win32/build.sh

@ -318,7 +318,7 @@ if [ -n "$BUILD_UCRT" ]; then
if [ -n "$WINSTORE" ]; then
# trick to provide these libraries instead of -ladvapi32 -lshell32 -luser32 -lkernel32
sed -i -e "s/-ladvapi32/-lwindowsapp -lwindowsappcompat/" $NEWSPECFILE
sed -i -e "s/-ladvapi32/-lwindowsapp/" $NEWSPECFILE
sed -i -e "s/-lshell32//" $NEWSPECFILE
sed -i -e "s/-luser32//" $NEWSPECFILE
sed -i -e "s/-lkernel32//" $NEWSPECFILE

2
meson.build

@ -462,8 +462,6 @@ ucrt_version_test = '''
# Check if we are building for Windows Store
if get_option('winstore_app')
have_win_store = true
windowsappcompat_lib = cc.find_library('windowsappcompat')
add_project_dependencies(windowsappcompat_lib, language: ['c', 'cpp'])
else
have_win_desktop = true
endif

Loading…
Cancel
Save