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