From 540828a077a7b9e7f0ce04e16826fd5378d2e25c Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 19 Feb 2021 08:45:15 +0400 Subject: [PATCH] Add DESKTOP_APP_DISABLE_GTK_INTEGRATION --- options.cmake | 7 +++++++ variables.cmake | 1 + 2 files changed, 8 insertions(+) diff --git a/options.cmake b/options.cmake index c36979a..7cb4763 100644 --- a/options.cmake +++ b/options.cmake @@ -34,6 +34,13 @@ if (DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION) ) endif() +if (DESKTOP_APP_DISABLE_GTK_INTEGRATION) + target_compile_definitions(common_options + INTERFACE + DESKTOP_APP_DISABLE_GTK_INTEGRATION + ) +endif() + if (DESKTOP_APP_USE_PACKAGED) target_compile_definitions(common_options INTERFACE diff --git a/variables.cmake b/variables.cmake index e429c00..07c4925 100644 --- a/variables.cmake +++ b/variables.cmake @@ -30,6 +30,7 @@ endif() option(DESKTOP_APP_LOTTIE_USE_CACHE "Use caching in lottie animations." ON) option(DESKTOP_APP_DISABLE_DBUS_INTEGRATION "Disable all code for D-Bus integration (Linux only)." OFF) option(DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION "Disable all code for Wayland integration (Linux only)." OFF) +option(DESKTOP_APP_DISABLE_GTK_INTEGRATION "Disable all code for GTK integration (Linux only)." OFF) option(DESKTOP_APP_USE_GLIBC_WRAPS "Use wraps for new GLIBC features." OFF) option(DESKTOP_APP_USE_PACKAGED "Find libraries using CMake instead of exact paths." ${no_special_target}) option(DESKTOP_APP_USE_PACKAGED_LAZY "Bundle recommended Qt plugins for self-contained packages. (Linux only)" OFF)