From 7fb6beed01bc1a59438b8b2a9b34b2dba296e553 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 1 Sep 2024 08:00:00 +0000 Subject: meson: build Linux-PAM using meson On my non-representative hardware, the full build using autotools (./autogen.sh && CFLAGS=-O2 ./configure && make -j`nproc` && make -j`nproc` install) takes about 45 seconds. On the same hardware, the full build using meson (meson setup -Doptimization=2 dir && meson compile -C dir && meson install -C dir) takes just about 7.5 seconds. --- examples/meson.build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/meson.build (limited to 'examples/meson.build') diff --git a/examples/meson.build b/examples/meson.build new file mode 100644 index 00000000..4f5e85e0 --- /dev/null +++ b/examples/meson.build @@ -0,0 +1,14 @@ +foreach prog: ['xsh', + 'vpass', + 'blank', + 'check_user', + 'tty_conv' + ] + executable( + prog, + sources: prog + '.c', + link_args: exe_link_args, + include_directories: [libpamc_inc], + dependencies: [libpam_dep, libpam_misc_dep], + ) +endforeach -- cgit v1.2.3