mirror of
https://github.com/postgres/postgres.git
synced 2025-08-14 02:22:38 +03:00
.github
config
contrib
amcheck
auth_delay
auto_explain
basebackup_to_shell
basic_archive
bloom
bool_plperl
btree_gin
btree_gist
citext
cube
dblink
dict_int
dict_xsyn
earthdistance
file_fdw
fuzzystrmatch
hstore
hstore_plperl
hstore_plpython
intagg
intarray
isn
jsonb_plperl
jsonb_plpython
lo
ltree
ltree_plpython
expected
sql
.gitignore
Makefile
ltree_plpython.c
ltree_plpython3u--1.0.sql
ltree_plpython3u.control
meson.build
oid2name
pageinspect
passwordcheck
pg_buffercache
pg_freespacemap
pg_prewarm
pg_stat_statements
pg_surgery
pg_trgm
pg_visibility
pg_walinspect
pgcrypto
pgrowlocks
pgstattuple
postgres_fdw
seg
sepgsql
spi
sslinfo
start-scripts
tablefunc
tcn
test_decoding
tsm_system_rows
tsm_system_time
unaccent
uuid-ossp
vacuumlo
xml2
Makefile
README
contrib-global.mk
meson.build
doc
src
.cirrus.star
.cirrus.tasks.yml
.cirrus.yml
.dir-locals.el
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
COPYRIGHT
GNUmakefile.in
HISTORY
Makefile
README.md
aclocal.m4
configure
configure.ac
meson.build
meson_options.txt
Reported-by: Michael Paquier Discussion: https://postgr.es/m/ZZKTDPxBBMt3C0J9@paquier.xyz Backpatch-through: 12
46 lines
1.0 KiB
Meson
46 lines
1.0 KiB
Meson
# Copyright (c) 2022-2024, PostgreSQL Global Development Group
|
|
|
|
if not python3_dep.found()
|
|
subdir_done()
|
|
endif
|
|
|
|
ltree_plpython_sources = files(
|
|
'ltree_plpython.c',
|
|
)
|
|
|
|
if host_system == 'windows'
|
|
ltree_plpython_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
|
|
'--NAME', 'ltree_plpython3',
|
|
'--FILEDESC', 'ltree_plpython - ltree transform for plpython',])
|
|
endif
|
|
|
|
ltree_plpython = shared_module('ltree_plpython3',
|
|
ltree_plpython_sources,
|
|
include_directories: [plpython_inc, ltree_inc],
|
|
c_args: ['-DPLPYTHON_LIBNAME="plpython3"'],
|
|
kwargs: contrib_mod_args + {
|
|
'dependencies': [python3_dep, contrib_mod_args['dependencies']],
|
|
},
|
|
)
|
|
contrib_targets += ltree_plpython
|
|
|
|
install_data(
|
|
'ltree_plpython3u--1.0.sql',
|
|
'ltree_plpython3u.control',
|
|
kwargs: contrib_data_args,
|
|
)
|
|
|
|
ltree_plpython_regress = [
|
|
'ltree_plpython'
|
|
]
|
|
|
|
tests += {
|
|
'name': 'ltree_plpython',
|
|
'sd': meson.current_source_dir(),
|
|
'bd': meson.current_build_dir(),
|
|
'regress': {
|
|
'sql': ltree_plpython_regress,
|
|
'regress_args': ['--load-extension=ltree'],
|
|
},
|
|
}
|