Debian Codegraph @

contrib/fuzzystrmatch/meson.build

raw
1 # Copyright (c) 2022-2025, PostgreSQL Global Development Group
2
3 fuzzystrmatch_sources = files(
4 'daitch_mokotoff.c',
5 'dmetaphone.c',
6 'fuzzystrmatch.c',
7 )
8
9 daitch_mokotoff_h = custom_target('daitch_mokotoff',
10 input: 'daitch_mokotoff_header.pl',
11 output: 'daitch_mokotoff.h',
12 command: [perl, '@INPUT@', '@OUTPUT@'],
13 )
14 generated_sources += daitch_mokotoff_h
15 fuzzystrmatch_sources += daitch_mokotoff_h
16
17 if host_system == 'windows'
18 fuzzystrmatch_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
19 '--NAME', 'fuzzystrmatch',
20 '--FILEDESC', 'fuzzystrmatch - similarities and distance between strings',])
21 endif
22
23 fuzzystrmatch = shared_module('fuzzystrmatch',
24 fuzzystrmatch_sources,
25 include_directories: include_directories('.'),
26 kwargs: contrib_mod_args,
27 )
28 contrib_targets += fuzzystrmatch
29
30 install_data(
31 'fuzzystrmatch.control',
32 'fuzzystrmatch--1.0--1.1.sql',
33 'fuzzystrmatch--1.1.sql',
34 'fuzzystrmatch--1.1--1.2.sql',
35 kwargs: contrib_data_args,
36 )
37
38 tests += {
39 'name': 'fuzzystrmatch',
40 'sd': meson.current_source_dir(),
41 'bd': meson.current_build_dir(),
42 'regress': {
43 'sql': [
44 'fuzzystrmatch',
45 'fuzzystrmatch_utf8',
46 ],
47 },
48 }