Debian Codegraph @

src/bin/pg_upgrade/meson.build

raw
1 # Copyright (c) 2022-2025, PostgreSQL Global Development Group
2
3 pg_upgrade_sources = files(
4 'check.c',
5 'controldata.c',
6 'dump.c',
7 'exec.c',
8 'file.c',
9 'function.c',
10 'info.c',
11 'option.c',
12 'parallel.c',
13 'pg_upgrade.c',
14 'relfilenumber.c',
15 'server.c',
16 'tablespace.c',
17 'task.c',
18 'util.c',
19 'version.c',
20 )
21
22 if host_system == 'windows'
23 pg_upgrade_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
24 '--NAME', 'pg_upgrade',
25 '--FILEDESC', 'pg_upgrade - an in-place binary upgrade utility'])
26 endif
27
28 pg_upgrade = executable('pg_upgrade',
29 pg_upgrade_sources,
30 c_pch: pch_postgres_fe_h,
31 dependencies: [frontend_code, libpq],
32 kwargs: default_bin_args,
33 )
34 bin_targets += pg_upgrade
35
36
37 tests += {
38 'name': 'pg_upgrade',
39 'sd': meson.current_source_dir(),
40 'bd': meson.current_build_dir(),
41 'tap': {
42 'env': {'with_icu': icu.found() ? 'yes' : 'no'},
43 'tests': [
44 't/001_basic.pl',
45 't/002_pg_upgrade.pl',
46 't/003_logical_slots.pl',
47 't/004_subscription.pl',
48 't/005_char_signedness.pl',
49 't/006_transfer_modes.pl',
50 ],
51 'test_kwargs': {'priority': 40}, # pg_upgrade tests are slow
52 },
53 }
54
55 subdir('po', if_found: libintl)