Skip to content

Add meson.build file to support building from the contrib source tree. #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -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',
],
},
}