File: meson.build

package info (click to toggle)
pg-wait-sampling 1.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 184 kB
  • sloc: ansic: 1,293; sql: 119; makefile: 22; sh: 17
file content (41 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download | duplicates (2)
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) 2025, Postgres Professional

# Does not support the PGXS infrastructure at this time. Please, compile as part
# of the contrib source tree.

pg_wait_sampling_sources = files(
  'collector.c',
  'pg_wait_sampling.c',
)

if host_system == 'windows'
  pg_wait_sampling_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
    '--NAME', 'pg_wait_sampling',
    '--FILEDESC', 'pg_wait_sampling - provides information about the current wait events for particular processes.',])
endif

pg_wait_sampling = shared_module('pg_wait_sampling',
  pg_wait_sampling_sources,
  kwargs: contrib_mod_args,
)
contrib_targets += pg_wait_sampling

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

tests += {
  'name': 'pg_wait_sampling',
  'sd': meson.current_source_dir(),
  'bd': meson.current_build_dir(),
  'regress': {
    'sql': [
      'load',
      'queries',
    ],
    'regress_args': ['--temp-config', files('conf.add')],
  },
}