File tree 3 files changed +69
-6
lines changed
3 files changed +69
-6
lines changed Original file line number Diff line number Diff line change 1
1
backend_sources += files (
2
2
' bitmapset.c' ,
3
- ' copyfuncs.c' ,
4
- ' equalfuncs.c' ,
5
3
' extensible.c' ,
6
4
' list.c' ,
7
5
' makefuncs.c' ,
8
6
' nodeFuncs.c' ,
9
7
' nodes.c' ,
10
- ' outfuncs.c' ,
11
8
' params.c' ,
12
9
' print.c' ,
13
10
' read.c' ,
14
- ' readfuncs.c' ,
15
11
' tidbitmap.c' ,
16
12
' value.c' ,
17
13
)
14
+
15
+ # these include .c files generated in ../../include/nodes, seems nicer to not
16
+ # add that as an include path for the whole backend
17
+ nodefunc_sources = files (
18
+ ' copyfuncs.c' ,
19
+ ' equalfuncs.c' ,
20
+ ' outfuncs.c' ,
21
+ ' readfuncs.c' ,
22
+ )
23
+ nodefuncs = static_library (' nodefuncs' ,
24
+ nodefunc_sources,
25
+ c_pch : pch_c_h,
26
+ dependencies : [backend_code],
27
+ kwargs : default_lib_args + {' install' : false },
28
+ include_directories : include_directories (' ../../include/nodes' ),
29
+ )
30
+ backend_link_with += nodefuncs
Original file line number Diff line number Diff line change @@ -104,11 +104,12 @@ install_headers(
104
104
install_dir : dir_include_server,
105
105
)
106
106
107
- subdir (' utils' )
108
- subdir (' storage' )
109
107
subdir (' catalog' )
108
+ subdir (' nodes' )
110
109
subdir (' parser' )
111
110
subdir (' pch' )
111
+ subdir (' storage' )
112
+ subdir (' utils' )
112
113
113
114
header_subdirs = [
114
115
' access' ,
Original file line number Diff line number Diff line change
1
+ node_support_input = [
2
+ ' nodes.h' ,
3
+ ' execnodes.h' ,
4
+ ' plannodes.h' ,
5
+ ' primnodes.h' ,
6
+ ' pathnodes.h' ,
7
+ ' extensible.h' ,
8
+ ' parsenodes.h' ,
9
+ ' replnodes.h' ,
10
+ ' value.h' ,
11
+ ' ../commands/trigger.h' ,
12
+ ' ../commands/event_trigger.h' ,
13
+ ' ../foreign/fdwapi.h' ,
14
+ ' ../access/amapi.h' ,
15
+ ' ../access/tableam.h' ,
16
+ ' ../access/tsmapi.h' ,
17
+ ' ../utils/rel.h' ,
18
+ ' supportnodes.h' ,
19
+ ' ../executor/tuptable.h' ,
20
+ ' lockoptions.h' ,
21
+ ' ../access/sdir.h' ,
22
+ ]
23
+
24
+ node_support_output = [
25
+ ' nodetags.h' ,
26
+ ' outfuncs.funcs.c' , ' outfuncs.switch.c' ,
27
+ ' readfuncs.funcs.c' , ' readfuncs.switch.c' ,
28
+ ' copyfuncs.funcs.c' , ' copyfuncs.switch.c' ,
29
+ ' equalfuncs.funcs.c' , ' equalfuncs.switch.c' ,
30
+ ]
31
+ node_support_install = [
32
+ dir_include_server / ' nodes' ,
33
+ false , false ,
34
+ false , false ,
35
+ false , false ,
36
+ false , false ,
37
+ ]
38
+
39
+ generated_nodes = custom_target (' scan' ,
40
+ input : node_support_input,
41
+ output : node_support_output,
42
+ command : [
43
+ perl, files (' ../../backend/nodes/gen_node_support.pl' ),
44
+ ' -o' , ' @OUTDIR@' ,
45
+ ' @INPUT@' ],
46
+ install : true ,
47
+ install_dir : node_support_install,
48
+ )
49
+ generated_headers += generated_nodes[0 ]
You can’t perform that action at this time.
0 commit comments