mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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:
parent
5ecdf31364
commit
3b1aea4bb0
2 changed files with 4 additions and 1 deletions
|
|
@ -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 ###############################################################
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue