Skip to content

Commit

Permalink
cmake: do not enable all codecs by default, start with a sensible def…
Browse files Browse the repository at this point in the history
…ault configuration (#941)
  • Loading branch information
farindk committed Aug 16, 2023
1 parent 72592a9 commit 03dffa6
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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)

Expand Down

0 comments on commit 03dffa6

Please sign in to comment.