Debian Codegraph @

src/tools/pg_bsd_indent/meson.build

raw
1 # Copyright (c) 2022-2025, PostgreSQL Global Development Group
2
3 pg_bsd_indent_sources = files(
4 'args.c',
5 'err.c',
6 'indent.c',
7 'io.c',
8 'lexi.c',
9 'parse.c',
10 'pr_comment.c',
11 )
12
13 if host_system == 'windows'
14 pg_bsd_indent_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
15 '--NAME', 'pg_bsd_indent',
16 '--FILEDESC', 'pg_bsd_indent - indent C code nicely'])
17 endif
18
19 pg_bsd_indent = executable('pg_bsd_indent',
20 pg_bsd_indent_sources,
21 c_args: cflags_no_missing_var_decls,
22 dependencies: [frontend_code],
23 include_directories: include_directories('.'),
24 kwargs: default_bin_args + {
25 'install': false,
26 # possibly at some point do this:
27 # 'install_dir': dir_pgxs / 'src/tools/pg_bsd_indent',
28 },
29 )
30 bin_targets += pg_bsd_indent
31
32 tests += {
33 'name': 'pg_bsd_indent',
34 'sd': meson.current_source_dir(),
35 'bd': meson.current_build_dir(),
36 'tap': {
37 'tests': [
38 't/001_pg_bsd_indent.pl',
39 ],
40 },
41 }