meson: ecpg: Split definition of static and shared libraries
authorAndres Freund <andres@anarazel.de>
Wed, 5 Oct 2022 16:56:05 +0000 (09:56 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 5 Oct 2022 16:56:05 +0000 (09:56 -0700)
commita1261cd16f07f6db12a54b94d9e36175198951b4
treeb681244f904f7edba8c8b9c9192b109593d55619
parent089c0bc7a760ea8f654a054dc8363e7f0baf79a2
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
src/interfaces/ecpg/compatlib/meson.build
src/interfaces/ecpg/ecpglib/meson.build
src/interfaces/ecpg/pgtypeslib/meson.build
src/interfaces/ecpg/test/meson.build