Warning, /pim/messagelib/webengineviewer/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: CC0-1.0 0002 # SPDX-FileCopyrightText: none 0003 ecm_setup_version(PROJECT VARIABLE_PREFIX WEBENGINEVIEWER 0004 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/webengineviewer_version.h" 0005 PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KPim6WebEngineViewerConfigVersion.cmake" 0006 SOVERSION 6 0007 ) 0008 0009 add_definitions(-DTRANSLATION_DOMAIN=\"libwebengineviewer6\") 0010 include_directories(${CMAKE_BINARY_DIR}/webengineviewer/src ${CMAKE_BINARY_DIR}/webengineviewer) 0011 0012 add_library(KPim6WebEngineViewer) 0013 add_library(KPim6::WebEngineViewer ALIAS KPim6WebEngineViewer) 0014 0015 0016 if(BUILD_TESTING) 0017 add_subdirectory(tests) 0018 add_subdirectory(autotests) 0019 add_subdirectory(webengineaccesskey/autotests) 0020 add_subdirectory(findbar/autotests) 0021 add_subdirectory(checkphishingurl/autotests/) 0022 add_subdirectory(checkphishingurl/tests/) 0023 add_subdirectory(urlinterceptor/blockexternalresourcesurlinterceptor/autotests) 0024 add_subdirectory(widgets/tracking/autotests/) 0025 add_subdirectory(developertool/autotests) 0026 endif() 0027 0028 0029 0030 target_sources(KPim6WebEngineViewer PRIVATE 0031 networkmanager/interceptormanager.cpp 0032 webhittestresult.cpp 0033 webhittest.cpp 0034 webenginepage.cpp 0035 webenginescript.cpp 0036 webengineview.cpp 0037 webenginemanagescript.cpp 0038 webengineexporthtmlpagejob.cpp 0039 webenginenavigationrequestinterceptor.cpp 0040 webengineexportpdfpagejob.cpp 0041 0042 checkphishingurl/checkphishingurljob.cpp 0043 checkphishingurl/checkphishingurlcache.cpp 0044 checkphishingurl/createphishingurldatabasejob.cpp 0045 checkphishingurl/localdatabasemanager.cpp 0046 checkphishingurl/checkphishingurlutil.cpp 0047 checkphishingurl/searchfullhashjob.cpp 0048 checkphishingurl/localdatabasefile.cpp 0049 checkphishingurl/createdatabasefilejob.cpp 0050 checkphishingurl/updatedatabaseinfo.cpp 0051 checkphishingurl/riceencodingdecoder.cpp 0052 checkphishingurl/urlhashing.cpp 0053 checkphishingurl/hashcachemanager.cpp 0054 checkphishingurl/backoffmodemanager.cpp 0055 checkphishingurl/downloadlocaldatabasethread.cpp 0056 0057 urlinterceptor/networkurlinterceptor.cpp 0058 urlinterceptor/networkpluginurlinterceptorinterface.cpp 0059 urlinterceptor/networkurlinterceptorpluginmanager.cpp 0060 urlinterceptor/networkpluginurlinterceptor.cpp 0061 urlinterceptor/networkurlinterceptormanager.cpp 0062 urlinterceptor/networkpluginurlinterceptorconfigurewidget.cpp 0063 urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.cpp 0064 urlinterceptor/loadexternalreferencesurlinterceptor/loadexternalreferencesurlinterceptor.cpp 0065 urlinterceptor/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.cpp 0066 0067 webengineaccesskey/webengineaccesskey.cpp 0068 webengineaccesskey/webengineaccesskeyanchor.cpp 0069 webengineaccesskey/webengineaccesskeyutils.cpp 0070 0071 findbar/findbarbase.cpp 0072 findbar/findbarwebengineview.cpp 0073 0074 widgets/zoomactionmenu.cpp 0075 0076 widgets/tracking/trackingdetailsdialog.cpp 0077 widgets/tracking/trackingwarningwidget.cpp 0078 0079 developertool/developertoolwidget.cpp 0080 developertool/developertooldialog.cpp 0081 widgets/submittedformwidgets/submittedformwarningwidget.cpp 0082 0083 findbar/findbarwebengineview.h 0084 findbar/findbarbase.h 0085 webenginenavigationrequestinterceptor.h 0086 webhittestresult.h 0087 urlinterceptor/networkurlinterceptor.h 0088 urlinterceptor/networkpluginurlinterceptorconfigurewidget.h 0089 urlinterceptor/loadexternalreferencesurlinterceptor/loadexternalreferencesurlinterceptor.h 0090 urlinterceptor/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.h 0091 urlinterceptor/networkpluginurlinterceptor.h 0092 urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.h 0093 urlinterceptor/networkurlinterceptorpluginmanager.h 0094 urlinterceptor/networkpluginurlinterceptorinterface.h 0095 urlinterceptor/networkurlinterceptormanager.h 0096 webenginepage.h 0097 webhittest.h 0098 webenginescript.h 0099 webengineexporthtmlpagejob.h 0100 webengineviewer_private_export.h 0101 webenginemanagescript.h 0102 webengineexportpdfpagejob.h 0103 webengineview.h 0104 widgets/tracking/trackingdetailsdialog.h 0105 widgets/tracking/trackingwarningwidget.h 0106 widgets/zoomactionmenu.h 0107 widgets/submittedformwidgets/submittedformwarningwidget.h 0108 checkphishingurl/localdatabasemanager_p.h 0109 checkphishingurl/localdatabasemanager.h 0110 checkphishingurl/urlhashing.h 0111 checkphishingurl/searchfullhashjob.h 0112 checkphishingurl/createphishingurldatabasejob.h 0113 checkphishingurl/updatedatabaseinfo.h 0114 checkphishingurl/backoffmodemanager.h 0115 checkphishingurl/localdatabasefile.h 0116 checkphishingurl/riceencodingdecoder.h 0117 checkphishingurl/hashcachemanager.h 0118 checkphishingurl/downloadlocaldatabasethread.h 0119 checkphishingurl/checkphishingurljob.h 0120 checkphishingurl/checkphishingurlutil.h 0121 checkphishingurl/createdatabasefilejob.h 0122 checkphishingurl/checkphishingurlcache.h 0123 developertool/developertooldialog.h 0124 developertool/developertoolwidget.h 0125 networkmanager/interceptormanager.h 0126 webengineaccesskey/webengineaccesskeyutils.h 0127 webengineaccesskey/webengineaccesskey.h 0128 webengineaccesskey/webengineaccesskeyanchor.h 0129 ) 0130 0131 ecm_qt_declare_logging_category(KPim6WebEngineViewer HEADER webengineviewer_debug.h IDENTIFIER WEBENGINEVIEWER_LOG CATEGORY_NAME org.kde.pim.webengineviewer 0132 DESCRIPTION "messagelib (webengineviewer)" 0133 EXPORT MESSAGELIB 0134 ) 0135 ecm_qt_declare_logging_category(KPim6WebEngineViewer HEADER webengineviewer_block_tracking_url_interceptor_debug.h 0136 IDENTIFIER WEBENGINEVIEWER_BLOCK_TRACKING_URL_LOG CATEGORY_NAME org.kde.pim.webengineviewer_block_tracking_url 0137 DESCRIPTION "messagelib (webengineviewer block tracking url)" 0138 EXPORT MESSAGELIB 0139 ) 0140 0141 0142 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT) 0143 set_target_properties(KPim6WebEngineViewer PROPERTIES UNITY_BUILD ON) 0144 endif() 0145 0146 ecm_generate_export_header(KPim6WebEngineViewer 0147 BASE_NAME webengineviewer 0148 VERSION ${WEBENGINEVIEWER_VERSION} 0149 DEPRECATED_BASE_VERSION 0 0150 USE_VERSION_HEADER 0151 ) 0152 0153 0154 target_include_directories(KPim6WebEngineViewer INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/KPim6/WebEngineViewer/>") 0155 0156 target_link_libraries(KPim6WebEngineViewer 0157 PUBLIC 0158 Qt::WebEngineWidgets 0159 KPim6::PimCommon 0160 PRIVATE 0161 KF6::CoreAddons 0162 KF6::XmlGui 0163 KF6::I18n 0164 KF6::WidgetsAddons 0165 KF6::ConfigCore 0166 ) 0167 0168 if (WIN32) 0169 target_link_libraries(KPim6WebEngineViewer PRIVATE Ws2_32) 0170 endif() 0171 0172 set_target_properties(KPim6WebEngineViewer PROPERTIES 0173 VERSION ${WEBENGINEVIEWER_VERSION} 0174 SOVERSION ${WEBENGINEVIEWER_SOVERSION} 0175 EXPORT_NAME WebEngineViewer 0176 ) 0177 0178 install(TARGETS 0179 KPim6WebEngineViewer 0180 EXPORT KPim6WebEngineViewerTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} 0181 ) 0182 0183 ecm_generate_headers(WebEngineViewer_Camelfindbar_HEADERS 0184 HEADER_NAMES 0185 FindBarBase 0186 FindBarWebEngineView 0187 REQUIRED_HEADERS WebEngineViewer_findbar_HEADERS 0188 PREFIX WebEngineViewer 0189 RELATIVE findbar 0190 ) 0191 0192 ecm_generate_headers(WebEngineViewer_Camelcasewebengine_accesskey_HEADERS 0193 HEADER_NAMES 0194 WebEngineAccessKey 0195 0196 REQUIRED_HEADERS WebEngineViewer_webengine_accesskey_HEADERS 0197 PREFIX WebEngineViewer 0198 RELATIVE webengineaccesskey 0199 ) 0200 ecm_generate_headers(WebEngineViewer_Camelcasewebengine_urlinterceptor_HEADERS 0201 HEADER_NAMES 0202 NetworkUrlInterceptorPluginManager 0203 NetworkUrlInterceptor 0204 NetworkPluginUrlInterceptorInterface 0205 NetworkPluginUrlInterceptor 0206 NetworkPluginUrlInterceptorConfigureWidget 0207 0208 REQUIRED_HEADERS WebEngineViewer_webengine_urlinterceptor_HEADERS 0209 PREFIX WebEngineViewer 0210 RELATIVE urlinterceptor 0211 ) 0212 ecm_generate_headers(WebEngineViewer_Camelcasewebengine_manager_HEADERS 0213 HEADER_NAMES 0214 InterceptorManager 0215 REQUIRED_HEADERS WebEngineViewer_webengine_manager_HEADERS 0216 PREFIX WebEngineViewer 0217 RELATIVE networkmanager 0218 ) 0219 ecm_generate_headers(WebEngineViewer_Camelcasewebengine_checkurl_HEADERS 0220 HEADER_NAMES 0221 CheckPhishingUrlJob 0222 CheckPhishingUrlCache 0223 CreatePhishingUrlDataBaseJob 0224 LocalDataBaseManager 0225 CheckPhishingUrlUtil 0226 SearchFullHashJob 0227 UpdateDataBaseInfo 0228 HashCacheManager 0229 REQUIRED_HEADERS WebEngineViewer_webengine_checkurl_HEADERS 0230 PREFIX WebEngineViewer 0231 RELATIVE checkphishingurl 0232 ) 0233 ecm_generate_headers(WebEngineViewer_Camelcasewebengine_misc_HEADERS 0234 HEADER_NAMES 0235 WebHitTestResult 0236 WebEnginePage 0237 WebEngineView 0238 WebHitTest 0239 WebEngineScript 0240 WebEngineManageScript 0241 WebEngineExportHtmlPageJob 0242 WebEngineExportPdfPageJob 0243 REQUIRED_HEADERS WebEngineViewer_webengine_misc_HEADERS 0244 PREFIX WebEngineViewer 0245 RELATIVE 0246 ) 0247 0248 ecm_generate_headers(WebEngineViewer_Camelcasewidgets_HEADERS 0249 HEADER_NAMES 0250 ZoomActionMenu 0251 REQUIRED_HEADERS WebEngineViewer_widgets_HEADERS 0252 PREFIX WebEngineViewer 0253 RELATIVE widgets 0254 ) 0255 0256 ecm_generate_headers(WebEngineViewer_Camelblocktrackingurlinterceptor_HEADERS 0257 HEADER_NAMES 0258 BlockTrackingUrlInterceptor 0259 0260 REQUIRED_HEADERS WebEngineViewer_blocktrackingurlinterceptor_HEADERS 0261 PREFIX WebEngineViewer 0262 RELATIVE urlinterceptor/blocktrackingurlinterceptor/ 0263 ) 0264 0265 ecm_generate_headers(WebEngineViewer_Camelloadexternalreferencesurlinterceptor_HEADERS 0266 HEADER_NAMES 0267 LoadExternalReferencesUrlInterceptor 0268 0269 REQUIRED_HEADERS WebEngineViewer_loadexternalreferencesurlinterceptor_HEADERS 0270 PREFIX WebEngineViewer 0271 RELATIVE urlinterceptor/loadexternalreferencesurlinterceptor/ 0272 ) 0273 0274 ecm_generate_headers(WebEngineViewer_Camelblockexternalresourcesurlinterceptor_HEADERS 0275 HEADER_NAMES 0276 BlockExternalResourcesUrlInterceptor 0277 0278 REQUIRED_HEADERS WebEngineViewer_blockexternalresourcesurlinterceptor_HEADERS 0279 PREFIX WebEngineViewer 0280 RELATIVE urlinterceptor/blockexternalresourcesurlinterceptor/ 0281 ) 0282 0283 0284 ecm_generate_headers(WebEngineViewer_Cameltracking_HEADERS 0285 HEADER_NAMES 0286 TrackingWarningWidget 0287 0288 REQUIRED_HEADERS WebEngineViewer_tracking_HEADERS 0289 PREFIX WebEngineViewer 0290 RELATIVE widgets/tracking/ 0291 ) 0292 0293 ecm_generate_headers(WebEngineViewer_Cameldevelopertool_HEADERS 0294 HEADER_NAMES 0295 DeveloperToolDialog 0296 0297 REQUIRED_HEADERS WebEngineViewer_developertool_HEADERS 0298 PREFIX WebEngineViewer 0299 RELATIVE developertool/ 0300 ) 0301 0302 ecm_generate_headers(WebEngineViewer_Camelsubmittedformwidget_HEADERS 0303 HEADER_NAMES 0304 SubmittedFormWarningWidget 0305 0306 REQUIRED_HEADERS WebEngineViewer_submittedformwidget_HEADERS 0307 PREFIX WebEngineViewer 0308 RELATIVE widgets/submittedformwidgets/ 0309 ) 0310 0311 0312 0313 install(FILES 0314 ${WebEngineViewer_Camelsubmittedformwidget_HEADERS} 0315 ${WebEngineViewer_Cameldevelopertool_HEADERS} 0316 ${WebEngineViewer_Cameltracking_HEADERS} 0317 ${WebEngineViewer_Camelblockexternalresourcesurlinterceptor_HEADERS} 0318 ${WebEngineViewer_Camelloadexternalreferencesurlinterceptor_HEADERS} 0319 ${WebEngineViewer_Camelblocktrackingurlinterceptor_HEADERS} 0320 ${WebEngineViewer_Camelcasewebengine_checkurl_HEADERS} 0321 ${WebEngineViewer_Camelcasewebengine_accesskey_HEADERS} 0322 ${WebEngineViewer_Camelcasewebengine_urlinterceptor_HEADERS} 0323 ${WebEngineViewer_Camelcasewebengine_manager_HEADERS} 0324 ${WebEngineViewer_Camelcasewebengine_misc_HEADERS} 0325 ${WebEngineViewer_Camelfindbar_HEADERS} 0326 ${WebEngineViewer_Camelcasewidgets_HEADERS} 0327 ${WebEngineViewer_Camelprint_HEADERS} 0328 DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim6/WebEngineViewer/WebEngineViewer 0329 COMPONENT Devel 0330 ) 0331 0332 install(FILES 0333 ${WebEngineViewer_submittedformwidget_HEADERS} 0334 ${WebEngineViewer_developertool_HEADERS} 0335 ${WebEngineViewer_tracking_HEADERS} 0336 ${WebEngineViewer_blockexternalresourcesurlinterceptor_HEADERS} 0337 ${WebEngineViewer_loadexternalreferencesurlinterceptor_HEADERS} 0338 ${WebEngineViewer_blocktrackingurlinterceptor_HEADERS} 0339 ${WebEngineViewer_webengine_checkurl_HEADERS} 0340 ${WebEngineViewer_webengine_accesskey_HEADERS} 0341 ${WebEngineViewer_findbar_HEADERS} 0342 ${WebEngineViewer_webengine_urlinterceptor_HEADERS} 0343 ${WebEngineViewer_webengine_manager_HEADERS} 0344 ${WebEngineViewer_webengine_misc_HEADERS} 0345 ${WebEngineViewer_widgets_HEADERS} 0346 ${WebEngineViewer_print_HEADERS} 0347 ${CMAKE_CURRENT_BINARY_DIR}/webengineviewer_export.h 0348 DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim6/WebEngineViewer/webengineviewer 0349 COMPONENT Devel 0350 ) 0351 0352 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KPim6WebEngineViewer") 0353 0354 if (BUILD_QCH) 0355 ecm_add_qch( 0356 KPim6WebEngineViewer_QCH 0357 NAME KPim6WebEngineViewer 0358 BASE_NAME KPim6WebEngineViewer 0359 VERSION ${PIM_VERSION} 0360 ORG_DOMAIN org.kde 0361 SOURCES # using only public headers, to cover only public API 0362 ${WebEngineViewer_submittedformwidget_HEADERS} 0363 ${WebEngineViewer_developertool_HEADERS} 0364 ${WebEngineViewer_tracking_HEADERS} 0365 ${WebEngineViewer_blockexternalresourcesurlinterceptor_HEADERS} 0366 ${WebEngineViewer_loadexternalreferencesurlinterceptor_HEADERS} 0367 ${WebEngineViewer_blocktrackingurlinterceptor_HEADERS} 0368 ${WebEngineViewer_webengine_checkurl_HEADERS} 0369 ${WebEngineViewer_webengine_accesskey_HEADERS} 0370 ${WebEngineViewer_findbar_HEADERS} 0371 ${WebEngineViewer_webengine_urlinterceptor_HEADERS} 0372 ${WebEngineViewer_webengine_manager_HEADERS} 0373 ${WebEngineViewer_webengine_misc_HEADERS} 0374 ${WebEngineViewer_widgets_HEADERS} 0375 ${WebEngineViewer_print_HEADERS} 0376 LINK_QCHS 0377 Qt6Core_QCH 0378 Qt6Gui_QCH 0379 Qt6Widgets_QCH 0380 INCLUDE_DIRS 0381 ${CMAKE_CURRENT_BINARY_DIR} 0382 BLANK_MACROS 0383 WEBENGINEVIEWER_EXPORT 0384 TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} 0385 QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} 0386 COMPONENT Devel 0387 ) 0388 0389 ecm_install_qch_export( 0390 TARGETS KPim6WebEngineViewer_QCH 0391 FILE KPim6WebEngineViewerQchTargets.cmake 0392 DESTINATION "${CMAKECONFIG_INSTALL_DIR}" 0393 COMPONENT Devel 0394 ) 0395 set(PACKAGE_INCLUDE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KPim6WebEngineViewerQchTargets.cmake\")") 0396 endif() 0397 0398 configure_package_config_file( 0399 "${CMAKE_CURRENT_SOURCE_DIR}/KPimWebEngineViewerConfig.cmake.in" 0400 "${CMAKE_CURRENT_BINARY_DIR}/KPim6WebEngineViewerConfig.cmake" 0401 INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} 0402 ) 0403 0404 install(FILES 0405 "${CMAKE_CURRENT_BINARY_DIR}/KPim6WebEngineViewerConfig.cmake" 0406 "${CMAKE_CURRENT_BINARY_DIR}/KPim6WebEngineViewerConfigVersion.cmake" 0407 DESTINATION "${CMAKECONFIG_INSTALL_DIR}" 0408 COMPONENT Devel 0409 ) 0410 0411 install(EXPORT KPim6WebEngineViewerTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE KPim6WebEngineViewerTargets.cmake NAMESPACE KPim6::) 0412 0413 install(FILES 0414 ${CMAKE_CURRENT_BINARY_DIR}/webengineviewer_version.h 0415 DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim6/WebEngineViewer COMPONENT Devel 0416 )