From d2d66171df5ce6d3112b7d1f161f98fe850c9bbb Mon Sep 17 00:00:00 2001 From: scorpion-26 <58082714+scorpion-26@users.noreply.github.com> Date: Fri, 24 Feb 2023 13:14:00 +0100 Subject: [PATCH] Buildsystem: More aggressive optimizations - Enable LTO by default - Enable Full optimizations by default - Statically link to libgBar by default --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 655140b..6a620ec 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,12 @@ project('gBar', version: '0.0.1', license: 'MIT', meson_version: '>=0.49.0', - default_options: ['c_std=c++17', 'warning_level=3']) + default_options: ['c_std=c++17', + 'warning_level=3', + 'default_library=static', + 'buildtype=release', + 'b_lto=true'], +) gtk = dependency('gtk+-3.0') gtk_layer_shell = dependency('gtk-layer-shell-0')