Re: how to get MAJORVERSION in meson

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Peter Eisentraut <peter(at)eisentraut(dot)org>
Subject: Re: how to get MAJORVERSION in meson
Date: 2024-11-30 15:42:12
Message-ID: CACJufxH4_fXYuroLvLpV08z4eE5Lhgq-2s=PS+QXKB4khBKmOA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 29, 2024 at 7:09 PM Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
>
>
>
> pá 29. 11. 2024 v 10:42 odesílatel Pavel Stehule <pavel(dot)stehule(at)gmail(dot)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).
>
> https://github.com/okbob/plpgsql_check/blob/master/meson.build
>
> Is there some other solution?
>

google around, then i found out this
https://github.com/mesonbuild/meson/issues/3535

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2024-11-30 16:12:01 Re: Unclear code - please elaborate
Previous Message Daniel Verite 2024-11-30 15:01:24 Re: UUID v7