| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
pg_checksums_sources = files( |
| 4 |
'pg_checksums.c', |
| 5 |
) |
| 6 |
|
| 7 |
if host_system == 'windows' |
| 8 |
pg_checksums_sources += rc_bin_gen.process(win32ver_rc, extra_args: [ |
| 9 |
'--NAME', 'pg_checksums', |
| 10 |
'--FILEDESC', 'pg_checksums - verify data checksums in an offline cluster',]) |
| 11 |
endif |
| 12 |
|
| 13 |
pg_checksums = executable('pg_checksums', |
| 14 |
pg_checksums_sources, |
| 15 |
include_directories: [timezone_inc], |
| 16 |
dependencies: [frontend_code], |
| 17 |
kwargs: default_bin_args, |
| 18 |
) |
| 19 |
bin_targets += pg_checksums |
| 20 |
|
| 21 |
tests += { |
| 22 |
'name': 'pg_checksums', |
| 23 |
'sd': meson.current_source_dir(), |
| 24 |
'bd': meson.current_build_dir(), |
| 25 |
'tap': { |
| 26 |
'tests': [ |
| 27 |
't/001_basic.pl', |
| 28 |
't/002_actions.pl', |
| 29 |
], |
| 30 |
}, |
| 31 |
} |
| 32 |
|
| 33 |
subdir('po', if_found: libintl) |