summaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/meson.build
blob: f719c97c0511828a8f18759ae8162da8a0b262fa (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
35
36
37
# Copyright (c) 2022-2023, PostgreSQL Global Development Group

backend_sources += files(
  'conffiles.c',
  'guc.c',
  'guc_funcs.c',
  'guc_tables.c',
  'help_config.c',
  'pg_config.c',
  'pg_controldata.c',
  'pg_rusage.c',
  'ps_status.c',
  'queryenvironment.c',
  'rls.c',
  'sampling.c',
  'superuser.c',
  'timeout.c',
  'tzparser.c',
)

guc_scan = custom_target('guc_scan',
  input: 'guc-file.l',
  output: 'guc-file.c',
  command: flex_cmd)
generated_sources += guc_scan

# so we don't need to add . as an include dir for the whole backend
backend_link_with += static_library('guc-file',
  guc_scan,
  dependencies: [backend_code],
  include_directories: include_directories('.'),
  kwargs: internal_lib_args,
)

install_data('postgresql.conf.sample',
  install_dir: dir_data,
)