| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
backend_sources += files( |
| 4 |
'slot.c', |
| 5 |
'slotfuncs.c', |
| 6 |
'syncrep.c', |
| 7 |
'walreceiver.c', |
| 8 |
'walreceiverfuncs.c', |
| 9 |
'walsender.c', |
| 10 |
) |
| 11 |
|
| 12 |
# see ../parser/meson.build |
| 13 |
repl_parser_sources = [] |
| 14 |
|
| 15 |
repl_scanner = custom_target('repl_scanner', |
| 16 |
input: 'repl_scanner.l', |
| 17 |
output: 'repl_scanner.c', |
| 18 |
command: flex_cmd, |
| 19 |
) |
| 20 |
generated_sources += repl_scanner |
| 21 |
repl_parser_sources += repl_scanner |
| 22 |
|
| 23 |
repl_gram = custom_target('repl_gram', |
| 24 |
input: 'repl_gram.y', |
| 25 |
kwargs: bison_kw, |
| 26 |
) |
| 27 |
generated_sources += repl_gram.to_list() |
| 28 |
repl_parser_sources += repl_gram |
| 29 |
|
| 30 |
syncrep_scanner = custom_target('syncrep_scanner', |
| 31 |
input: 'syncrep_scanner.l', |
| 32 |
output: 'syncrep_scanner.c', |
| 33 |
command: flex_cmd, |
| 34 |
) |
| 35 |
generated_sources += syncrep_scanner |
| 36 |
repl_parser_sources += syncrep_scanner |
| 37 |
|
| 38 |
syncrep_gram = custom_target('syncrep_gram', |
| 39 |
input: 'syncrep_gram.y', |
| 40 |
kwargs: bison_kw, |
| 41 |
) |
| 42 |
generated_sources += syncrep_gram.to_list() |
| 43 |
repl_parser_sources += syncrep_gram |
| 44 |
|
| 45 |
repl_parser = static_library('repl_parser', |
| 46 |
repl_parser_sources, |
| 47 |
dependencies: [backend_code], |
| 48 |
include_directories: include_directories('.'), |
| 49 |
kwargs: internal_lib_args, |
| 50 |
) |
| 51 |
backend_link_with += repl_parser |
| 52 |
|
| 53 |
subdir('logical') |