aboutsummaryrefslogtreecommitdiffhomepage
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build12
1 files changed, 10 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 5a514fe..ae02d56 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('gpu-screen-recorder', 'c', version : '6.0.0', default_options : ['c_std=gnu11', 'warning_level=2'])
+project('gpu-screen-recorder', 'c', version : '6.0.1', default_options : ['c_std=gnu11', 'warning_level=2'])
add_project_arguments('-Wshadow', language : 'c')
if get_option('buildtype') == 'debug'
@@ -73,9 +73,17 @@ 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
dep = [