mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
0b26ca0c6e
We need the Windows 11 SDK for Windows Graphics Capture API support, which will be enabled at runtime based on feature availability on Windows, so should work correctly on Windows 8, 8.1, 10, and 11. However, if we enable it in the VS 2019 installer, it will install both Windows 10 SDK (required) and Windows 11 SDK (optional), which will bloat the image by 3GB or more. So just move to VS 2022 for the Windows images, which requires only the Windows 11 SDK. Had to remove the UWP build tools because they were causing the installation to fail, likely due to an installer bug. We don't need UWP anymore anyway. We just need the ARM64 build tools for the cross-arm64 monorepo build. Also stop installing into C:\BuildTools and let Meson pick the install up with --vsenv. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4939>
26 lines
1 KiB
INI
26 lines
1 KiB
INI
[constants]
|
|
# Forcibly link to x64 libs when using native linker, otherwise the LIB
|
|
# variable in the env will cause link.exe to pick up libs from the cross
|
|
# msvc libdir. A better fix might be to use a wrapper script that calls
|
|
# link.exe inside the correct VS environment for x64.
|
|
msvc_x64_libs = [msvc_x64_libdir / 'msvcrt.lib', msvc_x64_libdir / 'msvcrtd.lib', msvc_x64_libdir / 'vcruntime.lib', msvc_x64_libdir / 'oldnames.lib', wk_x64_crt_libdir / 'ucrt.lib']
|
|
|
|
[host_machine]
|
|
system = 'windows'
|
|
cpu_family = 'x86_64'
|
|
cpu = 'x86_64'
|
|
endian = 'little'
|
|
|
|
[built-in options]
|
|
# Ensure that x64 libs are used for linking even when we're inside, say, an
|
|
# arm64 VS environment
|
|
c_link_args = ['/LIBPATH:' + wk_x64_libdir] + msvc_x64_libs
|
|
cpp_link_args = ['/LIBPATH:' + wk_x64_libdir] + msvc_x64_libs
|
|
|
|
[binaries]
|
|
lib = msvc_x64_bindir / 'lib.exe'
|
|
c = msvc_x64_bindir / 'cl.exe'
|
|
c_ld = msvc_x64_bindir / 'link.exe'
|
|
cpp = msvc_x64_bindir / 'cl.exe'
|
|
cpp_ld = msvc_x64_bindir / 'link.exe'
|
|
pkgconfig = 'false'
|