summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codecs/CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/codecs/CMakeLists.txt b/codecs/CMakeLists.txt
index e4eec87037..eea8f145e3 100644
--- a/codecs/CMakeLists.txt
+++ b/codecs/CMakeLists.txt
@@ -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}
)