Warning, /graphics/digikam/project/bundles/3rdparty/ext_imagemagick/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Script to build imagemagick for digiKam bundle. 0002 # 0003 # Copyright (c) 2015-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0004 # 0005 # Redistribution and use is allowed according to the terms of the BSD license. 0006 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0007 # 0008 0009 set(PREFIX_ext_imagemagick "${EXTPREFIX}") 0010 0011 set(Magick_Conf --prefix=${PREFIX_ext_imagemagick} 0012 --without-freetype # TrueType font rendering library. 0013 --without-fontconfig # Disable configuring and customizing font access. 0014 --without-pango # Disable Layout and rendering of internationalized text. 0015 --without-raqm # Disable Complex Textlayout Library. 0016 --without-gvc # Disable rich set of graph drawing tools. 0017 --without-raw # Disable RAW codec. 0018 --without-lqr # Disable Liquid Rescale. 0019 --without-openjp2 # Disable JPEG2000 codec. 0020 --without-heic # Disable HEIF codec. 0021 --without-jxl # Disable JPEG-XL codec. 0022 --without-threads # Disable internal threads. 0023 --without-perl # Disable Perl scripts. 0024 --without-lcms # Disable Colors Management. 0025 --disable-docs # Disable documentations. 0026 --disable-hdri # Disable HDRI support. 0027 --disable-static # Disable static libraries. 0028 --enable-shared # Compile shared libraries. 0029 --with-x=no # Disable X11 support. 0030 --with-magick-plus-plus # Enable C++ API. 0031 --with-flif # Enable JLIF codec. 0032 --with-jbig # Enable Big JPEG codec. 0033 --with-webp # Enable WebP codec. 0034 --with-djvu # Enable DJVu codec. 0035 --with-rsvg # Enable SVG codec. 0036 --with-xml # Enable XML support. 0037 --with-fpx # Enable FlashPix Codec. 0038 --with-openexr # Enable OpenEXR codec. 0039 --with-quantum-depth=16 # Use 1§Bits quantum for color components. 0040 --without-utilities # Disable CLI tools. 0041 ) 0042 0043 if(MINGW) 0044 0045 set(Magick_Conf ${Magick_Conf} 0046 --host=${MXE_BUILD_TARGETS} 0047 --build=x86_64-pc-linux-gnu 0048 ) 0049 0050 set(Magick_Patch ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/magick-plusplus-mxe.patch) 0051 0052 set(Magick_Depends ext_jbig) 0053 0054 endif() 0055 0056 set(Jbig_Conf -DBUILD_PROGRAMS=OFF 0057 -DEXIV2_TOOLS=OFF 0058 ) 0059 0060 JoinListAsString("${Jbig_Conf}" " " BASH_OPTIONS) 0061 0062 ExternalProject_Add(ext_jbig 0063 0064 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0065 0066 GIT_REPOSITORY https://github.com/zdenop/jbigkit.git 0067 0068 CONFIGURE_COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.mxe <SOURCE_DIR>/. && 0069 <SOURCE_DIR>/bootstrap.mxe ${MXE_BUILDROOT} RelWithDebInfo ${BASH_OPTIONS} 0070 0071 BUILD_COMMAND cd <SOURCE_DIR>/build.mxe && $(MAKE) -j 0072 0073 INSTALL_COMMAND cd <SOURCE_DIR>/build.mxe && $(MAKE) install/fast 0074 0075 BUILD_IN_SOURCE 1 0076 0077 UPDATE_COMMAND "" 0078 ALWAYS 0 0079 ) 0080 0081 ExternalProject_Add(ext_imagemagick 0082 0083 DEPENDS ${Magick_Depends} 0084 0085 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0086 0087 GIT_REPOSITORY https://github.com/ImageMagick/ImageMagick.git 0088 GIT_TAG 7.1.1-20 0089 0090 PATCH_COMMAND ${Magick_Patch} 0091 0092 CONFIGURE_COMMAND <SOURCE_DIR>/configure ${Magick_Conf} 0093 0094 UPDATE_COMMAND "" 0095 ALWAYS 0 0096 )