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-08-14 08:42:30 -03:00
committed by Alan C. Assis
parent d81c942077
commit fbf92af14f
2 changed files with 4 additions and 1 deletions
+3
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 ###############################################################
+1 -1
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"