| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
pg_ctl_sources = files( |
| 4 |
'pg_ctl.c', |
| 5 |
) |
| 6 |
|
| 7 |
if host_system == 'windows' |
| 8 |
pg_ctl_sources += rc_bin_gen.process(win32ver_rc, extra_args: [ |
| 9 |
'--NAME', 'pg_ctl', |
| 10 |
'--FILEDESC', 'pg_ctl - starts/stops/restarts the PostgreSQL server',]) |
| 11 |
endif |
| 12 |
|
| 13 |
pg_ctl = executable('pg_ctl', |
| 14 |
pg_ctl_sources, |
| 15 |
dependencies: [frontend_code, libpq], |
| 16 |
kwargs: default_bin_args, |
| 17 |
) |
| 18 |
bin_targets += pg_ctl |
| 19 |
|
| 20 |
tests += { |
| 21 |
'name': 'pg_ctl', |
| 22 |
'sd': meson.current_source_dir(), |
| 23 |
'bd': meson.current_build_dir(), |
| 24 |
'tap': { |
| 25 |
'tests': [ |
| 26 |
't/001_start_stop.pl', |
| 27 |
't/002_status.pl', |
| 28 |
't/003_promote.pl', |
| 29 |
't/004_logrotate.pl', |
| 30 |
], |
| 31 |
}, |
| 32 |
} |
| 33 |
|
| 34 |
subdir('po', if_found: libintl) |