Warning, /graphics/digikam/project/bundles/3rdparty/ext_libde265/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Script to build libde265 for digiKam bundle. 0002 # 0003 # SPDX-FileCopyrightText: 2015-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0004 # 0005 # SPDX-License-Identifier: BSD-3-Clause 0006 # 0007 # 0008 0009 set(PREFIX_libde265 "${EXTPREFIX}") 0010 0011 if(MINGW) 0012 0013 ExternalProject_Add(ext_libde265 0014 0015 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0016 GIT_REPOSITORY https://github.com/strukturag/libde265.git 0017 GIT_TAG v1.0.12 0018 0019 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/libde265-lib-only.patch 0020 0021 CONFIGURE_COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.mxe <SOURCE_DIR>/. && 0022 <SOURCE_DIR>/bootstrap.mxe ${MXE_BUILDROOT} RelWithDebInfo 0023 0024 BUILD_COMMAND cd <SOURCE_DIR>/build.mxe && $(MAKE) 0025 0026 BUILD_IN_SOURCE 1 0027 0028 INSTALL_COMMAND cd <SOURCE_DIR>/build.mxe/libde265 && cp -fv de265-version.h ../../libde265/ && 0029 cd <SOURCE_DIR>/build.mxe && $(MAKE) install/fast 0030 0031 UPDATE_COMMAND "" 0032 ALWAYS 0 0033 ) 0034 0035 elseif(APPLE) 0036 0037 ExternalProject_Add(ext_libde265 0038 0039 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0040 GIT_REPOSITORY https://github.com/strukturag/libde265.git 0041 GIT_TAG v1.0.12 0042 0043 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/libde265-lib-only.patch 0044 0045 CONFIGURE_COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. && 0046 <SOURCE_DIR>/bootstrap.macports ${PREFIX_libde265} RelWithDebInfo x86_64 0047 0048 BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE) 0049 0050 BUILD_IN_SOURCE 1 0051 0052 INSTALL_COMMAND cd <SOURCE_DIR>/build/libde265 && cp -fv de265-version.h ../../libde265/ && 0053 cd <SOURCE_DIR>/build && $(MAKE) install/fast 0054 0055 UPDATE_COMMAND "" 0056 ALWAYS 0 0057 ) 0058 0059 else() # Linux 0060 0061 ExternalProject_Add(ext_libde265 0062 0063 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0064 GIT_REPOSITORY https://github.com/strukturag/libde265.git 0065 GIT_TAG v1.0.12 0066 0067 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/libde265-lib-only.patch 0068 0069 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_libde265} 0070 -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} 0071 ${GLOBAL_PROFILE} 0072 0073 BUILD_IN_SOURCE 1 0074 0075 UPDATE_COMMAND "" 0076 ALWAYS 0 0077 ) 0078 0079 endif()