Skip to content

Commit d3c459c

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 8544e2b commit d3c459c

File tree

274 files changed

+11196
-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.

274 files changed

+11196
-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
@@ -21338,3 +21338,9 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
2133821338
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
2133921339
fi
2134021340

21341+
21342+
# Ensure that any meson build directories would reconfigure and see that
21343+
# there's a conflicting in-tree build and can error out.
21344+
if test "$vpath_build"="no"; then
21345+
touch meson.build
21346+
fi

configure.ac

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

25902590
AC_OUTPUT
2591+
2592+
# Ensure that any meson build directories would reconfigure and see that
2593+
# there's a conflicting in-tree build and can error out.
2594+
if test "$vpath_build"="no"; then
2595+
touch meson.build
2596+
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+
}

contrib/bool_plperl/meson.build

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
if not perl_dep.found()
2+
subdir_done()
3+
endif
4+
5+
bool_plperl_sources = files(
6+
'bool_plperl.c',
7+
)
8+
9+
bool_plperl = shared_module('bool_plperl',
10+
bool_plperl_sources,
11+
include_directories: [plperl_inc, include_directories('.')],
12+
kwargs: pg_mod_args + {
13+
'dependencies': [perl_dep, contrib_mod_args['dependencies']],
14+
},
15+
)
16+
17+
install_data(
18+
'bool_plperl.control',
19+
'bool_plperl--1.0.sql',
20+
kwargs: contrib_data_args,
21+
)
22+
23+
install_data(
24+
'bool_plperlu.control',
25+
'bool_plperlu--1.0.sql',
26+
kwargs: contrib_data_args,
27+
)
28+
29+
tests += {
30+
'name': 'bool_plperl',
31+
'sd': meson.current_source_dir(),
32+
'bd': meson.current_build_dir(),
33+
'regress': {
34+
'sql': [
35+
'bool_plperl',
36+
'bool_plperlu',
37+
],
38+
},
39+
}

contrib/btree_gin/meson.build

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
btree_gin = shared_module('btree_gin',
2+
files('btree_gin.c'),
3+
kwargs: contrib_mod_args,
4+
)
5+
6+
install_data(
7+
'btree_gin.control',
8+
'btree_gin--1.0.sql',
9+
'btree_gin--1.0--1.1.sql',
10+
'btree_gin--1.1--1.2.sql',
11+
'btree_gin--1.2--1.3.sql',
12+
kwargs: contrib_data_args,
13+
)
14+
15+
tests += {
16+
'name': 'btree_gin',
17+
'sd': meson.current_source_dir(),
18+
'bd': meson.current_build_dir(),
19+
'regress': {
20+
'sql': [
21+
'install_btree_gin',
22+
'int2',
23+
'int4',
24+
'int8',
25+
'float4',
26+
'float8',
27+
'money',
28+
'oid',
29+
'timestamp',
30+
'timestamptz',
31+
'time',
32+
'timetz',
33+
'date',
34+
'interval',
35+
'macaddr',
36+
'macaddr8',
37+
'inet',
38+
'cidr',
39+
'text',
40+
'varchar',
41+
'char',
42+
'bytea',
43+
'bit',
44+
'varbit',
45+
'numeric',
46+
'enum',
47+
'uuid',
48+
'name',
49+
'bool',
50+
'bpchar',
51+
],
52+
},
53+
}

contrib/btree_gist/meson.build

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
btree_gist_sources = files(
2+
'btree_bit.c',
3+
'btree_bool.c',
4+
'btree_bytea.c',
5+
'btree_cash.c',
6+
'btree_date.c',
7+
'btree_enum.c',
8+
'btree_float4.c',
9+
'btree_float8.c',
10+
'btree_gist.c',
11+
'btree_inet.c',
12+
'btree_int2.c',
13+
'btree_int4.c',
14+
'btree_int8.c',
15+
'btree_interval.c',
16+
'btree_macaddr.c',
17+
'btree_macaddr8.c',
18+
'btree_numeric.c',
19+
'btree_oid.c',
20+
'btree_text.c',
21+
'btree_time.c',
22+
'btree_ts.c',
23+
'btree_utils_num.c',
24+
'btree_utils_var.c',
25+
'btree_uuid.c',
26+
)
27+
28+
btree_gist = shared_module('btree_gist',
29+
btree_gist_sources,
30+
c_pch: pch_c_h,
31+
kwargs: contrib_mod_args,
32+
)
33+
34+
install_data(
35+
'btree_gist.control',
36+
'btree_gist--1.0--1.1.sql',
37+
'btree_gist--1.1--1.2.sql',
38+
'btree_gist--1.2.sql',
39+
'btree_gist--1.2--1.3.sql',
40+
'btree_gist--1.3--1.4.sql',
41+
'btree_gist--1.4--1.5.sql',
42+
'btree_gist--1.5--1.6.sql',
43+
'btree_gist--1.6--1.7.sql',
44+
kwargs: contrib_data_args,
45+
)
46+
47+
tests += {
48+
'name': 'btree_gist',
49+
'sd': meson.current_source_dir(),
50+
'bd': meson.current_build_dir(),
51+
'regress': {
52+
'sql': [
53+
'init',
54+
'int2',
55+
'int4',
56+
'int8',
57+
'float4',
58+
'float8',
59+
'cash',
60+
'oid',
61+
'timestamp',
62+
'timestamptz',
63+
'time',
64+
'timetz',
65+
'date',
66+
'interval',
67+
'macaddr',
68+
'macaddr8',
69+
'inet',
70+
'cidr',
71+
'text',
72+
'varchar',
73+
'char',
74+
'bytea',
75+
'bit',
76+
'varbit',
77+
'numeric',
78+
'uuid',
79+
'not_equal',
80+
'enum',
81+
'bool',
82+
],
83+
},
84+
}

0 commit comments

Comments
 (0)