Warning, /graphics/digikam/project/bundles/3rdparty/ext_qtwebkit/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Script to build QtWebkit 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(EXTPREFIX_qtwebkit "${EXTPREFIX}") 0010 0011 set(QtWebKit_Conf -DENABLE_GEOLOCATION=OFF 0012 -DENABLE_DEVICE_ORIENTATION=OFF 0013 -DENABLE_QT_WEBCHANNEL=OFF 0014 -DENABLE_MEDIA_SOURCE=OFF 0015 -DENABLE_VIDEO=OFF 0016 -DENABLE_WEB_AUDIO=OFF 0017 -DENABLE_PRINT_SUPPORT=OFF 0018 -DENABLE_QT_GESTURE_EVENTS=OFF 0019 -DENABLE_INSPECTOR_UI=ON 0020 -DENABLE_API_TESTS=OFF 0021 -DENABLE_TOOLS=OFF 0022 -DENABLE_JIT=OFF 0023 -DUSE_GSTREAMER=OFF 0024 -DUSE_MEDIA_FOUNDATION=OFF 0025 -DUSE_QT_MULTIMEDIA=OFF 0026 -DUSE_LIBHYPHEN=OFF 0027 -DUSE_SYSTEM_MALLOC=1 0028 -DUSE_WOFF2=ON 0029 -DPORT=Qt 0030 ) 0031 0032 JoinListAsString("${QtWebKit_Conf}" " " BASH_OPTIONS) 0033 0034 if(APPLE) 0035 0036 ExternalProject_Add(ext_qtwebkit 0037 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0038 0039 URL https://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/src/submodules/qtwebkit-everywhere-src-5.13.1.tar.xz 0040 # NOTE: this is a CI tarball, it change each month. So no MD5 sum to use here. 0041 #URL_MD5 8070564af80809459bf6336431a9890b 0042 0043 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/qtwebkit-fixrpath-macports.patch 0044 0045 CONFIGURE_COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. && 0046 <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_qtwebkit} MinSizeRel x86_64 ${BASH_OPTIONS} 0047 0048 BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE) 0049 0050 INSTALL_COMMAND cd <SOURCE_DIR>/build && make install/fast 0051 0052 UPDATE_COMMAND "" 0053 BUILD_IN_SOURCE 1 0054 ALWAYS 0 0055 ) 0056 0057 else() # Linux 0058 0059 ExternalProject_Add(ext_qtwebkit 0060 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0061 0062 URL https://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/src/submodules/qtwebkit-everywhere-src-5.13.1.tar.xz 0063 # NOTE: this is a CI tarball, it change each month. So no MD5 sum to use here. 0064 #URL_MD5 8070564af80809459bf6336431a9890b 0065 0066 INSTALL_DIR ${EXTPREFIX_qtwebkit} 0067 0068 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/qtwebkit-fixdeps-linux.patch 0069 0070 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTPREFIX_qtwebkit} 0071 -DCMAKE_BUILD_TYPE=MinSizeRel 0072 ${GLOBAL_PROFILE} 0073 -DCMAKE_SYSTEM_PREFIX_PATH=${EXTPREFIX} 0074 ${QtWebKit_Conf} 0075 -Wno-dev 0076 0077 UPDATE_COMMAND "" 0078 BUILD_IN_SOURCE 1 0079 ALWAYS 0 0080 ) 0081 0082 endif()