From cb16288a6f76346628dc6e4b9f177a767fdf7f8e Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Mon, 24 Apr 2023 18:18:29 +0300 Subject: [PATCH] Add meson build. Maxim Orlov --- meson.build | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meson.build diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..40324a1 --- /dev/null +++ b/meson.build @@ -0,0 +1,32 @@ +# Copyright (c) 2023, Postgres Professional + +plantuner_sources = files( + 'plantuner.c' +) + +if host_system == 'windows' + plantuner_sources += rc_lib_gen.process(win32ver_rc, extra_args: [ + '--NAME', 'plantuner', + '--FILEDESC', 'plantuner - provides hints for the planner that can disable or enable indexes for query execution',]) +endif + +plantuner = shared_module('plantuner', + plantuner_sources, + kwargs: contrib_mod_args, +) +contrib_targets += plantuner + +install_data( + kwargs: contrib_data_args, +) + +tests += { + 'name': 'plantuner', + 'sd': meson.current_source_dir(), + 'bd': meson.current_build_dir(), + 'regress': { + 'sql': [ + 'plantuner', + ], + }, +} -- 2.46.1