From b070089f138e395ba3167cf35a4cc3d99fd0d8ae Mon Sep 17 00:00:00 2001 From: casey langen Date: Thu, 14 Dec 2017 20:59:36 -0800 Subject: [PATCH] Added conditional ffmpegdecoder compile-time option. --- CMakeLists.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c7b9161c1..5d5565d31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,15 +94,20 @@ add_subdirectory(src/core) add_subdirectory(src/glue) add_subdirectory(src/musikcube) add_subdirectory(src/plugins/taglib_plugin) -add_subdirectory(src/plugins/m4adecoder) -add_subdirectory(src/plugins/oggdecoder) -add_subdirectory(src/plugins/nomaddecoder) -add_subdirectory(src/plugins/flacdecoder) add_subdirectory(src/plugins/nullout) add_subdirectory(src/plugins/server) add_subdirectory(src/plugins/httpdatastream) add_subdirectory(src/plugins/stockencoders) +if (${FFMPEG_DECODER} MATCHES "true") + add_subdirectory(src/plugins/ffmpegdecoder) +else() + add_subdirectory(src/plugins/m4adecoder) + add_subdirectory(src/plugins/oggdecoder) + add_subdirectory(src/plugins/nomaddecoder) + add_subdirectory(src/plugins/flacdecoder) +endif() + add_dependencies(taglibreader taglib) if (CMAKE_SYSTEM_NAME MATCHES "Linux")