summaryrefslogtreecommitdiffstats
path: root/contrib/isn/meson.build
blob: a6a87f8717d45177d5fd302562c7760ccc3f58eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright (c) 2022-2023, PostgreSQL Global Development Group

isn_sources = files(
  'isn.c',
)

if host_system == 'windows'
  isn_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
    '--NAME', 'isn',
    '--FILEDESC', 'isn - data types for international product numbering standards',])
endif

isn = shared_module('isn',
  isn_sources,
  kwargs: contrib_mod_args,
)
contrib_targets += isn

install_data(
  'isn.control',
  'isn--1.0--1.1.sql',
  'isn--1.1--1.2.sql',
  'isn--1.1.sql',
  kwargs: contrib_data_args,
)

install_headers(
  'isn.h',
  install_dir: dir_include_extension / 'isn',
)

tests += {
  'name': 'isn',
  'sd': meson.current_source_dir(),
  'bd': meson.current_build_dir(),
  'regress': {
    'sql': [
      'isn',
    ],
  },
}