mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 00:02:01 -04:00
The previous minimum was to maintain support for Python 3.5, but we now require Python 3.6 anyway (commit 45363fca637), so that reason is obsolete. A small raise to Meson 0.57 allows getting rid of a fair amount of version conditionals and silences some future-deprecated warnings. With the version bump, the following deprecation warnings appeared and are fixed: WARNING: Project targets '>=0.57' but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead WARNING: Project targets '>=0.57' but uses feature deprecated since '0.56.0': meson.build_root. use meson.project_build_root() or meson.global_build_root() instead. It turns out that meson 0.57.0 and 0.57.1 are buggy for our use, so the minimum is actually set to 0.57.2. This is specific to this version series; in the future we won't necessarily need to be this precise. Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/42e13eb0-862a-441e-8d84-4f0fd5f6def0%40eisentraut.org
45 lines
929 B
Meson
45 lines
929 B
Meson
# Copyright (c) 2022-2025, PostgreSQL Global Development Group
|
|
|
|
dblink_sources = files(
|
|
'dblink.c',
|
|
)
|
|
|
|
if host_system == 'windows'
|
|
dblink_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
|
|
'--NAME', 'dblink',
|
|
'--FILEDESC', 'dblink - connect to other PostgreSQL databases',])
|
|
endif
|
|
|
|
dblink = shared_module('dblink',
|
|
dblink_sources,
|
|
kwargs: contrib_mod_args + {
|
|
'dependencies': contrib_mod_args['dependencies'] + [libpq],
|
|
},
|
|
)
|
|
contrib_targets += dblink
|
|
|
|
install_data(
|
|
'dblink.control',
|
|
'dblink--1.0--1.1.sql',
|
|
'dblink--1.1--1.2.sql',
|
|
'dblink--1.2.sql',
|
|
kwargs: contrib_data_args,
|
|
)
|
|
|
|
tests += {
|
|
'name': 'dblink',
|
|
'sd': meson.current_source_dir(),
|
|
'bd': meson.current_build_dir(),
|
|
'regress': {
|
|
'sql': [
|
|
'dblink',
|
|
],
|
|
'regress_args': ['--dlpath', meson.project_build_root() / 'src/test/regress'],
|
|
},
|
|
'tap': {
|
|
'tests': [
|
|
't/001_auth_scram.pl',
|
|
],
|
|
},
|
|
}
|