summaryrefslogtreecommitdiffstats
path: root/src/bin/pg_ctl/meson.build
blob: 608a52f9fbfbd296baa66505e1b58105d459f52e (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
# Copyright (c) 2022-2023, PostgreSQL Global Development Group

pg_ctl_sources = files(
  'pg_ctl.c',
)

if host_system == 'windows'
  pg_ctl_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
    '--NAME', 'pg_ctl',
    '--FILEDESC', 'pg_ctl - starts/stops/restarts the PostgreSQL server',])
endif

pg_ctl = executable('pg_ctl',
  pg_ctl_sources,
  dependencies: [frontend_code, libpq],
  kwargs: default_bin_args,
)
bin_targets += pg_ctl

tests += {
  'name': 'pg_ctl',
  'sd': meson.current_source_dir(),
  'bd': meson.current_build_dir(),
  'tap': {
    'tests': [
      't/001_start_stop.pl',
      't/002_status.pl',
      't/003_promote.pl',
      't/004_logrotate.pl',
    ],
  },
}

subdir('po', if_found: libintl)