1 # Copyright (c) 2022-2023, PostgreSQL Global Development Group
3 node_support_input_i = [
14 'commands/event_trigger.h',
16 'executor/tuptable.h',
20 'nodes/lockoptions.h',
23 'nodes/supportnodes.h',
28 node_support_input = []
29 foreach i : node_support_input_i
30 node_support_input += meson.source_root() / 'src' / 'include' / i
33 node_support_output = [
35 'outfuncs.funcs.c', 'outfuncs.switch.c',
36 'readfuncs.funcs.c', 'readfuncs.switch.c',
37 'copyfuncs.funcs.c', 'copyfuncs.switch.c',
38 'equalfuncs.funcs.c', 'equalfuncs.switch.c',
39 'queryjumblefuncs.funcs.c', 'queryjumblefuncs.switch.c',
41 node_support_install = [
42 dir_include_server / 'nodes',
50 generated_nodes = custom_target('nodetags.h',
51 input: node_support_input,
52 output: node_support_output,
54 perl, files('../../backend/nodes/gen_node_support.pl'),
58 install_dir: node_support_install,
60 generated_headers += generated_nodes[0]
62 # autoconf generates the file there, ensure we get a conflict
63 generated_sources_ac += {'src/backend/nodes': node_support_output + ['node-support-stamp']}
64 generated_sources_ac += {'src/include/nodes': ['header-stamp']}