test/meson: remove unneded sources

This commit is contained in:
Kacper Michajłow 2024-05-22 03:40:05 +02:00
parent 8f220067df
commit 0c716e762f
2 changed files with 7 additions and 15 deletions

View File

@ -412,9 +412,9 @@ endif
if posix if posix
path_source = files('osdep/path-unix.c') path_source = files('osdep/path-unix.c')
if cc.has_function('fork', prefix : '#include <unistd.h>') if cc.has_function('fork', prefix : '#include <unistd.h>')
subprocess_source = files('osdep/subprocess-posix.c') sources += files('osdep/subprocess-posix.c')
else else
subprocess_source = files('osdep/subprocess-dummy.c') sources += files('osdep/subprocess-dummy.c')
endif endif
sources += files('input/ipc-unix.c', sources += files('input/ipc-unix.c',
'osdep/poll_wrapper.c', 'osdep/poll_wrapper.c',
@ -486,7 +486,6 @@ features += {'uwp': uwp.found()}
if features['uwp'] if features['uwp']
dependencies += uwp dependencies += uwp
path_source = files('osdep/path-uwp.c') path_source = files('osdep/path-uwp.c')
subprocess_source = []
endif endif
features += {'win32-executable': win32 and get_option('cplayer')} features += {'win32-executable': win32 and get_option('cplayer')}
@ -514,9 +513,9 @@ if features['win32-desktop']
cc.find_library('version')] cc.find_library('version')]
dependencies += win32_desktop_libs dependencies += win32_desktop_libs
path_source = files('osdep/path-win.c') path_source = files('osdep/path-win.c')
subprocess_source = files('osdep/subprocess-win.c')
sources += files('input/ipc-win.c', sources += files('input/ipc-win.c',
'osdep/language-win.c', 'osdep/language-win.c',
'osdep/subprocess-win.c',
'osdep/terminal-win.c', 'osdep/terminal-win.c',
'video/out/w32_common.c', 'video/out/w32_common.c',
'video/out/win32/displayconfig.c', 'video/out/win32/displayconfig.c',
@ -526,8 +525,8 @@ if features['win32-desktop']
endif endif
if not posix and not features['win32-desktop'] if not posix and not features['win32-desktop']
subprocess_source = files('osdep/subprocess-dummy.c')
sources += files('input/ipc-dummy.c', sources += files('input/ipc-dummy.c',
'osdep/subprocess-dummy.c',
'osdep/terminal-dummy.c') 'osdep/terminal-dummy.c')
endif endif
@ -573,7 +572,7 @@ vector = get_option('vector').require(
) )
features += {'vector': vector.allowed()} features += {'vector': vector.allowed()}
sources += path_source + subprocess_source + timer_source sources += path_source + timer_source
# various file generations # various file generations

View File

@ -4,10 +4,8 @@ outdir = join_paths(build_root, 'test', 'out')
refdir = '' refdir = ''
# Convenient testing libraries. An adhoc collection of # Convenient testing libraries. An adhoc collection of
# mpv objects that test_utils.c needs. Paths and subprocesses # mpv objects that test_utils.c needs. Stuff will probably
# are required in order to run a diff command when comparing # break if core things are carelessly moved around.
# different files. Stuff will probably break if core things are
# carelessly moved around.
test_utils_args = [] test_utils_args = []
test_utils_files = [ test_utils_files = [
'audio/chmap.c', 'audio/chmap.c',
@ -24,13 +22,9 @@ test_utils_files = [
'options/m_config_core.c', 'options/m_config_core.c',
'options/m_config_frontend.c', 'options/m_config_frontend.c',
'options/m_option.c', 'options/m_option.c',
'options/path.c',
'osdep/io.c', 'osdep/io.c',
'osdep/subprocess.c',
'osdep/timer.c', 'osdep/timer.c',
timer_source, timer_source,
path_source,
subprocess_source,
'ta/ta.c', 'ta/ta.c',
'ta/ta_talloc.c', 'ta/ta_talloc.c',
'ta/ta_utils.c' 'ta/ta_utils.c'
@ -70,7 +64,6 @@ img_utils_files = [
'video/fmt-conversion.c', 'video/fmt-conversion.c',
'video/img_format.c', 'video/img_format.c',
'video/mp_image.c', 'video/mp_image.c',
'video/out/placebo/utils.c',
'video/sws_utils.c' 'video/sws_utils.c'
] ]
if features['zimg'] if features['zimg']