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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright (c) 2022-2023, PostgreSQL Global Development Group
backend_sources += files(
'slot.c',
'slotfuncs.c',
'syncrep.c',
'walreceiver.c',
'walreceiverfuncs.c',
'walsender.c',
)
# see ../parser/meson.build
repl_parser_sources = []
repl_scanner = custom_target('repl_scanner',
input: 'repl_scanner.l',
output: 'repl_scanner.c',
command: flex_cmd,
)
generated_sources += repl_scanner
repl_parser_sources += repl_scanner
repl_gram = custom_target('repl_gram',
input: 'repl_gram.y',
kwargs: bison_kw,
)
generated_sources += repl_gram.to_list()
repl_parser_sources += repl_gram
syncrep_scanner = custom_target('syncrep_scanner',
input: 'syncrep_scanner.l',
output: 'syncrep_scanner.c',
command: flex_cmd,
)
generated_sources += syncrep_scanner
repl_parser_sources += syncrep_scanner
syncrep_gram = custom_target('syncrep_gram',
input: 'syncrep_gram.y',
kwargs: bison_kw,
)
generated_sources += syncrep_gram.to_list()
repl_parser_sources += syncrep_gram
repl_parser = static_library('repl_parser',
repl_parser_sources,
dependencies: [backend_code],
include_directories: include_directories('.'),
kwargs: internal_lib_args,
)
backend_link_with += repl_parser
subdir('logical')
|