aboutsummaryrefslogtreecommitdiffhomepage
path: root/meson.build
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2026-08-18 03:00:37 +0200
committerdec05eba <dec05eba@protonmail.com>2026-08-18 03:00:37 +0200
commite9f9cf02071d5cbaaf3c0e59c344e58f506bd6fb (patch)
tree5e9a28bf9aa56bf205d3051488ccf367c3c37000 /meson.build
parent795685ceb5eda9e2a0007619d7e4b5de30773d43 (diff)
Enable ffmpeg_static by default in release builds to support gtx 1080 and older nvidia gpus
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 8 insertions, 1 deletions
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