summaryrefslogtreecommitdiffstats
path: root/src/include/storage/meson.build
blob: c2f64517e02c2382018ef04044eb0b4069280374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) 2022-2023, PostgreSQL Global Development Group

lwlocknames = custom_target('lwlocknames',
  input: files('../../backend/storage/lmgr/lwlocknames.txt'),
  output: ['lwlocknames.h', 'lwlocknames.c'],
  command: [
    perl, files('../../backend/storage/lmgr/generate-lwlocknames.pl'),
    '-o', '@OUTDIR@',
    '@INPUT@'
  ],
  build_by_default: true,
  install: true,
  install_dir: [dir_include_server / 'storage', false],
)

lwlocknames_h = lwlocknames[0]

generated_backend_headers += lwlocknames_h

# autoconf generates the file there, ensure we get a conflict
generated_sources_ac += {'src/backend/storage/lmgr': ['lwlocknames.c', 'lwlocknames.h']}