|
| 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 | +} |