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

From Pavel Stehule
Subject Re: how to get MAJORVERSION in meson
Date
Msg-id CAFj8pRBuP0Zym4VtRmgTb_Yzn3kWqozsSUsbAU0ZrZdQUh9xXw@mail.gmail.com
Whole thread Raw
In response to how to get MAJORVERSION in meson  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: how to get MAJORVERSION in meson
List pgsql-hackers


pá 29. 11. 2024 v 10:42 odesílatel Pavel Stehule <pavel.stehule@gmail.com> napsal:
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?


at the end I wrote (based on Postgres's meson build).


Is there some other solution?

Regards

Pavel

 
Regards

Pavel


pgsql-hackers by date:

Previous
From: Kirill Reshke
Date:
Subject: Re: [PATCH] Add log_transaction setting
Next
From: "Ryohei Takahashi (Fujitsu)"
Date:
Subject: RE: doc: pgevent.dll location