how to get MAJORVERSION in meson

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Peter Eisentraut <peter(at)eisentraut(dot)org>
Subject: how to get MAJORVERSION in meson
Date: 2024-11-29 09:42:31
Message-ID: CAFj8pRAYpchTAENX0k53WFFX1JDa7BaNANgMUsdD-8s_f97U7A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

I tried to add meson support to plpgsql_check. As template I used
https://raw.githubusercontent.com/petere/plsh/refs/heads/meson/meson.build

Unfortunately, for tests I need to know MAJORVERSION. In makefile I use

ifndef MAJORVERSION
MAJORVERSION := $(basename $(VERSION))
endif

Is there some similar pattern for meson?

Regards

Pavel

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2024-11-29 09:46:23 Re: Virtual generated columns
Previous Message Andrey M. Borodin 2024-11-29 09:41:56 Re: [PATCH] Add sortsupport for range types and btree_gist