pgsql: meson: ecpg: Split definition of static and shared libraries - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: meson: ecpg: Split definition of static and shared libraries
Date
Msg-id E1og7sv-0012FB-9x@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
meson: ecpg: Split definition of static and shared libraries

Required for correct resource file generation, as the resource files should
only be added to the shared library.

This also fixes a bunch of issues in the .pc files.

Previously I tried to avoid building sources twice, once for the static and
once for the shared libraries. We could still do so, but it's not clear that
it's worth the complication.

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/20220927011951.j3h4o7n6bhf7dwau@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a1261cd16f07f6db12a54b94d9e36175198951b4

Modified Files
--------------
src/interfaces/ecpg/compatlib/meson.build  | 39 +++++++++++++++++++++++-------
src/interfaces/ecpg/ecpglib/meson.build    | 33 +++++++++++++++++++------
src/interfaces/ecpg/pgtypeslib/meson.build | 29 ++++++++++++++++------
src/interfaces/ecpg/test/meson.build       |  2 +-
4 files changed, 78 insertions(+), 25 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Fix whitespace
Next
From: Andres Freund
Date:
Subject: pgsql: tests: Rename conflicting role names