Fix ranlib "has no symbols" errors in the codecs directory.

Don't build the G.722 or G.726 codecs for now. Each are wrapped in
"#ifdef HAVE_SPANDSP", which we don't define.

Conditionally compile the SBC codec.

Change-Id: I5f09ff66514f967d4f0611c943b4e6a975b8994b
Reviewed-on: https://code.wireshark.org/review/5690
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2014-12-09 13:22:20 -08:00
parent f66de3a749
commit 3147087de3
1 changed files with 8 additions and 3 deletions

View File

@ -23,11 +23,16 @@ set(CODECS_FILES
codecs.c
G711a/G711adecode.c
G711u/G711udecode.c
G722/G722decode.c
G726/G726decode.c
sbc/sbc.c
# These are wrapped in "#ifdef HAVE_SPANDSP", which we don't currently
# handle or define.
# G722/G722decode.c
# G726/G726decode.c
)
if(SBC_FOUND)
set(CODECS_FILES ${CODECS_FILES} sbc/sbc.c)
endif()
add_library(codecs STATIC
${CODECS_FILES}
)