From 0c6040dad898d404eecc4e7bb46b1d8e22af1e84 Mon Sep 17 00:00:00 2001 From: Zharkov Roman Date: Mon, 10 Feb 2025 12:05:51 +0700 Subject: [PATCH] Add meson.build file to support building from the contrib source tree. --- meson.build | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 meson.build diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..ab552ad --- /dev/null +++ b/meson.build @@ -0,0 +1,42 @@ +# Copyright (c) 2025, Postgres Professional + +# Does not support the PGXS infrastructure at this time. Please, compile as part +# of the contrib source tree. + +vops_sources = files( + 'deparse.c', + 'vops.c', + 'vops_fdw.c', +) + +if host_system == 'windows' + vops_sources += rc_lib_gen.process(win32ver_rc, extra_args: [ + '--NAME', '_int', + '--FILEDESC', 'VOPS - vectorized operations for PostgreSQL',]) +endif + +vops = shared_module('vops', + vops_sources, + kwargs: contrib_mod_args + { + 'dependencies': contrib_mod_args['dependencies'] + [libpq], + }, +) +contrib_targets += vops + +install_data( + 'vops.control', + 'vops--1.0--1.1.sql', + 'vops--1.1.sql', + kwargs: contrib_data_args, +) + +tests += { + 'name': 'vops', + 'sd': meson.current_source_dir(), + 'bd': meson.current_build_dir(), + 'regress': { + 'sql': [ + 'test', + ], + }, +}