mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-27 03:33:39 +08:00
7fb6beed01
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.
20 lines
424 B
Meson
20 lines
424 B
Meson
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],
|
|
)
|