[vlc-commits] [Git][videolan/vlc][master] 27 commits: win32: thread: use the SetThreadDescription from the linked DLL.

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat May 27 07:38:06 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
ca8eb726 by Steve Lhomme at 2023-05-27T06:17:11+00:00
win32: thread: use the SetThreadDescription from the linked DLL.

If the minimum version we support is Win10 RS1, the function is always available.
We don't need to load it dynamically which is not supported in UWP.

- - - - -
dc840f2b by Steve Lhomme at 2023-05-27T06:17:11+00:00
d3d11: don't load d3d11_1sdklayers.dll in UWP

We can't do that. We can't tell if the debug DLLs are present so we don't
enable debugging in this case.

- - - - -
5348fe9f by Steve Lhomme at 2023-05-27T06:17:11+00:00
vlc_fixups: fix bogus HAVE_GETPID detection in UWP

autoconf detects it but we're not supposed to call it.

- - - - -
a153e259 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: mingw64: update to version 11.0.0

- - - - -
826f28e5 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: mingw64: patch headers to allow more API's in UWP

* fileapi.h to allow GetFileInformationByHandle in UWP
Unlike all the documentation says, it's allowed in the SDK.
* memoryapi.h for VirtualAlloc

- - - - -
e659f018 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: orc: use VirtualAlloc in UWP builds

It's now allowed. We just need the mingw-w64 patch.

Reverts dc6a6a5390846871dbb231768066cd754ffcb1a9.

- - - - -
c133bc4b by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: taglib: enable WinRT option in winstore mode

This triggers the use of CreateFile2 instead of CreateFileW.

- - - - -
06cfac96 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: libdsm: fix getpid usage in winstore builds

- - - - -
bc1916ca by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: medialibrary: fix CreateFileW usage in winstore builds

- - - - -
7c23d2b5 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: iconv: avoid more forbidden UWP calls in gnulib

- - - - -
c5447f81 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: gnutls: avoid more forbidden UWP calls in gnulib

- - - - -
0d883114 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: ffmpeg: fix thread callback signature in UWP

- - - - -
9ed0606c by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: flac: avoid more forbidden UWP calls

- - - - -
3379e658 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: libtasn1: avoid more forbidden UWP calls in gnulib

- - - - -
a1c663c1 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: gpg-error: always apply Windows patches

They only apply to Windows specific code and are safe for all Windows versions.

- - - - -
156b76ba by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: gpg-error: avoid more forbidden UWP calls in gnulib

- - - - -
cfd40b3f by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: gcrypt: avoid getpid calls on Windows

It's not available in UWP.

- - - - -
5c6c69fa by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: shout: avoid getpid calls on Windows

It's not available in UWP.

- - - - -
90da32be by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: libarchive: update WinRT patch

* use bcrypt instead of wincrypt
* use CreateFile2 instead of CreateFileW

- - - - -
6ab7c475 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: librist: use bcrypt in Vista+

- - - - -
251b1d62 by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: librist: don't force the target Windows version

- - - - -
9b765a1d by Steve Lhomme at 2023-05-27T06:17:11+00:00
directx_va: fix build without D3D9 and mingw-w64 11

- - - - -
36129d51 by Steve Lhomme at 2023-05-27T06:17:11+00:00
package/win32: don't force windowsappcompat in contribs

It's already done in contrib/main.mak and should be removed from there.

- - - - -
98598ce9 by Steve Lhomme at 2023-05-27T06:17:11+00:00
package/win32: fix UWP warnings when forcing windowsapp linking

When files are compiled they don't use the linker part and clang emits a warning.
Some contribs like libvpx use -Werror and won't build if there's anything
extra in the command-line.

- - - - -
36e2200a by Steve Lhomme at 2023-05-27T06:17:11+00:00
contrib: don't force winstorecompat anymore

It seems we don't need it as it's linking properly without. The missing will
trigger warnings are linking problems on forbidden API's.

- - - - -
a54f5ed6 by Steve Lhomme at 2023-05-27T06:17:11+00:00
CI: update LLVM UCRT Docker Image

It contains mingw-w64 11 which has an internal SSP code.

- - - - -
d467e95c by Steve Lhomme at 2023-05-27T06:17:11+00:00
do not use the WINSTORECOMPAT define for VLC sources

We don't need this hack anymore. We call the proper API's available in
UWP when needed.

However we still need to link with windowsappcompat as libunwind is calling
RtlRestoreContext(), regardless if we're building for UWP or not.

- - - - -


30 changed files:

- configure.ac
- + contrib/src/ffmpeg/0001-w32pthread-fix-signature-of-WinRT-version-of-thread-.patch
- contrib/src/ffmpeg/rules.mak
- + contrib/src/flac/0001-Fixed-compilation-of-get_utf8_argv-for-Windows-UWP.patch
- contrib/src/flac/rules.mak
- + contrib/src/gcrypt/gcrypt-uwp-getpid.patch
- contrib/src/gcrypt/rules.mak
- contrib/src/gnutls/0001-Use-CreateFile2-in-UWP-builds.patch
- contrib/src/gnutls/rules.mak
- + contrib/src/gpg-error/gpg-error-createfile2.patch
- + contrib/src/gpg-error/gpg-error-uwp-GetFileSize.patch
- contrib/src/gpg-error/rules.mak
- contrib/src/iconv/0001-Use-CreateFile2-in-UWP-builds.patch
- contrib/src/iconv/rules.mak
- − contrib/src/libarchive/libarchive-winstorecompat-crypt.patch
- contrib/src/libarchive/rules.mak
- contrib/src/libarchive/winrt.patch
- + contrib/src/libdsm/0001-use-GetCurrentProcessId-for-the-process-ID-on-Window.patch
- contrib/src/libdsm/rules.mak
- + contrib/src/librist/0001-Use-bcrypt-on-Windows-Vista.patch
- + contrib/src/librist/0001-meson-don-t-force-the-Windows-version-if-it-s-higher.patch
- contrib/src/librist/rules.mak
- contrib/src/libtasn1/0001-Use-CreateFile2-in-UWP-builds.patch
- contrib/src/libtasn1/rules.mak
- contrib/src/main.mak
- + contrib/src/medialibrary/0001-LockFile-favor-CreateFile2-over-CreateFileW.patch
- contrib/src/medialibrary/rules.mak
- − contrib/src/mingw64/0001-headers-Update-to-Wine-master-and-regenerate-H-from-.patch
- + contrib/src/mingw64/0001-headers-enable-GetFileInformationByHandle-in-Win10-U.patch
- + contrib/src/mingw64/0001-headers-enable-VirtualAlloc-Ex-in-Win10-UWP-builds.patch


The diff was not included because it is too large.


View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/fef56a22e50eaed6b9b6d0b6a408d52bdbaea47e...d467e95c659d5d61de56679ea18030857def17f0

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/fef56a22e50eaed6b9b6d0b6a408d52bdbaea47e...d467e95c659d5d61de56679ea18030857def17f0
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list