Debian Codegraph @

src/backend/bootstrap/meson.build

raw
1 # Copyright (c) 2022-2025, PostgreSQL Global Development Group
2
3 backend_sources += files(
4 'bootstrap.c')
5
6 # see ../parser/meson.build
7 boot_parser_sources = []
8
9 bootscanner = custom_target('bootscanner',
10 input: 'bootscanner.l',
11 output: 'bootscanner.c',
12 command: flex_cmd,
13 )
14 generated_sources += bootscanner
15 boot_parser_sources += bootscanner
16
17 bootparse = custom_target('bootparse',
18 input: 'bootparse.y',
19 kwargs: bison_kw,
20 )
21 generated_sources += bootparse.to_list()
22 boot_parser_sources += bootparse
23
24 boot_parser = static_library('boot_parser',
25 boot_parser_sources,
26 dependencies: [backend_code],
27 include_directories: include_directories('.'),
28 kwargs: internal_lib_args,
29 )
30 backend_link_with += boot_parser