Debian Codegraph @

contrib/jsonb_plpython/meson.build

raw
1 # Copyright (c) 2022-2025, PostgreSQL Global Development Group
2
3 if not python3_dep.found()
4 subdir_done()
5 endif
6
7 jsonb_plpython_sources = files(
8 'jsonb_plpython.c',
9 )
10
11 if host_system == 'windows'
12 jsonb_plpython_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
13 '--NAME', 'jsonb_plpython3',
14 '--FILEDESC', 'jsonb_plpython - jsonb transform for plpython',])
15 endif
16
17 jsonb_plpython = shared_module('jsonb_plpython3',
18 jsonb_plpython_sources,
19 include_directories: [plpython_inc],
20 c_args: ['-DPLPYTHON_LIBNAME="plpython3"'],
21 kwargs: contrib_mod_args + {
22 'dependencies': [python3_dep, contrib_mod_args['dependencies']],
23 },
24 )
25 contrib_targets += jsonb_plpython
26
27 install_data(
28 'jsonb_plpython3u.control',
29 'jsonb_plpython3u--1.0.sql',
30 kwargs: contrib_data_args,
31 )
32
33 jsonb_plpython_regress = [
34 'jsonb_plpython'
35 ]
36
37 tests += {
38 'name': 'jsonb_plpython',
39 'sd': meson.current_source_dir(),
40 'bd': meson.current_build_dir(),
41 'regress': {
42 'sql': jsonb_plpython_regress,
43 },
44 }