chiark / gitweb /
meson: link libbasic and libshared_static into libshared
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Dec 2017 13:19:46 +0000 (14:19 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:47 +0000 (07:49 +0200)
commite97d3ad71e676185d00c1d85b97fae31ce9e19d3
tree8e43120e489b1b6e58c5991867b0857be09927a4
parenta6c581818f140ba4d91fcd82a009ac074d22968b
meson: link libbasic and libshared_static into libshared

gcrypt_util_sources had to be moved because otherwise they appeared twice
in libshared.so halfproducts, causing an error.

-fvisibility=default is added to libbasic, libshared_static so that the symbols
appear properly in the exported symbol list in libshared.

The advantage is that files are not compiled twice. When configured with -Dman=false,
the ninja target list is reduced from 1588 to 1347 targets. The difference in compilation
time is small (<10%). I think this is because of -O0 and ccache and multiple cores, and
in different settings the compilation time could be reduced. The main advantage is that
errors and warnings are not reported twice.
meson.build
src/basic/meson.build
src/shared/meson.build
src/test/meson.build