1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
10 # systemd is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
18 id128_sources = files('''
24 sd_daemon_c = files('sd-daemon/sd-daemon.c')
25 sd_event_c = files('sd-event/sd-event.c')
26 sd_login_c = files('sd-login/sd-login.c')
28 libsystemd_sources = files('''
29 sd-bus/bus-common-errors.c
30 sd-bus/bus-common-errors.h
31 sd-bus/bus-container.c
32 sd-bus/bus-container.h
35 sd-bus/bus-convenience.c
46 sd-bus/bus-introspect.c
47 sd-bus/bus-introspect.h
57 sd-bus/bus-signature.c
58 sd-bus/bus-signature.h
68 sd-device/device-enumerator-private.h
69 sd-device/device-enumerator.c
70 sd-device/device-internal.h
71 sd-device/device-private.c
72 sd-device/device-private.h
73 sd-device/device-util.h
75 sd-hwdb/hwdb-internal.h
78 sd-netlink/generic-netlink.c
79 sd-netlink/local-addresses.c
80 sd-netlink/local-addresses.h
81 sd-netlink/netlink-internal.h
82 sd-netlink/netlink-message.c
83 sd-netlink/netlink-socket.c
84 sd-netlink/netlink-types.c
85 sd-netlink/netlink-types.h
86 sd-netlink/netlink-util.c
87 sd-netlink/netlink-util.h
88 sd-netlink/rtnl-message.c
89 sd-netlink/sd-netlink.c
90 sd-network/network-util.c
91 sd-network/network-util.h
92 sd-network/sd-network.c
94 sd-resolve/sd-resolve.c
96 '''.split()) + id128_sources + sd_daemon_c + sd_event_c + sd_login_c
98 libsystemd_static = static_library(
102 include_directories : includes,
103 link_with : libbasic,
104 dependencies : [threads,
106 c_args : ['-fvisibility=default'])
108 libsystemd_sym = 'src/libsystemd/libsystemd.sym'
110 libsystemd_pc = configure_file(
111 input : 'libsystemd.pc.in',
112 output : 'libsystemd.pc',
113 configuration : substs)
114 install_data(libsystemd_pc,
115 install_dir : pkgconfiglibdir)