-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
37 lines (29 loc) · 1.27 KB
/
meson.build
File metadata and controls
37 lines (29 loc) · 1.27 KB
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
project('buffercache_tools', ['c'])
pg_config = get_option('pg_config')
if pg_config == 'default'
pg_config = find_program('pg_config')
endif
bindir = run_command(pg_config, '--bindir', check: true).stdout().strip()
includedir_server = run_command(pg_config, '--includedir-server', check: true).stdout().strip()
pkglibdir = run_command(pg_config, '--pkglibdir', check: true).stdout().strip()
sharedir = run_command(pg_config, '--sharedir', check: true).stdout().strip()
shared_module('buffercache_tools', 'buffercache_tools.c', 'buffercache_tools_internals.c',
include_directories: [includedir_server],
install: true,
install_dir: pkglibdir,
name_prefix: '',
)
install_data('buffercache_tools.control',
'buffercache_tools--1.0.sql',
install_dir: sharedir / 'extension',
)
pg_regress = find_program('pg_regress',
dirs: [pkglibdir / 'pgxs/src/test/regress']
)
regress_tests = ['buffer_processing_functions', 'change_func_buffers_coverage', 'read_page_into_buffer']
test('regress',
pg_regress,
args: ['--bindir', bindir,
'--inputdir', meson.current_source_dir() / 'test',
] + regress_tests,
)