From a85efa64f02f3dbdf119b841a0d3a0c24986cee4 Mon Sep 17 00:00:00 2001 From: llyyr Date: Sun, 11 Feb 2024 01:14:46 +0530 Subject: [PATCH] meson: set default options for libplacebo if using subproject This will prevent building demos and link statically with libplacebo by default if system libplacebo is not found or isn't new enough and a sufficiently new enough libplacebo exists in `subprojects/libplacebo`. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 8c7730f6b8..b564459e09 100644 --- a/meson.build +++ b/meson.build @@ -23,7 +23,8 @@ libavutil = dependency('libavutil', version: '>= 56.70.100') libswresample = dependency('libswresample', version: '>= 3.9.100') libswscale = dependency('libswscale', version: '>= 5.9.100') -libplacebo = dependency('libplacebo', version: '>=6.338.2') +libplacebo = dependency('libplacebo', version: '>=6.338.2', + default_options: ['default_library=static', 'demos=false']) libass = dependency('libass', version: '>= 0.12.2')