From: Teodor Sigaev Date: Mon, 24 Apr 2023 15:18:29 +0000 (+0300) Subject: Add meson build. Maxim Orlov X-Git-Url: http://www.sigaev.ru/git/gitweb.cgi?p=plantuner.git;a=commitdiff_plain;h=cb16288a6f76346628dc6e4b9f177a767fdf7f8e Add meson build. Maxim Orlov --- 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', + ], + }, +}