build: extract libdbus_broker sources into variable
Extract the libdbus_broker sources into a variable, so we can modify it
based on meson-conditions.
# target: libdbus-broker.so
#
-libdbus_broker_private = static_library(
- 'dbus-broker-private',
- [
+libdbus_broker_sources = [
'bus/activation.c',
'bus/bus.c',
'bus/driver.c',
@@ -27,7 +25,11 @@ libdbus_broker_private = static_library(
'util/fdlist.c',
'util/metrics.c',
'util/user.c',
- ],
+]
+
+libdbus_broker_private = static_library(
+ 'dbus-broker-private',
+ libdbus_broker_sources,
c_args: [
'-fvisibility=hidden',
'-fno-common',
