mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 06:30:08 +01:00
We have a number of static helper libraries. When a user is using such a library, they need to set the include search paths (-I) and link with the static library at the right place. The first part, the include search path, is now trivial. We no longer add the individual search paths but everybody uses "-I. -Isrc/". The second part means that when we build a shared library or an executable that uses symbols from the static library, we need to link it. But only then, and not earlier so that not multiple intermediate build products (static libraries too) contain the same code. Note that for libnm-device-plugin-*.so and other core plugins it's even that those shared modules should not themselves link with the static helpers. Instead, the need to use the symbols from NetworkManager. Easy enough. Previously, we would sometimes define dependencies in meson. But as it's really simple, I think that those dependencies obfuscate more than help. Instead drop them, and only explicitly link where we need it. The exception is libNetworkManagerTest_dep, which is still a dependency. Maybe that dependency is fine, as it is much later in the process. Or maybe that will also be replaced in the future. |
||
|---|---|---|
| .. | ||
| c-list | ||
| c-rbtree | ||
| c-siphash | ||
| c-stdaux | ||
| contrib | ||
| core | ||
| libnm-base | ||
| libnm-client-aux-extern | ||
| libnm-client-impl | ||
| libnm-client-public | ||
| libnm-client-test | ||
| libnm-core-aux-extern | ||
| libnm-core-aux-intern | ||
| libnm-core-impl | ||
| libnm-core-intern | ||
| libnm-core-public | ||
| libnm-glib-aux | ||
| libnm-log-core | ||
| libnm-log-null | ||
| libnm-platform | ||
| libnm-std-aux | ||
| libnm-systemd-shared | ||
| libnm-udev-aux | ||
| n-acd | ||
| n-dhcp4 | ||
| meson.build | ||