Skip to content

Commit 5f1ca1a

Browse files
committed
fix: fix missing libraries on switch cross build
1 parent 5d1af66 commit 5f1ca1a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

tools/dependencies/meson.build

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,23 @@ if build_application
386386
error('only embedded ffmpeg is supported in cross builds')
387387
endif
388388

389+
ffmpeg_dep_names = [
390+
'avutil',
391+
'avcodec',
392+
'avformat',
393+
'avfilter',
394+
'swscale',
395+
]
396+
389397
if host_machine.system() == 'android'
390398
ffmpeg_can_be_supported = true
391399

392400
elif host_machine.system() == 'switch'
393401
ffmpeg_can_be_supported = true
402+
ffmpeg_dep_names += [
403+
'dav1d',
404+
'swresample',
405+
]
394406
elif host_machine.system() == '3ds'
395407
ffmpeg_can_be_supported = false
396408
else
@@ -405,13 +417,6 @@ if build_application
405417
replay_video_rendering_enabled = false
406418
else
407419

408-
ffmpeg_dep_names = [
409-
'avutil',
410-
'avcodec',
411-
'avformat',
412-
'avfilter',
413-
'swscale',
414-
]
415420
ffmpeg_deps = []
416421
found_all_ffmpeg_deps = true
417422

0 commit comments

Comments
 (0)