how to get MAJORVERSION in meson - Mailing list pgsql-hackers

From Pavel Stehule
Subject how to get MAJORVERSION in meson
Date
Msg-id CAFj8pRAYpchTAENX0k53WFFX1JDa7BaNANgMUsdD-8s_f97U7A@mail.gmail.com
Whole thread Raw
Responses Re: how to get MAJORVERSION in meson
List 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


pgsql-hackers by date:

Previous
From: "Andrey M. Borodin"
Date:
Subject: Re: [PATCH] Add sortsupport for range types and btree_gist
Next
From: Peter Eisentraut
Date:
Subject: Re: Virtual generated columns