aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_combinebackup/meson.build
blob: e80a4756a7f4f48faf11835c8f618fb190bd3eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright (c) 2022-2025, PostgreSQL Global Development Group

pg_combinebackup_sources = files(
  'pg_combinebackup.c',
  'backup_label.c',
  'copy_file.c',
  'load_manifest.c',
  'reconstruct.c',
  'write_manifest.c',
)

if host_system == 'windows'
  pg_combinebackup_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
    '--NAME', 'pg_combinebackup',
    '--FILEDESC', 'pg_combinebackup - combine incremental backups',])
endif

pg_combinebackup = executable('pg_combinebackup',
  pg_combinebackup_sources,
  dependencies: [frontend_code],
  kwargs: default_bin_args,
)
bin_targets += pg_combinebackup

tests += {
  'name': 'pg_combinebackup',
  'sd': meson.current_source_dir(),
  'bd': meson.current_build_dir(),
  'tap': {
    'tests': [
      't/001_basic.pl',
      't/002_compare_backups.pl',
      't/003_timeline.pl',
      't/004_manifest.pl',
      't/005_integrity.pl',
      't/006_db_file_copy.pl',
      't/007_wal_level_minimal.pl',
      't/008_promote.pl',
      't/009_no_full_file.pl',
      't/010_hardlink.pl',
    ],
  }
}

subdir('po', if_found: libintl)