From e9f9cf02071d5cbaaf3c0e59c344e58f506bd6fb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 18 Aug 2026 03:00:37 +0200 Subject: Enable ffmpeg_static by default in release builds to support gtx 1080 and older nvidia gpus --- meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index ffcadeb..14124d4 100644 --- a/meson.build +++ b/meson.build @@ -73,8 +73,15 @@ src += protocol_src cc = meson.get_compiler('c') m_dep = cc.find_library('m', required : true) +ffmpeg_static_option = get_option('ffmpeg_static') +if ffmpeg_static_option == 'auto' + ffmpeg_static = get_option('buildtype') == 'release' +else + ffmpeg_static = ffmpeg_static_option == 'true' +endif + # Overrides the libav* dependencies below with a statically linked ffmpeg built from source. -if get_option('ffmpeg_static') == true +if ffmpeg_static subproject('ffmpeg') add_project_arguments('-DGSR_FFMPEG_STATIC', language : 'c') endif -- cgit v1.2.3