Skip to content

Commit 75838c0

Browse files
committed
[PGPRO-10780] Add meson.build file to support building from the contrib source
tree.
1 parent 3ac70e8 commit 75838c0

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

meson.build

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
ptrack_sources = files(
7+
'datapagemap.c',
8+
'engine.c',
9+
'ptrack.c',
10+
)
11+
12+
if host_system == 'windows'
13+
ptrack_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
14+
'--NAME', 'ptrack',
15+
'--FILEDESC', 'ptrack - block-level incremental backup engine for Postgres Pro.',])
16+
endif
17+
18+
ptrack = shared_module('ptrack',
19+
ptrack_sources,
20+
kwargs: contrib_mod_args,
21+
)
22+
contrib_targets += ptrack
23+
24+
install_data(
25+
'ptrack.control',
26+
'ptrack--2.0--2.1.sql',
27+
'ptrack--2.1--2.2.sql',
28+
'ptrack--2.1.sql',
29+
'ptrack--2.2--2.3.sql',
30+
'ptrack--2.3--2.4.sql',
31+
'ptrack--2.4--2.5.sql',
32+
kwargs: contrib_data_args,
33+
)
34+
35+
tests += {
36+
'name': 'ptrack',
37+
'sd': meson.current_source_dir(),
38+
'bd': meson.current_build_dir(),
39+
'tap': {
40+
'tests': [
41+
't/001_basic.pl',
42+
't/002_cfs_compatibility.pl',
43+
],
44+
},
45+
}

0 commit comments

Comments
 (0)