Skip to content

Commit dc1952c

Browse files
authored
Merge pull request #30 from postgrespro/meson_build_master
Add meson.build file to support building from the contrib source tree.
2 parents 1c62e00 + 0c6040d commit dc1952c

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

meson.build

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright (c) 2025, Postgres Professional
2+
3+
# Does not support the PGXS infrastructure at this time. Please, compile as part
4+
# of the contrib source tree.
5+
6+
vops_sources = files(
7+
'deparse.c',
8+
'vops.c',
9+
'vops_fdw.c',
10+
)
11+
12+
if host_system == 'windows'
13+
vops_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
14+
'--NAME', '_int',
15+
'--FILEDESC', 'VOPS - vectorized operations for PostgreSQL',])
16+
endif
17+
18+
vops = shared_module('vops',
19+
vops_sources,
20+
kwargs: contrib_mod_args + {
21+
'dependencies': contrib_mod_args['dependencies'] + [libpq],
22+
},
23+
)
24+
contrib_targets += vops
25+
26+
install_data(
27+
'vops.control',
28+
'vops--1.0--1.1.sql',
29+
'vops--1.1.sql',
30+
kwargs: contrib_data_args,
31+
)
32+
33+
tests += {
34+
'name': 'vops',
35+
'sd': meson.current_source_dir(),
36+
'bd': meson.current_build_dir(),
37+
'regress': {
38+
'sql': [
39+
'test',
40+
],
41+
},
42+
}

0 commit comments

Comments
 (0)