Files
AnyPS5/core/libs/prx/libSceAudiodec/AudiodecLibrary.cmake
T
PacukaandClaude Opus 5.5 b06278d96c fix(audiodec): build libSceAudiodec.native from the libSceAudiodec sources
Titles that link the native module (The Smurfs Dreams imports
sceAudiodecClearContext and the other decoder exports from
libSceAudiodec.native) found only the dummy export there. Both modules
are now built from the same sources, as libSceFont and libSceAvPlayer
already do for their native modules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 17:48:38 +02:00

15 lines
573 B
CMake

function(add_sce_audiodec_library target)
set(audiodecDir ${CMAKE_CURRENT_FUNCTION_LIST_DIR})
add_library(${target} SHARED EXCLUDE_FROM_ALL
${audiodecDir}/Export.cpp
${audiodecDir}/src/Codecs.cpp
)
target_include_directories(${target} PRIVATE
${LIBS_INCLUDE_DIR}
${CMAKE_SOURCE_DIR}/3rdparty/LibAtrac9/C/src
)
target_link_libraries(${target} PRIVATE atrac9 ffmpeg libc libkernel)
set_target_properties(${target} PROPERTIES CXX_EXTENSIONS OFF)
configure_windows_unwind(${target})
endfunction()