| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
node_support_input_i = [ |
| 4 |
'nodes/nodes.h', |
| 5 |
'nodes/primnodes.h', |
| 6 |
'nodes/parsenodes.h', |
| 7 |
'nodes/pathnodes.h', |
| 8 |
'nodes/plannodes.h', |
| 9 |
'nodes/execnodes.h', |
| 10 |
'access/amapi.h', |
| 11 |
'access/cmptype.h', |
| 12 |
'access/sdir.h', |
| 13 |
'access/tableam.h', |
| 14 |
'access/tsmapi.h', |
| 15 |
'commands/event_trigger.h', |
| 16 |
'commands/trigger.h', |
| 17 |
'executor/tuptable.h', |
| 18 |
'foreign/fdwapi.h', |
| 19 |
'nodes/bitmapset.h', |
| 20 |
'nodes/extensible.h', |
| 21 |
'nodes/lockoptions.h', |
| 22 |
'nodes/miscnodes.h', |
| 23 |
'nodes/replnodes.h', |
| 24 |
'nodes/supportnodes.h', |
| 25 |
'nodes/value.h', |
| 26 |
'utils/rel.h', |
| 27 |
] |
| 28 |
|
| 29 |
node_support_input = [] |
| 30 |
foreach i : node_support_input_i |
| 31 |
node_support_input += meson.source_root() / 'src' / 'include' / i |
| 32 |
endforeach |
| 33 |
|
| 34 |
node_support_output = [ |
| 35 |
'nodetags.h', |
| 36 |
'outfuncs.funcs.c', 'outfuncs.switch.c', |
| 37 |
'readfuncs.funcs.c', 'readfuncs.switch.c', |
| 38 |
'copyfuncs.funcs.c', 'copyfuncs.switch.c', |
| 39 |
'equalfuncs.funcs.c', 'equalfuncs.switch.c', |
| 40 |
'queryjumblefuncs.funcs.c', 'queryjumblefuncs.switch.c', |
| 41 |
] |
| 42 |
node_support_install = [ |
| 43 |
dir_include_server / 'nodes', |
| 44 |
false, false, |
| 45 |
false, false, |
| 46 |
false, false, |
| 47 |
false, false, |
| 48 |
false, false, |
| 49 |
] |
| 50 |
|
| 51 |
generated_nodes = custom_target('nodetags.h', |
| 52 |
input: node_support_input, |
| 53 |
output: node_support_output, |
| 54 |
depend_files: catalog_pm, |
| 55 |
command: [ |
| 56 |
perl, files('../../backend/nodes/gen_node_support.pl'), |
| 57 |
'-o', '@OUTDIR@', |
| 58 |
'@INPUT@'], |
| 59 |
install: true, |
| 60 |
install_dir: node_support_install, |
| 61 |
) |
| 62 |
generated_headers += generated_nodes[0] |
| 63 |
|
| 64 |
# autoconf generates the file there, ensure we get a conflict |
| 65 |
generated_sources_ac += {'src/backend/nodes': node_support_output + ['node-support-stamp']} |
| 66 |
generated_sources_ac += {'src/include/nodes': ['header-stamp']} |