~kennylevinsen/seatd-devel

seatd: build: set pkgconfig/dependency variables for features v1 SUPERSEDED

Simon Ser: 1
 build: set pkgconfig/dependency variables for features

 1 files changed, 9 insertions(+), 1 deletions(-)
build pending: smoketest-builtin.sh
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~kennylevinsen/seatd-devel/patches/21934/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH seatd] build: set pkgconfig/dependency variables for features Export this patch

This allows libseat users to e.g. advise people to chmod a+s the
executable if libseat is built with the builtin backend.
---

This bumps the required Meson version to 0.56.0, released last
October.

 meson.build | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 722735a6835b..a9e4b4a2b416 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,7 @@ project(
	'c',
	version: '0.5.0',
	license: 'MIT',
	meson_version: '>=0.53.0',
	meson_version: '>=0.56.0',
	default_options: [
		'c_std=c11',
		'warning_level=3',
@@ -165,18 +165,26 @@ lib = library(

install_headers('include/libseat.h')

libseat_vars = {
	'have_seatd': with_seatd.to_string(),
	'have_logind': logind.found().to_string(),
	'have_builtin': with_builtin.to_string(),
}

pkgconfig = import('pkgconfig')
pkgconfig.generate(lib,
	version: meson.project_version(),
	filebase: 'libseat',
	name: 'libseat',
	description: 'Seat management library',
	variables: libseat_vars,
)

libseat = declare_dependency(
	link_with: lib,
	dependencies: private_deps,
	include_directories: include_directories('include', is_system: true),
	variables: libseat_vars,
)

if with_server
-- 
2.31.1