summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-09-15 16:51:44 +0200
committerDudemanguy <random342@airmail.cc>2023-09-29 20:48:58 +0000
commitd2630877132edac876779ff31ae61685f09199c4 (patch)
tree507567b9d862cf521961c3b65bb8b381f194f9c6 /test
parentd0e4eabb4ea27fdaa469df8af17c8ed1cda50501 (diff)
downloadmpv-d2630877132edac876779ff31ae61685f09199c4.tar.bz2
mpv-d2630877132edac876779ff31ae61685f09199c4.tar.xz
meson: don't link pthreads when internal impl is used
Diffstat (limited to 'test')
-rw-r--r--test/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/meson.build b/test/meson.build
index 82e89aec52..d5d567caa1 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -31,6 +31,9 @@ test_utils_files = [
'ta/ta_talloc.c',
'ta/ta_utils.c'
]
+
+test_utils_deps = [libavutil, libm]
+
# The zimg code requires using threads. On windows, threads
# also requires timer code so this is added.
if features['win32-internal-pthreads']
@@ -39,9 +42,10 @@ if features['win32-internal-pthreads']
'osdep/timer-win2.c',
'osdep/win32/pthread.c',
'osdep/windows_utils.c']
+else
+ test_utils_deps += pthreads
endif
-test_utils_deps = [libavutil, libm, pthreads]
if features['win32-desktop']
test_utils_deps += cc.find_library('winmm')
endif