Skip to content

Commit 4a9dce8

Browse files
committed
Add meson.build file to support building from the contrib source tree.
1 parent 64ee638 commit 4a9dce8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Diff for: meson.build

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
shared_ispell_sources = files(
7+
'src' / 'shared_ispell.c'
8+
)
9+
10+
if host_system == 'windows'
11+
shared_ispell_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
12+
'--NAME', 'shared_ispell',
13+
'--FILEDESC', 'shared_ispell - provides a shared ispell dictionary, i.e. a dictionary that\'s stored in shared segment.',])
14+
endif
15+
16+
shared_ispell = shared_module('shared_ispell',
17+
shared_ispell_sources,
18+
kwargs: contrib_mod_args,
19+
)
20+
contrib_targets += shared_ispell
21+
22+
install_data(
23+
'shared_ispell.control',
24+
'shared_ispell--1.1.0.sql',
25+
kwargs: contrib_data_args,
26+
)
27+
28+
tests += {
29+
'name': 'shared_ispell',
30+
'sd': meson.current_source_dir(),
31+
'bd': meson.current_build_dir(),
32+
'regress': {
33+
'sql': [
34+
'security',
35+
'shared_ispell',
36+
],
37+
'regress_args': ['--temp-config', files('postgresql.conf')],
38+
},
39+
}

0 commit comments

Comments
 (0)