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 sd_login_c = files('sd-login/sd-login.c')
20 libsystemd_sources = files('''
23 sd-bus/bus-common-errors.c
24 sd-bus/bus-common-errors.h
25 sd-bus/bus-container.c
26 sd-bus/bus-container.h
29 sd-bus/bus-convenience.c
40 sd-bus/bus-introspect.c
41 sd-bus/bus-introspect.h
51 sd-bus/bus-signature.c
52 sd-bus/bus-signature.h
63 sd-device/device-enumerator-private.h
64 sd-device/device-enumerator.c
65 sd-device/device-internal.h
66 sd-device/device-private.c
67 sd-device/device-private.h
68 sd-device/device-util.h
71 sd-hwdb/hwdb-internal.h
77 sd-netlink/local-addresses.c
78 sd-netlink/local-addresses.h
79 sd-netlink/netlink-internal.h
80 sd-netlink/netlink-message.c
81 sd-netlink/netlink-socket.c
82 sd-netlink/netlink-types.c
83 sd-netlink/netlink-types.h
84 sd-netlink/netlink-util.c
85 sd-netlink/netlink-util.h
86 sd-netlink/rtnl-message.c
87 sd-netlink/sd-netlink.c
88 sd-network/network-util.c
89 sd-network/network-util.h
90 sd-network/sd-network.c
92 sd-resolve/sd-resolve.c
94 '''.split()) + sd_login_c
96 libsystemd_static = static_library(
100 include_directories : includes,
101 link_with : libbasic,
102 dependencies : [threads,
105 libsystemd_sym = 'src/libsystemd/libsystemd.sym'
107 libsystemd_pc = configure_file(
108 input : 'libsystemd.pc.in',
109 output : 'libsystemd.pc',
110 configuration : substs)
111 install_data(libsystemd_pc,
112 install_dir : pkgconfiglibdir)