Debian Codegraph @

src/backend/utils/adt/meson.build

raw
1 # Copyright (c) 2022-2025, PostgreSQL Global Development Group
2
3 # Some code in numeric.c benefits from auto-vectorization
4 numeric_backend_lib = static_library('numeric_backend_lib',
5 'numeric.c',
6 dependencies: backend_build_deps,
7 kwargs: internal_lib_args,
8 c_args: vectorize_cflags,
9 )
10
11 backend_link_with += numeric_backend_lib
12
13 backend_sources += files(
14 'acl.c',
15 'amutils.c',
16 'array_expanded.c',
17 'array_selfuncs.c',
18 'array_typanalyze.c',
19 'array_userfuncs.c',
20 'arrayfuncs.c',
21 'arraysubs.c',
22 'arrayutils.c',
23 'ascii.c',
24 'bool.c',
25 'cash.c',
26 'char.c',
27 'cryptohashfuncs.c',
28 'date.c',
29 'datetime.c',
30 'datum.c',
31 'dbsize.c',
32 'domains.c',
33 'encode.c',
34 'enum.c',
35 'expandeddatum.c',
36 'expandedrecord.c',
37 'float.c',
38 'format_type.c',
39 'formatting.c',
40 'genfile.c',
41 'geo_ops.c',
42 'geo_selfuncs.c',
43 'geo_spgist.c',
44 'hbafuncs.c',
45 'inet_cidr_ntop.c',
46 'inet_net_pton.c',
47 'int.c',
48 'int8.c',
49 'json.c',
50 'jsonb.c',
51 'jsonb_gin.c',
52 'jsonb_op.c',
53 'jsonb_util.c',
54 'jsonbsubs.c',
55 'jsonfuncs.c',
56 'jsonpath.c',
57 'jsonpath_exec.c',
58 'like.c',
59 'like_support.c',
60 'lockfuncs.c',
61 'mac.c',
62 'mac8.c',
63 'mcxtfuncs.c',
64 'misc.c',
65 'multirangetypes.c',
66 'multirangetypes_selfuncs.c',
67 'name.c',
68 'network.c',
69 'network_gist.c',
70 'network_selfuncs.c',
71 'network_spgist.c',
72 'numutils.c',
73 'oid.c',
74 'oracle_compat.c',
75 'orderedsetaggs.c',
76 'partitionfuncs.c',
77 'pg_locale.c',
78 'pg_locale_builtin.c',
79 'pg_locale_icu.c',
80 'pg_locale_libc.c',
81 'pg_lsn.c',
82 'pg_upgrade_support.c',
83 'pgstatfuncs.c',
84 'pseudorandomfuncs.c',
85 'pseudotypes.c',
86 'quote.c',
87 'rangetypes.c',
88 'rangetypes_gist.c',
89 'rangetypes_selfuncs.c',
90 'rangetypes_spgist.c',
91 'rangetypes_typanalyze.c',
92 'regexp.c',
93 'regproc.c',
94 'ri_triggers.c',
95 'rowtypes.c',
96 'ruleutils.c',
97 'selfuncs.c',
98 'skipsupport.c',
99 'tid.c',
100 'timestamp.c',
101 'trigfuncs.c',
102 'tsginidx.c',
103 'tsgistidx.c',
104 'tsquery.c',
105 'tsquery_cleanup.c',
106 'tsquery_gist.c',
107 'tsquery_op.c',
108 'tsquery_rewrite.c',
109 'tsquery_util.c',
110 'tsrank.c',
111 'tsvector.c',
112 'tsvector_op.c',
113 'tsvector_parser.c',
114 'uuid.c',
115 'varbit.c',
116 'varchar.c',
117 'varlena.c',
118 'version.c',
119 'waitfuncs.c',
120 'windowfuncs.c',
121 'xid.c',
122 'xid8funcs.c',
123 'xml.c',
124 )
125
126
127 jsonpath_scan = custom_target('jsonpath_scan',
128 input: 'jsonpath_scan.l',
129 output: 'jsonpath_scan.c',
130 command: [flex_cmd, '--no-backup', '--', '-CF', '-p', '-p'],
131 )
132 generated_sources += jsonpath_scan
133
134 jsonpath_gram = custom_target('jsonpath_parse',
135 input: 'jsonpath_gram.y',
136 kwargs: bison_kw,
137 )
138 generated_sources += jsonpath_gram.to_list()
139
140 # so we don't need to add . as an include dir for the whole backend
141 backend_link_with += static_library('jsonpath',
142 jsonpath_scan, jsonpath_gram,
143 dependencies: [backend_code],
144 include_directories: include_directories('.'),
145 kwargs: internal_lib_args,
146 )
147
148 #generated_backend_sources += jsonpath_gram.to_list()