Skip to content

Commit

Permalink
JPEGXL: Added lcms2 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
HappySeaFox committed Oct 8, 2023
1 parent f23b726 commit 4d80ca9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sail-codecs/jpegxl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ endif()
find_library(HWY_LIBRARY NAMES hwy ${SAIL_CODEC_JPEGXL_REQUIRED_OPTION})
find_library(BROTLI_COMMON_LIBRARY NAMES brotlicommon brotlicommon-static ${SAIL_CODEC_JPEGXL_REQUIRED_OPTION})
find_library(BROTLI_DEC_LIBRARY NAMES brotlidec brotlidec-static ${SAIL_CODEC_JPEGXL_REQUIRED_OPTION})
find_library(LCMS2_LIBRARY NAMES lcms2 ${SAIL_CODEC_JPEGXL_REQUIRED_OPTION})

if (NOT HWY_LIBRARY OR NOT BROTLI_COMMON_LIBRARY OR NOT BROTLI_DEC_LIBRARY)
if (NOT HWY_LIBRARY OR NOT BROTLI_COMMON_LIBRARY OR NOT BROTLI_DEC_LIBRARY OR NOT LCMS2_LIBRARY)
return()
endif()

Expand All @@ -38,6 +39,7 @@ set(SAIL_CODECS_FIND_DEPENDENCIES ${SAIL_CODECS_FIND_DEPENDENCIES} "find_library
set(SAIL_CODECS_FIND_DEPENDENCIES ${SAIL_CODECS_FIND_DEPENDENCIES} "find_library,hwy,hwy" PARENT_SCOPE)
set(SAIL_CODECS_FIND_DEPENDENCIES ${SAIL_CODECS_FIND_DEPENDENCIES} "find_library,brotlicommon brotlicommon-static,brotlicommon brotlicommon-static" PARENT_SCOPE)
set(SAIL_CODECS_FIND_DEPENDENCIES ${SAIL_CODECS_FIND_DEPENDENCIES} "find_library,brotlidec brotlidec-static,brotlidec brotlidec-static" PARENT_SCOPE)
set(SAIL_CODECS_FIND_DEPENDENCIES ${SAIL_CODECS_FIND_DEPENDENCIES} "find_library,lcms2,lcms2" PARENT_SCOPE)

# Common codec configuration
#
Expand All @@ -46,5 +48,5 @@ sail_codec(NAME jpegxl
ICON jpegxl.png
DEPENDENCY_COMPILE_DEFINITIONS ${JXL_STATIC_DEFINE}
DEPENDENCY_INCLUDE_DIRS ${JPEGXL_INCLUDE_DIRS}
DEPENDENCY_LIBS ${BROTLI_COMMON_LIBRARY} ${BROTLI_DEC_LIBRARY} ${HWY_LIBRARY}
DEPENDENCY_LIBS ${BROTLI_COMMON_LIBRARY} ${BROTLI_DEC_LIBRARY} ${HWY_LIBRARY} ${LCMS2_LIBRARY}
${JPEGXL_LIBRARY} ${JPEGXL_THREADS_LIBRARY})

0 comments on commit 4d80ca9

Please sign in to comment.