sim/alsa: Use bundled codec headers.

Expose the bundled LAME and libmad headers to the sim:alsa arch target and include LAME through its installed public header name. This lets the CMake build compile sim_offload.c without relying on host codec development packages.

Assisted-by: Zed:GPT-5.6 Terra
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
This commit is contained in:
Marco Casaroli 2026-07-26 09:48:37 +02:00 committed by Xiang Xiao
parent 5ecdf31364
commit 3b1aea4bb0
2 changed files with 4 additions and 1 deletions

View file

@ -137,6 +137,9 @@ if(CONFIG_SIM_SOUND_ALSA)
list(APPEND SRCS posix/sim_alsa.c)
list(APPEND SRCS sim_offload.c)
list(APPEND STDLIBS asound)
target_include_directories(
arch PRIVATE ${NUTTX_APPS_DIR}/audioutils/lame/lame/include
${NUTTX_APPS_DIR}/audioutils/libmad/libmad)
endif()
# host sources ###############################################################

View file

@ -27,7 +27,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/debug.h>
#include <lame/lame.h>
#include <lame.h>
#include <mad.h>
#include "sim_offload.h"