2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#3731] Meson options are now features

Also:
- Add fallback subprojects so that auto_features can take effect.
- Remove -Dall option. auto_features can be used instead.
- Add _dep suffix to dependency names.
- Capitalize dependencies that are used in other meson.build files.
This commit is contained in:
Andrei Pavel
2025-03-10 14:08:51 +02:00
committed by Francis Dupont
parent 5cc26b6bf0
commit 53ebcd6881
145 changed files with 557 additions and 607 deletions

View File

@@ -0,0 +1,18 @@
project('postgresql')
postgresql = disabler()
pg_config = find_program('pg_config', required: false)
if pg_config.found()
cflags = run_command([pg_config, '--cflags'], check: false)
libs = run_command([pg_config, '--libs'], check: false)
version = run_command([pg_config, '--version'], check: false)
if cflags.returncode() == 0 and libs.returncode() == 0 and version.returncode() == 0
pgsql_compile_args = cflags.stdout().split()
pgsql_link_args = libs.stdout().split()
pgsql_version = version.stdout().strip()
postgresql = declare_dependency(
compile_args: pgsql_compile_args,
link_args: pgsql_link_args,
version: pgsql_version,
)
endif
endif