From 03dffa61ff5566c2a9ae412735810d21d8572b19 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Wed, 16 Aug 2023 17:43:30 +0200 Subject: [PATCH] cmake: do not enable all codecs by default, start with a sensible default configuration (#941) --- CMakeLists.txt | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 626c45f384..672659bb38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,8 +67,8 @@ if (ENABLE_PLUGIN_LOADING) WORLD_READ WORLD_EXECUTE) endif() -macro(plugin_option variableName packageName displayName displayType defaultPlugin) - option(WITH_${variableName} "Build ${displayName} ${displayType}" ON) +macro(plugin_option variableName packageName displayName displayType defaultEnabled defaultPlugin) + option(WITH_${variableName} "Build ${displayName} ${displayType}" ${defaultEnabled}) option(WITH_${variableName}_PLUGIN "Build ${displayName} as a plugin" ${defaultPlugin}) if (WITH_${variableName}) find_package(${packageName}) @@ -88,24 +88,24 @@ macro(plugin_option variableName packageName displayName displayType defaultPlug unset(msg) endmacro() -plugin_option(LIBDE265 LIBDE265 "libde265" "HEIC decoder" OFF) -plugin_option(X265 X265 "x265" "HEIC encoder" OFF) -plugin_option(KVAZAAR kvazaar "kvazaar" "kvazaar HEVC encoder" OFF) +plugin_option(LIBDE265 LIBDE265 "libde265" "HEIC decoder" ON OFF) +plugin_option(X265 X265 "x265" "HEIC encoder" ON OFF) +plugin_option(KVAZAAR kvazaar "kvazaar" "kvazaar HEVC encoder" OFF OFF) if (HAVE_KVAZAAR_ENABLE_LOGGING) add_definitions(-DHAVE_KVAZAAR_ENABLE_LOGGING=1) else() add_definitions(-DHAVE_KVAZAAR_ENABLE_LOGGING=0) endif() -plugin_option(DAV1D DAV1D "Dav1d" "AVIF decoder" OFF) -plugin_option(AOM_ENCODER AOM "aom" "AVIF encoder" OFF) -plugin_option(AOM_DECODER AOM "aom" "AVIF decoder" OFF) -plugin_option(SvtEnc SvtEnc "Svt-av1" "AVIF encoder" ON) -plugin_option(RAV1E RAV1E "Rav1e" "AVIF encoder" ON) -plugin_option(JPEG_DECODER JPEG "Jpeg" "JPEG decoder" OFF) -plugin_option(JPEG_ENCODER JPEG "Jpeg" "JPEG encoder" OFF) -plugin_option(OpenJPEG_ENCODER OpenJPEG "OpenJPEG_Encoder" "JPEG2000 encoder" OFF) -plugin_option(OpenJPEG_DECODER OpenJPEG "OpenJPEG_Decoder" "JPEG2000 decoder" OFF) +plugin_option(DAV1D DAV1D "Dav1d" "AVIF decoder" OFF ON) +plugin_option(AOM_ENCODER AOM "aom" "AVIF encoder" ON OFF) +plugin_option(AOM_DECODER AOM "aom" "AVIF decoder" ON OFF) +plugin_option(SvtEnc SvtEnc "Svt-av1" "AVIF encoder" OFF ON) +plugin_option(RAV1E RAV1E "Rav1e" "AVIF encoder" OFF ON) +plugin_option(JPEG_DECODER JPEG "Jpeg" "JPEG decoder" OFF OFF) +plugin_option(JPEG_ENCODER JPEG "Jpeg" "JPEG encoder" OFF OFF) +plugin_option(OpenJPEG_ENCODER OpenJPEG "OpenJPEG_Encoder" "JPEG2000 encoder" OFF ON) +plugin_option(OpenJPEG_DECODER OpenJPEG "OpenJPEG_Decoder" "JPEG2000 decoder" OFF ON) option(WITH_UNCOMPRESSED_CODEC "Support internal ISO/IEC 23001-17 uncompressed codec (experimental)" OFF)