]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libudev/meson.build
meson: stop building out convenience libraries by default
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 16 Dec 2021 09:58:44 +0000 (10:58 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 16 Dec 2021 10:01:08 +0000 (11:01 +0100)
commit03f7ddf0bf170c00e6d53bf039b6566113f6c936
treeefcce6950f2614482c749dd05217d70307115694
parentb93f018f574a92c680669c35fea37be8d8f73c3f
meson: stop building out convenience libraries by default

The meson default for static_library() are:
build_by_default=true, install=false. We never interact with the
static libraries, and we only care about them as a stepping-stone towards
the installable executables or libraries. Thus let's only build them if
they are a dependency of something else we are building.

While at it, let's drop install:false, since this appears to be the default.

This change would have fixed the issue with lib_import_common failing
to build too: we wouldn't attempt to build it.

In practice this changes very little, because we generally only declare static
libraries where there's something in the default target that will make use of
them. But it seems to be a better pattern to set build_by_default to false.
16 files changed:
src/basic/meson.build
src/core/meson.build
src/import/meson.build
src/journal-remote/meson.build
src/journal/meson.build
src/libsystemd-network/meson.build
src/libsystemd/meson.build
src/libudev/meson.build
src/login/meson.build
src/machine/meson.build
src/network/meson.build
src/nspawn/meson.build
src/resolve/meson.build
src/shared/meson.build
src/timesync/meson.build
src/udev/meson.build