blob: aa18de6ba6c954fdf9b2240e163a23fddec0a8d7 (
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
|
# Copyright (c) 2022-2023, PostgreSQL Global Development Group
backend_sources += files(
'bootstrap.c')
# see ../parser/meson.build
boot_parser_sources = []
bootscanner = custom_target('bootscanner',
input: 'bootscanner.l',
output: 'bootscanner.c',
command: flex_cmd,
)
generated_sources += bootscanner
boot_parser_sources += bootscanner
bootparse = custom_target('bootparse',
input: 'bootparse.y',
kwargs: bison_kw,
)
generated_sources += bootparse.to_list()
boot_parser_sources += bootparse
boot_parser = static_library('boot_parser',
boot_parser_sources,
dependencies: [backend_code],
include_directories: include_directories('.'),
kwargs: internal_lib_args,
)
backend_link_with += boot_parser
|