From e944e07686a3571d11eeff97843eb877c9c71419 Mon Sep 17 00:00:00 2001 From: tinywrkb Date: Wed, 4 May 2022 20:20:14 +0300 Subject: [PATCH] webkitgtk: Switch back debugging level to -g1 With flatpak-builders default `-g` flag, the extension's size is 4.5GB, creating `.Debug` extensions for applications requires much more resources and time. It also take extra 30min to build the extension on the CI. Application maintainers might avoid the extension due to these. Setting `-g1` reduce the extension's size to the much more reasonable value of ~1GB. Anyone who needs full debug symbols for developing a wxWebView app can easily trigger a test build with the debug symbols. --- org.freedesktop.Sdk.Extension.wxwidgets.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/org.freedesktop.Sdk.Extension.wxwidgets.yaml b/org.freedesktop.Sdk.Extension.wxwidgets.yaml index 1c78d6cf5a..9c6102ed29 100644 --- a/org.freedesktop.Sdk.Extension.wxwidgets.yaml +++ b/org.freedesktop.Sdk.Extension.wxwidgets.yaml @@ -48,10 +48,11 @@ modules: - name: webkitgtk # gnome sdk packaging https://gitlab.gnome.org/GNOME/gnome-build-meta/-/blob/master/elements/sdk/webkitgtk.{-4.0.bst,inc} buildsystem: cmake-ninja - # for faster local compilation, disable debug symbols with -g0 - #build-options: - # cflags: -g0 - # cxxflags: -g0 + # faster compilation that avoids having the extension blow up to over 4GB + # for even faster local compilation, disable debug symbols with -g0 + build-options: + cflags: -g1 + cxxflags: -g1 config-opts: - -DPORT=GTK - -DCMAKE_BUILD_TYPE=Release