Warning, /graphics/digikam/project/bundles/3rdparty/ext_drmingw/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Script to install DrMinGw run-time 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_drmingw "${EXTPREFIX}")
0010
0011 # Compile DrMingw source code
0012
0013 ExternalProject_Add(ext_drmingw
0014
0015 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
0016
0017 GIT_REPOSITORY https://github.com/jrfonseca/drmingw.git
0018 GIT_TAG 0.9.8
0019
0020 INSTALL_DIR ${EXTPREFIX_drmingw}
0021
0022 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/drmingw-coreonly.patch
0023
0024 # CONFIGURE_COMMAND git submodule update --init &&
0025 CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.mxe <SOURCE_DIR>/. &&
0026 <SOURCE_DIR>/bootstrap.mxe ${MXE_BUILDROOT} RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_DISABLE_FIND_PACKAGE_PythonInterp=1 -DCMAKE_DISABLE_FIND_PACKAGE_WinDbg=1
0027
0028 BUILD_COMMAND cd <SOURCE_DIR>/build.mxe && $(MAKE)
0029
0030 INSTALL_COMMAND cd <SOURCE_DIR>/build.mxe && make install/fast &&
0031 ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/build.mxe/thirdparty/libz.dll ${PREFIX_ext_drmingw}/bin/
0032
0033 UPDATE_COMMAND ""
0034 BUILD_IN_SOURCE 1
0035 ALWAYS 0
0036 )
0037
0038 # Deploying DrMingw run-time dependencies
0039
0040 ExternalProject_Add(ext_drmingw_deps
0041 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
0042 URL https://github.com/jrfonseca/drmingw/releases/download/0.9.8/drmingw-0.9.8-win64.7z
0043 URL_HASH MD5=a72f81732204f49753a985e6ebfa31c1
0044
0045 INSTALL_DIR ${PREFIX_ext_drmingw}
0046 CONFIGURE_COMMAND ""
0047 BUILD_COMMAND ""
0048 INSTALL_COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/bin/dbghelp.dll ${PREFIX_ext_drmingw}/bin/
0049 COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/bin/dbgcore.dll ${PREFIX_ext_drmingw}/bin/
0050 COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/bin/symsrv.dll ${PREFIX_ext_drmingw}/bin/
0051 COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/bin/symsrv.yes ${PREFIX_ext_drmingw}/bin/
0052
0053 UPDATE_COMMAND ""
0054 )
0055
0056 add_dependencies(ext_drmingw ext_drmingw_deps)