Skip to content

Commit 88dd280

Browse files
committed
meson: Add meson based buildsystem.
Author: Andres Freund Author: nbyavuz <[email protected]> Author: Peter Eisentraut <[email protected]> Author: Thomas Munro Author: John Naylor <[email protected]>
1 parent 243f99d commit 88dd280

File tree

273 files changed

+11152
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+11152
-0
lines changed

config/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
install_data(
2+
'install-sh', 'missing',
3+
install_dir: dir_pgxs / 'config'
4+
)

configure

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21439,3 +21439,9 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
2143921439
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
2144021440
fi
2144121441

21442+
21443+
# Ensure that any meson build directories would reconfigure and see that
21444+
# there's a conflicting in-tree build and can error out.
21445+
if test "$vpath_build"="no"; then
21446+
touch meson.build
21447+
fi

configure.ac

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,3 +2597,9 @@ AC_CONFIG_HEADERS([src/interfaces/ecpg/include/ecpg_config.h],
25972597
[echo >src/interfaces/ecpg/include/stamp-h])
25982598

25992599
AC_OUTPUT
2600+
2601+
# Ensure that any meson build directories would reconfigure and see that
2602+
# there's a conflicting in-tree build and can error out.
2603+
if test "$vpath_build"="no"; then
2604+
touch meson.build
2605+
fi

contrib/adminpack/meson.build

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
autoinc = shared_module('adminpack',
2+
['adminpack.c'],
3+
kwargs: contrib_mod_args,
4+
)
5+
6+
install_data(
7+
'adminpack.control',
8+
'adminpack--1.0.sql',
9+
'adminpack--1.0--1.1.sql',
10+
'adminpack--1.1--2.0.sql',
11+
'adminpack--2.0--2.1.sql',
12+
kwargs: contrib_data_args,
13+
)
14+
15+
tests += {
16+
'name': 'adminpack',
17+
'sd': meson.current_source_dir(),
18+
'bd': meson.current_build_dir(),
19+
'regress': {
20+
'sql': ['adminpack'],
21+
},
22+
}

contrib/amcheck/meson.build

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
amcheck = shared_module('amcheck', [
2+
'verify_heapam.c',
3+
'verify_nbtree.c',
4+
],
5+
kwargs: contrib_mod_args,
6+
)
7+
8+
install_data(
9+
'amcheck.control',
10+
'amcheck--1.0.sql',
11+
'amcheck--1.0--1.1.sql',
12+
'amcheck--1.1--1.2.sql',
13+
'amcheck--1.2--1.3.sql',
14+
kwargs: contrib_data_args,
15+
)
16+
17+
tests += {
18+
'name': 'amcheck',
19+
'sd': meson.current_source_dir(),
20+
'bd': meson.current_build_dir(),
21+
'regress': {
22+
'sql': [
23+
'check',
24+
'check_btree',
25+
'check_heap',
26+
],
27+
},
28+
'tap': {
29+
'tests': [
30+
't/001_verify_heapam.pl',
31+
't/002_cic.pl',
32+
't/003_cic_2pc.pl',
33+
],
34+
},
35+
}
36+

contrib/auth_delay/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
autoinc = shared_module('auth_delay',
2+
['auth_delay.c'],
3+
kwargs: contrib_mod_args,
4+
)

contrib/auto_explain/meson.build

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
auto_explain = shared_module('auto_explain',
2+
files('auto_explain.c'),
3+
kwargs: contrib_mod_args,
4+
)
5+
6+
tests += {
7+
'name': 'auto_explain',
8+
'sd': meson.current_source_dir(),
9+
'bd': meson.current_build_dir(),
10+
'tap': {
11+
'tests': [
12+
't/001_auto_explain.pl',
13+
],
14+
},
15+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
basebackup_to_shell_sources = files(
2+
'basebackup_to_shell.c',
3+
)
4+
5+
basebackup_to_shell = shared_module('basebackup_to_shell',
6+
basebackup_to_shell_sources,
7+
kwargs: contrib_mod_args,
8+
)
9+
10+
11+
tests += {
12+
'name': 'basebackup_to_shell',
13+
'sd': meson.current_source_dir(),
14+
'bd': meson.current_build_dir(),
15+
'tap' : {
16+
'tests': [
17+
't/001_basic.pl',
18+
],
19+
'env': {'GZIP_PROGRAM': gzip.path(),
20+
'TAR': tar.path()},
21+
},
22+
}

contrib/basic_archive/meson.build

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
basic_archive_sources = files(
2+
'basic_archive.c',
3+
)
4+
5+
basic_archive = shared_module('basic_archive',
6+
basic_archive_sources,
7+
kwargs: contrib_mod_args,
8+
)
9+
10+
11+
tests += {
12+
'name': 'basic_archive',
13+
'sd': meson.current_source_dir(),
14+
'bd': meson.current_build_dir(),
15+
'regress': {
16+
'sql': [
17+
'basic_archive',
18+
],
19+
'regress_args': [
20+
'--temp-config', files('basic_archive.conf'),
21+
],
22+
},
23+
}

contrib/bloom/meson.build

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
bloom_sources = files(
2+
'blcost.c',
3+
'blinsert.c',
4+
'blscan.c',
5+
'blutils.c',
6+
'blvacuum.c',
7+
'blvalidate.c',
8+
)
9+
10+
bloom = shared_module('bloom',
11+
bloom_sources,
12+
c_pch: pch_c_h,
13+
kwargs: contrib_mod_args,
14+
)
15+
16+
install_data(
17+
'bloom.control',
18+
'bloom--1.0.sql',
19+
kwargs: contrib_data_args,
20+
)
21+
22+
tests += {
23+
'name': 'bloom',
24+
'sd': meson.current_source_dir(),
25+
'bd': meson.current_build_dir(),
26+
'regress': {
27+
'sql': [
28+
'bloom',
29+
],
30+
},
31+
'tap': {
32+
'tests': [
33+
't/001_wal.pl',
34+
],
35+
},
36+
}

0 commit comments

Comments
 (0)