1 # Copyright (c) 2022-2023, 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,
24 insert_username_sources = files(
28 if host_system == 'windows'
29 insert_username_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
30 '--NAME', 'insert_username',
31 '--FILEDESC', 'spi - examples of using SPI and triggers',])
34 insert_username = shared_module('insert_username',
35 insert_username_sources,
36 kwargs: contrib_mod_args,
38 contrib_targets += insert_username
41 'insert_username.control',
42 'insert_username--1.0.sql',
43 kwargs: contrib_data_args,
47 moddatetime_sources = files(
51 if host_system == 'windows'
52 moddatetime_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
53 '--NAME', 'moddatetime',
54 '--FILEDESC', 'spi - examples of using SPI and triggers',])
57 moddatetime = shared_module('moddatetime',
59 kwargs: contrib_mod_args,
61 contrib_targets += moddatetime
64 'moddatetime.control',
65 'moddatetime--1.0.sql',
66 kwargs: contrib_data_args,
69 # this is needed for the regression tests;
70 # comment out if you want a quieter refint package for other uses
71 refint_cflags = ['-DREFINT_VERBOSE']
73 refint_sources = files(
77 if host_system == 'windows'
78 refint_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
80 '--FILEDESC', 'spi - examples of using SPI and triggers',])
83 refint = shared_module('refint',
85 c_args: refint_cflags,
86 kwargs: contrib_mod_args,
88 contrib_targets += refint
90 install_data('refint.control', 'refint--1.0.sql',
91 kwargs: contrib_data_args,