summaryrefslogtreecommitdiff
path: root/src/backend/meson.build
diff options
context:
space:
mode:
authorPeter Eisentraut2023-03-03 06:18:20 +0000
committerPeter Eisentraut2023-03-03 06:45:52 +0000
commitb6a0d469cae4410a05b5e109748278065a931b68 (patch)
tree6324fe8028daa362b870740439c719bf71fa0116 /src/backend/meson.build
parentb1307b8b60111be8ddd8d6127701883c047bed15 (diff)
meson: Prevent installation of test files during main install
Previously, meson installed modules under src/test/modules/ as part of a normal installation, even though these files are only meant for use by tests. This is because there is no way to set up up the build system to install extra things only when told. This patch fixes that with a workaround: We don't install these modules as part of meson install, but we create a new "test" that runs before the real tests whose action it is to install these files. The installation is done by manual copies using a small helper script. Author: Nazir Bilal Yavuz <byavuz81@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/2a039e8e-f31f-31e8-afe7-bab3130ad2de%40enterprisedb.com
Diffstat (limited to 'src/backend/meson.build')
-rw-r--r--src/backend/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/meson.build b/src/backend/meson.build
index 4fdd209b826..ccfc382fcfd 100644
--- a/src/backend/meson.build
+++ b/src/backend/meson.build
@@ -180,12 +180,19 @@ backend_mod_code = declare_dependency(
dependencies: backend_mod_deps,
)
+# normal extension modules
pg_mod_args = default_mod_args + {
'dependencies': [backend_mod_code],
'cpp_args': pg_mod_cpp_args,
'link_depends': pg_mod_link_depend,
}
+# extension modules that shouldn't be installed by default, as they're only
+# for testing
+pg_test_mod_args = pg_mod_args + {
+ 'install': false
+}
+
# Shared modules that, on some system, link against the server binary. Only