From 1b71568048dc82e3b8eb812781eb052718086e52 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Thu, 29 Apr 2021 10:46:11 +0200 Subject: [PATCH] Disable webkit separately from gtk integration --- options.cmake | 7 +++++++ variables.cmake | 1 + 2 files changed, 8 insertions(+) diff --git a/options.cmake b/options.cmake index 6cd9093..6a73f8b 100644 --- a/options.cmake +++ b/options.cmake @@ -63,6 +63,13 @@ if (DESKTOP_APP_USE_PACKAGED_LAZY) ) endif() +if (DESKTOP_APP_DISABLE_WEBKITGTK) + target_compile_definitions(common_options + INTERFACE + DESKTOP_APP_DISABLE_WEBKITGTK + ) +endif() + if (DESKTOP_APP_USE_PACKAGED_FONTS) target_compile_definitions(common_options INTERFACE diff --git a/variables.cmake b/variables.cmake index bff1d6e..0242381 100644 --- a/variables.cmake +++ b/variables.cmake @@ -37,6 +37,7 @@ option(DESKTOP_APP_USE_PACKAGED "Find libraries using CMake instead of exact pat option(DESKTOP_APP_USE_PACKAGED_LAZY "Bundle recommended Qt plugins for self-contained packages. (Linux only)" OFF) option(DESKTOP_APP_USE_PACKAGED_FFMPEG_STATIC "Link ffmpeg statically in packaged mode." OFF) option(DESKTOP_APP_DISABLE_SPELLCHECK "Disable spellcheck library." ${osx_special_target}) +option(DESKTOP_APP_DISABLE_WEBKITGTK "Disable WebkitGTK library (Linux only)." OFF) option(DESKTOP_APP_DISABLE_CRASH_REPORTS "Disable crash report generation." ${no_special_target}) option(DESKTOP_APP_DISABLE_AUTOUPDATE "Disable autoupdate." ${disable_autoupdate}) option(DESKTOP_APP_USE_HUNSPELL_ONLY "Disable system spellchecker and use bundled Hunspell only. (For debugging purposes)" OFF)