|
| 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 | +} |