From a888b3a7071b419ccb32cbea1921b986065b7ede Mon Sep 17 00:00:00 2001
From: Max Kellermann <max.kellermann@gmail.com>
Date: Fri, 22 Dec 2023 18:01:29 +0100
Subject: [PATCH] decoder/plugins/meson.build: add missing dependency to
 libid3tag

---
 src/decoder/plugins/meson.build | 4 ++++
 test/meson.build                | 1 +
 2 files changed, 5 insertions(+)

diff --git a/src/decoder/plugins/meson.build b/src/decoder/plugins/meson.build
index bb874b1f6..5b1ef46a9 100644
--- a/src/decoder/plugins/meson.build
+++ b/src/decoder/plugins/meson.build
@@ -1,6 +1,7 @@
 decoder_plugins_sources = [
   'PcmDecoderPlugin.cxx',
 ]
+decoder_plugins_dependencies = []
 
 if get_option('dsd')
   decoder_plugins_sources += [
@@ -8,6 +9,7 @@ if get_option('dsd')
     'DsfDecoderPlugin.cxx',
     'DsdLib.cxx',
   ]
+  decoder_plugins_dependencies += libid3tag_dep
 endif
 
 if ffmpeg_dep.found()
@@ -90,6 +92,7 @@ libmad_dep = c_compiler.find_library('mad', required: get_option('mad'))
 decoder_features.set('ENABLE_MAD', libmad_dep.found())
 if libmad_dep.found()
   decoder_plugins_sources += 'MadDecoderPlugin.cxx'
+  decoder_plugins_dependencies += libid3tag_dep
 endif
 
 libmikmod_dep = dependency('libmikmod', version: '>= 3.2', required: get_option('mikmod'))
@@ -166,6 +169,7 @@ decoder_plugins = static_library(
   decoder_plugins_sources,
   include_directories: inc,
   dependencies: [
+    decoder_plugins_dependencies,
     adplug_dep,
     ffmpeg_dep,
     flac_dep,
diff --git a/test/meson.build b/test/meson.build
index 80d848c2a..7ff5b72d2 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -468,6 +468,7 @@ if libid3tag_dep.found()
       tag_dep,
       input_glue_dep,
       archive_glue_dep,
+      libid3tag_dep,
     ],
   )
 endif