]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: factor out daemon/event/id128 sources into variables (#8170)
authorDavide Cavalca <davide125@tiscali.it>
Wed, 14 Feb 2018 13:08:50 +0000 (05:08 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Feb 2018 13:08:50 +0000 (14:08 +0100)
src/libsystemd/meson.build

index 706e090762eaae73454605ded290fb3e53032796..bd72e3d691238fdf05334d45d93d596a2acdb0f4 100644 (file)
 # You should have received a copy of the GNU Lesser General Public License
 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
 
+id128_sources = files('''
+        sd-id128/id128-util.c
+        sd-id128/id128-util.h
+        sd-id128/sd-id128.c
+'''.split())
+
+sd_daemon_c = files('sd-daemon/sd-daemon.c')
+sd_event_c = files('sd-event/sd-event.c')
 sd_login_c = files('sd-login/sd-login.c')
 
 libsystemd_sources = files('''
@@ -57,7 +65,6 @@ libsystemd_sources = files('''
         sd-bus/bus-type.c
         sd-bus/bus-type.h
         sd-bus/sd-bus.c
-        sd-daemon/sd-daemon.c
         sd-device/device-enumerator-private.h
         sd-device/device-enumerator.c
         sd-device/device-internal.h
@@ -65,13 +72,9 @@ libsystemd_sources = files('''
         sd-device/device-private.h
         sd-device/device-util.h
         sd-device/sd-device.c
-        sd-event/sd-event.c
         sd-hwdb/hwdb-internal.h
         sd-hwdb/hwdb-util.h
         sd-hwdb/sd-hwdb.c
-        sd-id128/id128-util.c
-        sd-id128/id128-util.h
-        sd-id128/sd-id128.c
         sd-netlink/generic-netlink.c
         sd-netlink/local-addresses.c
         sd-netlink/local-addresses.h
@@ -90,7 +93,7 @@ libsystemd_sources = files('''
         sd-path/sd-path.c
         sd-resolve/sd-resolve.c
         sd-utf8/sd-utf8.c
-'''.split()) + sd_login_c
+'''.split()) + id128_sources + sd_daemon_c + sd_event_c + sd_login_c
 
 libsystemd_static = static_library(
         'systemd',