diff options
author | Dmitry V. Levin <ldv@strace.io> | 2024-09-01 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-09-10 08:00:00 +0000 |
commit | 7fb6beed01bc1a59438b8b2a9b34b2dba296e553 (patch) | |
tree | 2f6ae951c4d94d331e29e348e6ffd9846687be33 /libpam_internal | |
parent | aa3e91322cbc651bb130ec8636b28d676979d4fe (diff) | |
download | pam-7fb6beed01bc1a59438b8b2a9b34b2dba296e553.tar.gz pam-7fb6beed01bc1a59438b8b2a9b34b2dba296e553.tar.bz2 pam-7fb6beed01bc1a59438b8b2a9b34b2dba296e553.zip |
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.
Diffstat (limited to 'libpam_internal')
-rw-r--r-- | libpam_internal/meson.build | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libpam_internal/meson.build b/libpam_internal/meson.build new file mode 100644 index 00000000..5d03877a --- /dev/null +++ b/libpam_internal/meson.build @@ -0,0 +1,19 @@ +libpam_internal_src = [ + 'pam_debug.c', + 'pam_econf.c', + 'pam_line.c', +] + +libpam_internal_inc = include_directories('include') + +libpam_internal = static_library( + 'pam_internal', + sources: libpam_internal_src, + include_directories: [libpam_internal_inc, libpam_inc], + dependencies: libeconf, +) + +libpam_internal_dep = declare_dependency( + include_directories: [libpam_internal_inc], + link_with: [libpam_internal], +) |