From 69f51bdab0c676d47632802c90babaf2c32b3981 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Tue, 9 Mar 2021 14:51:54 -0600 Subject: info-overview: add build option to control distributor logo Currently, we display a 256x256 version of the OS icon from /etc/os-release. This is too big for my taste, and it's also not sufficient for distros that want to display a logo that is not an icon. For instance, because we no longer display the operating system name immediately beneath the logo, it may be desirable to use a logo variant that includes text. This patch adds a meson build option that distributions can use to override the logo, and a second build option to specify a different logo for use in dark mode. --- meson.build | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 59982b4e2..2d661658f 100644 --- a/meson.build +++ b/meson.build @@ -50,6 +50,17 @@ foreach define: set_defines config_h.set_quoted(define[0], define[1]) endforeach +distributor_logo = get_option('distributor_logo') +if (distributor_logo != '') + config_h.set_quoted('DISTRIBUTOR_LOGO', distributor_logo, + description: 'Define to absolute path of distributor logo') + dark_mode_distributor_logo = get_option('dark_mode_distributor_logo') + if (dark_mode_distributor_logo != '') + config_h.set_quoted('DARK_MODE_DISTRIBUTOR_LOGO', dark_mode_distributor_logo, + description: 'Define to absolute path of distributor logo for use in dark mode') + endif +endif + # meson does not support octal values, so it must be handled as a # string. See: https://github.com/mesonbuild/meson/issues/2047 config_h.set('USER_DIR_MODE', '0700', -- cgit v1.2.1