Link libmedia and libtranslation on Haiku

The Haiku layer of clang-retro MFC now plays and records sound with the
Media Kit (BSoundPlayer, BMediaRecorder) and reads images with the
Translation Kit. The Haiku build failed to link without these two
libraries. libmfc's own CMake package links the same libraries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSTXLQB5LNVgAJbEoU
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
This commit is contained in:
Neo-DesktopandClaude Opus 5.5 committed 2026-11-29 14:02:50 +00:00
1 parent 4ba0bb7f32
commit efbbd54a84
1 file changed
+5 -4
+5 -4
View File
@@ -138,10 +138,11 @@ elseif(HAIKU)
# (the USB devices for Look for a modem, from the USB Kit:
# windows/src/ports_haiku.cpp, with Haiku's headers only)
target_sources(dmodem-win32 PRIVATE "${_win}/src/ports_haiku.cpp")
# (libbe: the Interface Kit; libdevice: the USB Kit; libnetwork: the
# sockets; libbsd: dl_iterate_phdr. libroot has the rest, dlopen and
# the threads too.)
target_link_libraries(dmodem-win32 PRIVATE be device network bsd)
# (libbe: the Interface Kit; libdevice: the USB Kit; libmedia: the
# sound of the layer (BSoundPlayer, BMediaRecorder); libtranslation:
# the images of the layer; libnetwork: the sockets; libbsd:
# dl_iterate_phdr. libroot has the rest, dlopen and the threads too.)
target_link_libraries(dmodem-win32 PRIVATE be device media translation network bsd)
else()
target_link_libraries(dmodem-win32 PRIVATE dl pthread)
endif()