|
| 1 | +# Copyright (c) 2025, Postgres Professional |
| 2 | + |
| 3 | +# Does not support the PGXS infrastructure at this time. Please, compile as part |
| 4 | +# of the contrib source tree. |
| 5 | + |
| 6 | +vops_sources=files( |
| 7 | +'deparse.c', |
| 8 | +'vops.c', |
| 9 | +'vops_fdw.c', |
| 10 | +) |
| 11 | + |
| 12 | +if host_system=='windows' |
| 13 | + vops_sources+= rc_lib_gen.process(win32ver_rc,extra_args: [ |
| 14 | +'--NAME','_int', |
| 15 | +'--FILEDESC','VOPS - vectorized operations for PostgreSQL',]) |
| 16 | +endif |
| 17 | + |
| 18 | +vops=shared_module('vops', |
| 19 | + vops_sources, |
| 20 | +kwargs: contrib_mod_args+ { |
| 21 | +'dependencies': contrib_mod_args['dependencies']+ [libpq], |
| 22 | + }, |
| 23 | +) |
| 24 | +contrib_targets+= vops |
| 25 | + |
| 26 | +install_data( |
| 27 | +'vops.control', |
| 28 | +'vops--1.0--1.1.sql', |
| 29 | +'vops--1.1.sql', |
| 30 | +kwargs: contrib_data_args, |
| 31 | +) |
| 32 | + |
| 33 | +tests+= { |
| 34 | +'name':'vops', |
| 35 | +'sd':meson.current_source_dir(), |
| 36 | +'bd':meson.current_build_dir(), |
| 37 | +'regress': { |
| 38 | +'sql': [ |
| 39 | +'test', |
| 40 | + ], |
| 41 | + }, |
| 42 | +} |