1 # Copyright (c) 2022-2024, PostgreSQL Global Development Group
3 autoinc_sources = files(
7 if host_system == 'windows'
8 autoinc_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
10 '--FILEDESC', 'spi - examples of using SPI and triggers',])
13 autoinc = shared_module('autoinc',
15 kwargs: contrib_mod_args,
17 contrib_targets += autoinc
19 install_data('autoinc.control', 'autoinc--1.0.sql',
20 kwargs: contrib_data_args,
23 install_data('autoinc.example',
24 kwargs: contrib_doc_args,
28 insert_username_sources = files(
32 if host_system == 'windows'
33 insert_username_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
34 '--NAME', 'insert_username',
35 '--FILEDESC', 'spi - examples of using SPI and triggers',])
38 insert_username = shared_module('insert_username',
39 insert_username_sources,
40 kwargs: contrib_mod_args,
42 contrib_targets += insert_username
45 'insert_username.control',
46 'insert_username--1.0.sql',
47 kwargs: contrib_data_args,
50 install_data('insert_username.example',
51 kwargs: contrib_doc_args,
55 moddatetime_sources = files(
59 if host_system == 'windows'
60 moddatetime_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
61 '--NAME', 'moddatetime',
62 '--FILEDESC', 'spi - examples of using SPI and triggers',])
65 moddatetime = shared_module('moddatetime',
67 kwargs: contrib_mod_args,
69 contrib_targets += moddatetime
72 'moddatetime.control',
73 'moddatetime--1.0.sql',
74 kwargs: contrib_data_args,
77 install_data('moddatetime.example',
78 kwargs: contrib_doc_args,
82 # this is needed for the regression tests;
83 # comment out if you want a quieter refint package for other uses
84 refint_cflags = ['-DREFINT_VERBOSE']
86 refint_sources = files(
90 if host_system == 'windows'
91 refint_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
93 '--FILEDESC', 'spi - examples of using SPI and triggers',])
96 refint = shared_module('refint',
98 c_args: refint_cflags,
99 kwargs: contrib_mod_args,
101 contrib_targets += refint
103 install_data('refint.control', 'refint--1.0.sql',
104 kwargs: contrib_data_args,
107 install_data('refint.example',
108 kwargs: contrib_doc_args,