Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f15c01d

Browse files
committed
Add meson.build file to support building from the contrib source tree.
1 parent a632bcc commit f15c01d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

meson.build

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright (c) 2025, Postgres Professional
2+
3+
# Does not support the PGXS infrastructure at this time. Please, compile as part
4+
# of the contrib source tree.
5+
6+
pg_tsparser_sources = files(
7+
'tsparser.c'
8+
)
9+
10+
if host_system == 'windows'
11+
pg_tsparser_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
12+
'--NAME', 'pg_tsparser',
13+
'--FILEDESC', 'pg_tsparser - modifies the default text parsing strategy.',])
14+
endif
15+
16+
pg_tsparser = shared_module('pg_tsparser',
17+
pg_tsparser_sources,
18+
kwargs: contrib_mod_args,
19+
)
20+
contrib_targets += pg_tsparser
21+
22+
install_data(
23+
'pg_tsparser.control',
24+
'pg_tsparser--1.0.sql',
25+
kwargs: contrib_data_args,
26+
)
27+
28+
tests += {
29+
'name': 'pg_tsparser',
30+
'sd': meson.current_source_dir(),
31+
'bd': meson.current_build_dir(),
32+
'regress': {
33+
'sql': [
34+
'pg_tsparser',
35+
],
36+
},
37+
}

0 commit comments

Comments
 (0)