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('''
21 sd-bus/bus-common-errors.c
22 sd-bus/bus-common-errors.h
23 sd-bus/bus-container.c
24 sd-bus/bus-container.h
27 sd-bus/bus-convenience.c
38 sd-bus/bus-introspect.c
39 sd-bus/bus-introspect.h
49 sd-bus/bus-signature.c
50 sd-bus/bus-signature.h
61 sd-device/device-enumerator-private.h
62 sd-device/device-enumerator.c
63 sd-device/device-internal.h
64 sd-device/device-private.c
65 sd-device/device-private.h
66 sd-device/device-util.h
69 sd-hwdb/hwdb-internal.h
75 sd-netlink/generic-netlink.c
76 sd-netlink/local-addresses.c
77 sd-netlink/local-addresses.h
78 sd-netlink/netlink-internal.h
79 sd-netlink/netlink-message.c
80 sd-netlink/netlink-socket.c
81 sd-netlink/netlink-types.c
82 sd-netlink/netlink-types.h
83 sd-netlink/netlink-util.c
84 sd-netlink/netlink-util.h
85 sd-netlink/rtnl-message.c
86 sd-netlink/sd-netlink.c
87 sd-network/network-util.c
88 sd-network/network-util.h
89 sd-network/sd-network.c
91 sd-resolve/sd-resolve.c
93 '''.split()) + sd_login_c
95 libsystemd_static = static_library(
99 include_directories : includes,
100 link_with : libbasic,
101 dependencies : [threads,
103 c_args : ['-fvisibility=default'])
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)