libgnt/libgnt

d72061c0dbf3
Parents 000688c19dcd
Children b7174f76d7ee
Setup the devenv and bump the meson requirement to 0.58.0

Testing Done:
changed some colorpairs in `build/config/gnt/gntrc` to verify that it was loading that file.

Reviewed at https://reviews.imfreedom.org/r/1571/
--- a/meson.build Sat Jan 15 20:04:44 2022 -0600
+++ b/meson.build Mon Aug 08 20:20:07 2022 -0500
@@ -28,7 +28,7 @@
project('libgnt', 'c',
license : 'GPL-2.0-or-later',
version : '3.0.0-devel',
- meson_version : '>=0.56.0',
+ meson_version : '>=0.58.0',
default_options : ['c_std=c99', 'warning_level=2'])
gnt_soversion = 1
@@ -54,6 +54,8 @@
compiler = meson.get_compiler('c')
pkgconfig = import('pkgconfig')
+devenv = environment()
+
# #######################################################################
# # Check for GLib 2.44
# #######################################################################
@@ -316,3 +318,11 @@
subdir('test')
subdir('doc')
+config_home = get_option('devenv-config-dir')
+if config_home == ''
+ config_home = meson.global_build_root() / 'config'
+endif
+devenv.set('XDG_CONFIG_HOME', config_home)
+
+meson.add_devenv(devenv)
+
--- a/meson_options.txt Sat Jan 15 20:04:44 2022 -0600
+++ b/meson_options.txt Mon Aug 08 20:20:07 2022 -0500
@@ -1,3 +1,6 @@
+option('devenv-config-dir', type : 'string', yield : true,
+ description : 'config directory for running a devenv (defaults to a subdirectory of buildroot)')
+
option('doc', type : 'boolean', value : true, yield : true,
description : 'build documentation with gtk-doc')