Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2023-12-13 02:34:38 +0300
committerJean-Marc Valin <jmvalin@amazon.com>2023-12-20 07:01:27 +0300
commit4aaa9076409834c307016a3374f5e8d798e92bff (patch)
treee9645e1280743695ee130048eba5e60e3d73a167
parentb6a196d90c5388d7a29a90b4acf82c6bb6433dc0 (diff)
Add DRED/OSCE only conditionally
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9827fea8..6f8fcb65 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -369,8 +369,6 @@ endif()
add_sources_group(opus silk ${silk_headers} ${silk_sources})
add_sources_group(opus celt ${celt_headers} ${celt_sources})
add_sources_group(opus lpcnet ${deep_plc_headers} ${deep_plc_sources})
-add_sources_group(opus lpcnet ${dred_headers} ${dred_sources})
-add_sources_group(opus lpcnet ${osce_headers} ${osce_sources})
if(OPUS_FIXED_POINT)
add_sources_group(opus silk ${silk_sources_fixed})
@@ -386,6 +384,7 @@ if(NOT OPUS_ENABLE_FLOAT_API)
endif()
if (OPUS_DRED)
+ add_sources_group(opus lpcnet ${dred_headers} ${dred_sources})
target_compile_definitions(opus PRIVATE ENABLE_DRED)
if(NOT OPUS_DEEP_PLC)
target_compile_definitions(opus PRIVATE ENABLE_DEEP_PLC)
@@ -393,6 +392,7 @@ if (OPUS_DRED)
endif()
if (OPUS_OSCE)
+ add_sources_group(opus lpcnet ${osce_headers} ${osce_sources})
target_compile_definitions(opus PRIVATE ENABLE_OSCE)
if(NOT OPUS_DEEP_PLC)
target_compile_definitions(opus PRIVATE ENABLE_DEEP_PLC)